/* Isotopes. 256 v12 | stylesheet bundle | Roboto / IYaFiT visual system. */

/* SOURCE: legacy-styles.css */

:root{--ink:#1f2b36;--blue:#0055bb;--deep:#173f73;--line:#d4e3f0;--pale:#f5f9fe;--paper:#fbfdff;--secondary:#62788d;--cyan:#3c9fbe}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{font-family:Arial,Helvetica,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#eaf2fa;-webkit-tap-highlight-color:transparent}button,a{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #49a7ce;outline-offset:3px}a{color:var(--blue)}.app{position:relative;width:100%;height:100vh;height:100dvh;max-width:960px;margin:0 auto;overflow:hidden;background:var(--paper);box-shadow:0 0 38px #1b3d6420}
.scene{display:none;position:absolute;inset:0;min-height:0;overflow:hidden}.scene.active{display:flex;flex-direction:column}.paper{background:repeating-linear-gradient(153deg,transparent 0px,transparent 16px,rgba(39,104,160,.028) 17px,transparent 19px),#fbfdff}.section-top{flex:0 0 auto;min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 17px;border-bottom:1px solid var(--line);background:#fff}.identity{display:flex;flex-direction:column;gap:1px;min-width:0}.identity .mark{color:#173f73;font-weight:800;letter-spacing:.035em;font-size:16px}.identity .meta{color:#63788c;font-size:10px;letter-spacing:.035em}.top-actions{display:flex;align-items:center;gap:7px}.step{color:#56768f;font-size:11px;font-weight:700;white-space:nowrap}.iconbutton{border:1px solid #d2e2f0;border-radius:9px;background:#f4f9fe;color:var(--deep);font-size:16px;width:39px;height:35px;display:grid;place-items:center}.btn{background:var(--blue);border:1px solid var(--blue);color:#fff;border-radius:11px;font-weight:700;min-height:46px;padding:10px 18px}.btn.secondary{background:#fff;color:var(--blue)}.btn:active,.iconbutton:active{filter:brightness(.92)}.eyebrow{color:#557796;font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:750}.intro-body,.end-body{flex:1;min-height:0;padding:clamp(12px,3.1vh,34px) clamp(18px,5vw,40px) 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(9px,2vh,20px);text-align:center}.intro-title{font-size:clamp(27px,6.8vw,46px);line-height:1.07;letter-spacing:-.035em;margin:0;color:#1c3f64}.intro-copy{font-size:clamp(13px,3.5vw,16px);line-height:1.48;max-width:460px;margin:0}.scetch{width:min(100%,470px);height:clamp(100px,22vh,205px);flex:0 0 auto}.intro-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(100%,540px);text-align:left}.intro-note{background:#f2f8fd;border:1px solid #d9e7f1;border-radius:10px;padding:10px 9px;font-size:12px;line-height:1.3;color:#3a566d}.intro-note b{display:block;color:#0055bb;font-size:11px;margin-bottom:4px}.intro-bottom{display:flex;gap:9px;justify-content:center;width:100%}.about-link{font-size:11px;color:#456b8b;text-decoration:underline;text-underline-offset:2px}
/* Game: every component participates in a single screen-size flex layout. */
#game{background:linear-gradient(167deg,#ffffff,#f5faff)}.game-meta{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);height:44px;background:#fbfdff}.game-meta .metric{min-width:0;text-align:center;padding:4px 2px;border-right:1px solid #e0ebf3}.metric:last-child{border-right:0}.metric small{font-size:10px;display:block;color:#718496;line-height:1.2}.metric b{font-size:17px;color:#1b5186;font-variant-numeric:tabular-nums;line-height:1.25}.game-body{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;gap:16px;padding:5px 8px 3px;position:relative}.board-frame{height:min(100%,calc((100vw - 85px)*1.5));max-height:100%;aspect-ratio:12/18;max-width:min(100%,360px);min-width:0;flex-shrink:0;position:relative;border:1px solid #adc8dc;border-radius:7px;overflow:hidden;background:#ebf5fd;box-shadow:0 4px 16px #173f7315;touch-action:none;user-select:none;-webkit-user-select:none}.board-frame canvas{display:block;width:100%;height:100%;touch-action:none}.board-info{display:flex;flex-direction:column;gap:10px;align-self:stretch;justify-content:center;max-width:135px}.info-label{font-size:10px;font-weight:700;color:#688098;text-transform:uppercase;letter-spacing:.06em}.mini-cell{background:#f0f7fd;border:1px solid #d5e6f4;border-radius:8px;padding:8px 9px}.mini-cell strong{font-size:17px;color:#1a528c}.mini-cell p{font-size:11px;margin:4px 0 0;line-height:1.33;color:#587184}.board-note{font-size:11px;color:#66829b;line-height:1.38}
.measurements{flex:0 0 auto;height:clamp(91px,17dvh,143px);min-height:82px;margin:1px 10px 0;border:1px solid #c5dded;border-radius:11px;background:linear-gradient(155deg,#112b47,#163a5c);color:#f2fbff;display:flex;flex-direction:column;padding:6px 9px;overflow:hidden}.scope-header{flex:0 0 auto;display:flex;align-items:baseline;justify-content:space-between;gap:7px;white-space:nowrap;font-size:10px;color:#acd3ec}.scope-header b{font-size:11px;color:#c7f1ed}.scope-header .live{color:#a9e2d7}.scope-svg{flex:1;min-height:0;width:100%;display:block}.measure-caption{height:17px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:9px;color:#a8c2d6}.control-strip{flex:0 0 auto;display:flex;gap:9px;padding:8px max(12px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom));min-height:69px;align-items:stretch;justify-content:center}.control-strip button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:49px;border-radius:12px;background:#e6f1fa;border:1px solid #c2d9ed;color:#154778;font-size:23px;font-weight:700;touch-action:none;user-select:none;-webkit-user-select:none}.control-strip button:active{background:#cce4f5}.control-strip #rotateBtn{flex:1}.control-strip #softBtn{flex:1}.control-strip #hardBtn{flex:1.3;background:#0055bb;color:white;border-color:#0055bb}.control-strip .btnword{font-size:10px;font-weight:700;margin-left:7px}.game-footnote{flex:0 0 auto;text-align:center;color:#668095;font-size:10px;height:17px;line-height:13px}.pause-screen{display:none;position:absolute;inset:0;z-index:20;background:#eef7fce9;align-items:center;justify-content:center;padding:20px}.pause-screen.show{display:flex}.pause-box{border-radius:16px;background:white;border:1px solid #c3d9ea;padding:22px;text-align:center;box-shadow:0 9px 40px #133f661f;max-width:300px}.pause-box h2{margin:0 0 8px;font-size:23px}.pause-box p{font-size:13px;color:#647c91;line-height:1.5}
.end-body{justify-content:space-evenly;padding:10px 14px 9px;gap:7px}.end-title{font-size:clamp(22px,6vw,32px);margin:0;color:#194b7d}.end-text{max-width:540px;font-size:12px;line-height:1.4;margin:0}.end-stats{width:min(100%,510px);display:grid;grid-template-columns:1fr 1fr;gap:7px}.end-stat{background:#f1f7fc;border:1px solid #d4e5f2;border-radius:12px;padding:8px}.end-stat small{display:block;color:#60788b;font-size:11px}.end-stat strong{font-size:clamp(22px,6vw,31px);color:#0055bb}.scan-frame{width:min(100%,540px);height:clamp(128px,28vh,230px);background:#f6faff;border:1px solid #c9deec;border-radius:12px;padding:6px;min-height:105px}.scan-frame canvas{display:block;width:100%;height:100%}.final-note{font-size:11px;line-height:1.4;color:#4d6982;max-width:530px}.end-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
@media(max-width:600px){.section-top{padding:7px 12px;min-height:45px}.identity .mark{font-size:14px}.intro-note{font-size:11px;padding:8px 7px}.intro-body{padding:10px 12px;gap:11px}.intro-title{font-size:clamp(26px,7.2vw,37px)}.game-body{gap:6px;padding:4px 4px 1px}.board-info{width:65px;max-width:65px;gap:7px}.mini-cell{padding:5px 4px}.mini-cell strong{font-size:15px}.board-note{display:none}.mini-cell p{font-size:10px}.game-meta{height:41px}.metric b{font-size:15px}.measurements{margin:1px 7px 0;padding:5px 7px}.control-strip{gap:7px;padding-top:6px;min-height:64px}.control-strip button{min-height:45px}.game-footnote{font-size:9px;height:15px}}
@media(max-height:650px){.intro-note{padding:6px}.intro-copy{font-size:12px}.intro-body{gap:7px}.scetch{height:clamp(80px,18vh,125px)}.measurements{height:95px;min-height:75px}.control-strip{min-height:55px;padding-top:4px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.control-strip button{min-height:40px}.game-footnote{height:13px}.game-meta{height:36px}.metric b{font-size:14px}.end-body{gap:4px}.scan-frame{height:23vh}}
@media(min-width:750px){.game-body{justify-content:center}.board-frame{height:100%}.board-info{max-width:195px}.measurements{max-width:690px;width:calc(100% - 40px);margin-inline:auto}.control-strip{max-width:550px;width:100%;margin-inline:auto}.game-meta{max-width:700px;width:100%;margin-inline:auto}}

/* v4: five immersive scenes, small drawn instrument, pencil scientific style. */
.info-scene,.people-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:clamp(7px,1.6dvh,16px);padding:12px 13px calc(14px + env(safe-area-inset-bottom));overflow:hidden}
.info-scene .intro-title{font-size:clamp(27px,6.7vw,45px);line-height:1.08}
.scene-copy{max-width:565px;font-size:clamp(12px,3.1vw,16px);line-height:1.45;margin:0;color:#304a62}
.sub-title{margin:0;color:#204d79;font-size:clamp(23px,5.9vw,36px);line-height:1.12}
.hero-drawing{width:min(100%,430px);height:clamp(115px,24dvh,185px);flex:0 1 auto}
.pencil-note{width:min(100%,520px);text-align:left;padding:11px 13px;border-left:3px solid #7daacf;background:repeating-linear-gradient(145deg,#f3f8fd,#f3f8fd 11px,#ecf4fa 12px,#f3f8fd 13px);font-size:clamp(11px,2.8vw,14px);line-height:1.38;color:#3b5b75}
.pencil-note b{display:block;font-size:12px;letter-spacing:.015em;color:#1e5e96;margin-bottom:4px}.pencil-note span{display:block}
.scene-cta{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;flex-shrink:0}.scene-cta .btn{font-size:clamp(12px,3vw,15px)}
.text-btn{border:0;background:none;color:#416b8e;text-decoration:underline;text-underline-offset:3px;padding:8px;cursor:pointer}
.chain-drawing{display:flex;align-items:center;justify-content:center;width:100%;max-width:550px;gap:5px;margin:clamp(6px,2vh,18px) 0}
.chain-part{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:8px 3px 11px;border:1px solid #c5dfeb;border-radius:9px;background:repeating-linear-gradient(35deg,#f2f8fc,#f2f8fc 12px,#eaf3fa 12.5px,#f2f8fc 13.5px)}
.chain-symbol{font-family:Georgia,serif;font-size:clamp(27px,7vw,46px);line-height:1;color:#397cad}.chain-part b{font-size:clamp(11px,2.65vw,15px);color:#24547e}.chain-part small{font-size:clamp(9px,2.2vw,12px);line-height:1.3;color:#5b768d}.chain-arrow{color:#4b83a9;font-size:22px}
.measurements{height:clamp(77px,12dvh,102px);min-height:72px;flex-direction:row;align-items:center;gap:10px;padding:4px 10px;margin:2px 9px 0;background:repeating-linear-gradient(151deg,#f6fafd,#f6fafd 12px,#edf6fc 12.6px,#f6fafd 14px);border:1px solid #a9c9df;color:#234f79;box-shadow:0 3px 11px #164a7610}
.scope-instrument{height:100%;width:clamp(142px,48vw,225px);flex:0 0 auto;position:relative;padding:6px 8px 5px;background:#e4eff7;border:2px solid #6c9abd;border-radius:9px;transform:rotate(-.35deg);box-shadow:inset 0 0 0 2px #f8fcff,1px 2px 0 #b8d3e5}
.scope-instrument:before,.scope-instrument:after{content:'';position:absolute;border:1px solid #8db2cc;border-radius:2px;width:3px;height:3px;top:6px}.scope-instrument:before{left:5px}.scope-instrument:after{right:5px}
.instrument-label{font-size:8px;font-weight:800;letter-spacing:.1em;color:#215e91;height:11px;text-align:left;padding-left:2px}
.instrument-housing{height:calc(100% - 12px);display:flex;gap:5px}
.instrument-screen{height:100%;flex:1;min-width:0;border:3px solid #4c7a9d;border-radius:4px;background:#112d46;overflow:hidden;box-shadow:inset 0 0 6px #001b35}
.scope-svg{height:100%;width:100%;display:block}
.instrument-knobs{width:25px;flex:0 0 25px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:1px}
.instrument-knobs i{width:15px;height:15px;border:2px solid #7397b5;background:radial-gradient(circle at 40% 42%,#fafcff 0 3px,#d0e2ee 4px 100%);border-radius:50%;position:relative}
.instrument-knobs i:before{content:'';height:6px;width:1px;background:#356e99;position:absolute;left:5px;top:1px;transform:rotate(26deg)}
.instrument-knobs span{font-size:8px;color:#315d83;font-weight:700}
.reading-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:left;color:#42647c}
.reading-info strong{color:#16548a;font-size:clamp(10px,2.7vw,13px)}.reading-info span{font-size:clamp(11px,2.9vw,15px);font-weight:800;color:#226ba1}
.reading-info small{font-size:clamp(9px,2.2vw,11px);line-height:1.25;color:#5b7890;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.end-body{gap:clamp(5px,1vh,12px);justify-content:center}
.scan-frame{background:repeating-linear-gradient(146deg,#f7fbfe,#f7fbfe 13px,#ecf4fa 14px,#f7fbfe 15px);border:1px solid #8fb7d4;box-shadow:2px 3px 0 #dbeaf5;position:relative;overflow:hidden;padding:7px 8px}
.scan-pencil-caption{position:absolute;left:11px;top:6px;color:#497497;font-size:9px;letter-spacing:.08em;font-weight:700;pointer-events:none}
.scan-frame canvas{height:calc(100% - 9px);margin-top:9px}
.final-note{border-left:2px solid #6ba0c6;padding:4px 9px;text-align:left;background:#f2f8fc;font-size:clamp(10px,2.65vw,13px)}
.end-actions .btn{font-size:clamp(11px,2.8vw,14px);min-height:43px}
.people-body{gap:clamp(7px,1.4dvh,15px);padding:10px 14px calc(12px + env(safe-area-inset-bottom))}
.people-title{margin:0;color:#24537e;font-size:clamp(21px,5.6vw,34px);line-height:1.12}
.portrait-row{display:grid;grid-template-columns:minmax(80px,33%) 1fr;gap:12px;align-items:center;width:min(100%,565px);text-align:left}
.portrait-frame{width:100%;aspect-ratio:300/332;border:1px solid #c6e0ec;overflow:hidden;background:repeating-linear-gradient(145deg,#f3faff,#f3faff 8px,#c3ddef 9px,#f3faff 10px);box-shadow:3px 3px 0 #dcebf5;position:relative}
.portrait-frame img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:1;filter:saturate(.95)}.portrait-placeholder{display:block;position:absolute;inset:12%;color:#276895}.portrait-fallback .portrait-placeholder{display:block}
.portrait-details{display:flex;flex-direction:column;gap:5px;min-width:0}.portrait-details b{font-size:clamp(12px,3.3vw,17px);color:#1d4f7b}.portrait-details small{font-size:clamp(10px,2.6vw,12px);line-height:1.3;color:#637e94}.portrait-details p{font-size:clamp(11px,2.85vw,14px);line-height:1.34;color:#2e5778;font-style:italic;margin:4px 0}.portrait-details a{font-size:11px;color:#0055bb}
.science-facts,.student-note{width:min(100%,565px);text-align:left;font-size:clamp(10.5px,2.8vw,13px);line-height:1.37;color:#406078;padding:10px 12px}
.science-facts{border-top:1px solid #bed6e7;border-bottom:1px solid #bed6e7;background:#f7fbff}.science-facts b,.student-note strong{font-size:clamp(11px,3vw,14px);color:#245a88;display:block;margin-bottom:4px}.science-facts p{margin:4px 0}.student-note{background:repeating-linear-gradient(145deg,#edf6fd,#edf6fd 8px,#f9fcff 9px);border-left:3px solid #8cb6d0}.student-note span{display:block}
.people-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.people-actions .btn{font-size:clamp(11px,2.7vw,14px);min-height:42px}.cta-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.foot-source{font-size:clamp(8.5px,2.15vw,10.5px);line-height:1.3;color:#8296a6;margin:0;max-width:590px}
@media(max-width:370px){.reading-info small{-webkit-line-clamp:2}.measurements{gap:6px;padding:4px 6px}.scope-instrument{width:149px}.instrument-knobs{width:20px;flex-basis:20px}.scene-cta{gap:7px}.people-body{gap:7px}.portrait-row{grid-template-columns:31% 1fr;gap:9px}}
@media(max-height:680px){.hero-drawing{height:clamp(95px,19dvh,125px)}.info-scene{gap:6px;padding:6px 10px}.scene-copy{font-size:12px}.pencil-note{padding:6px 9px;font-size:11px}.chain-drawing{margin:4px 0}.measurements{height:77px;min-height:69px}.end-body{gap:4px}.end-text{font-size:11px}.end-stats .end-stat{padding:5px}.scan-frame{height:clamp(108px,23dvh,170px)}.people-body{gap:5px}.portrait-frame{max-height:clamp(120px,27dvh,180px)}.portrait-details p{font-size:11px}.science-facts,.student-note{padding:6px 9px}.science-facts p{line-height:1.26}.foot-source{font-size:9px}}
@media(max-height:580px){.hero-drawing{height:95px}.info-scene{gap:4px}.info-scene .intro-title{font-size:26px}.pencil-note{line-height:1.27}.chain-part{padding:4px 2px;gap:3px}.chain-symbol{font-size:27px}.people-title{font-size:21px}.portrait-frame{max-height:107px}.portrait-details p{margin:1px 0}.people-actions .btn{min-height:37px;padding:7px 9px}.student-note{display:none}}

/* v5: short skippable brand intro, science-guide portrait, explicit five-row blocks */
.splash-scene{align-items:center;justify-content:center;cursor:pointer;user-select:none;-webkit-user-select:none;background:repeating-linear-gradient(145deg,transparent 0,transparent 19px,#bfdaf015 20px,transparent 22px),#fbfdff}
.splash-content{height:100%;width:100%;max-width:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(20px,5dvh,48px);padding:30px 20px 56px;text-align:center}
.splash-brand{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}
.splash-art{width:min(71vw,250px);height:clamp(178px,37dvh,260px);display:block;filter:drop-shadow(2px 4px 0 #d6e9f6)}
.splash-wordmark{color:#0055bb;font-weight:850;font-size:clamp(28px,7vw,45px);letter-spacing:.01em}
.splash-phrase{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;color:#1f4c7b;font-size:clamp(22px,5.7vw,36px);font-weight:750;line-height:1.18;max-width:590px;letter-spacing:-.03em}
.splash-phrase span{display:block;opacity:0;transform:translateY(11px);animation:revealPencil .6s .25s forwards}
.splash-phrase span.line-two{animation-delay:.78s}
.splash-phrase.institute-phrase{color:#1f2b36;font-size:clamp(20px,5.3vw,34px)}
.splash-skip{position:absolute;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));font-size:12px;color:#567a9c;border:0;background:transparent;padding:13px 7px;z-index:3;cursor:pointer}
.splash-minimal{gap:24px}.splash-present{font-size:clamp(15px,4vw,20px);letter-spacing:.09em;color:#597e9d;font-weight:600;animation:fadePencil .7s both}
.splash-present span{color:#7fadd0}.splash-presents{font-size:clamp(32px,8.8vw,58px);color:#1e5b94;font-weight:800;letter-spacing:-.04em;animation:revealPencil .8s .3s both}
.splash-pencil-line{width:0;max-width:260px;height:2px;background:#7daad0;animation:drawPencil 1.1s .5s forwards}
.splash-series{font-size:clamp(11px,3vw,14px);color:#4f85ab;letter-spacing:.15em;font-weight:800;animation:fadePencil .5s both}
.splash-last{font-size:clamp(31px,8.5vw,61px);font-weight:850;letter-spacing:-.04em;color:#1d568b;line-height:1.12;animation:revealPencil .7s .25s both}
.splash-last em{font-style:normal;color:#0055bb}.splash-small{font-size:13px;font-weight:700;color:#5981a2;animation:fadePencil .8s 1s both}
@keyframes revealPencil{to{opacity:1;transform:translateY(0)}}@keyframes fadePencil{from{opacity:0}to{opacity:1}}@keyframes drawPencil{to{width:62vw}}
@media(prefers-reduced-motion:reduce){.splash-scene *{animation-duration:.01ms!important;animation-delay:0s!important}.splash-pencil-line{width:62vw}}
/* Scientist portrait does not change the measurement panel dimensions. */
.reading-info{position:relative;align-items:stretch;justify-content:center;gap:1px;overflow:hidden}
.guide-top{display:flex;align-items:center;gap:5px;min-height:31px}
.guide-photo{width:31px;height:32px;border:1px solid #90b6d2;border-radius:50%;overflow:hidden;background:#deedf7;flex:0 0 auto;box-shadow:1px 2px 0 #bfd8e7}
.guide-photo{position:relative;display:grid;place-items:center}
.guide-placeholder{position:absolute;font-size:18px;color:#638eaf;font-family:Georgia,serif}
.guide-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 12%;z-index:1}
.guide-name{font-weight:800;color:#1a5688;font-size:11px;line-height:1.1}.guide-name span{display:block;color:#7b97ac;font-size:8px;font-weight:600}
.guide-message{font-size:clamp(9px,2.5vw,11px);color:#335d7f;line-height:1.18;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:33px}
.guide-signal,.guide-count{display:none!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.game-footnote,.foot-source{display:none!important}
.hero-drawing{width:min(100%,450px);height:clamp(125px,23dvh,190px)}
@media(max-height:650px){.splash-art{height:clamp(130px,30dvh,200px)}.splash-content{gap:14px}.hero-drawing{height:clamp(100px,18dvh,140px)}.guide-top{min-height:24px}.guide-photo{width:25px;height:25px}.guide-message{-webkit-line-clamp:2;font-size:9px}}


/* v6 — типографика и палитра сохраненных HTML-страниц inphe.mephi.ru */

:root{--ink:#24303a;--blue:#0055bb;--deep:#24303a;--line:#d9e1e9;--pale:#f7f9fb;--paper:#fff;--secondary:#56616b;--cyan:#438ba9}
html,body,.app{font-family:Roboto,Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}
button,a{font-family:inherit}
.scene.paper{background:repeating-linear-gradient(153deg,transparent 0px,transparent 20px,rgba(50,111,166,.020) 21px,transparent 23px),#fff}
.section-top.clean-top{height:43px;min-height:43px;padding:6px 15px;background:#fff;border-bottom:1px solid #e3e9ef;box-shadow:none}
.clean-top .mark{font-size:16px;font-weight:700;letter-spacing:0;text-transform:none;color:#24303a}
.iconbutton{width:34px;height:32px;border-radius:6px;background:#f7f9fb;border-color:#d9e1e9;color:#0055bb}
.info-scene,.end-body,.people-body{color:#24303a}
.intro-title,.sub-title,.end-title,.people-title{color:#24303a!important;font-weight:700;letter-spacing:-.012em;line-height:1.25}
.scene-copy,.end-text,.end-stat small,.science-facts p,.student-note span,.portrait-details small{color:#56616b}
.eyebrow{color:#0055bb;font-size:11px;font-weight:700;letter-spacing:.04em}
.pencil-note{border-left:3px solid #0055bb;background:#f7f9fb;color:#56616b}
.pencil-note b{color:#24303a}
.chain-part,.mini-cell,.end-stat,.science-facts,.student-note{background:#fff;border-color:#d9e1e9;border-radius:8px;box-shadow:none}
.chain-part{background:repeating-linear-gradient(45deg,#fff 0,#fff 8px,#f7f9fb 9px,#fff 11px)}
#game{background:#fff}
.game-meta{background:#fff;border-color:#d9e1e9}
.metric small,.board-note,.mini-cell p{color:#56616b}
.metric b,.mini-cell strong{color:#0055bb}
.board-frame{border-color:#9bbce1;box-shadow:0 2px 8px #1b3d6412}
.measurements{background:#f7f9fb;border-color:#d9e1e9;box-shadow:none}
.scope-instrument{border-color:#6d97b8}
.control-strip button{border-radius:7px;color:#0055bb;background:#f7f9fb;border-color:#d9e1e9}
.control-strip #hardBtn{background:#0055bb;border-color:#0055bb}
.game-intro-title{font-family:inherit}
.info-scene{gap:clamp(5px,1.35dvh,13px);padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.scene-bottom{width:min(100%,565px);margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 0 1px;flex:0 0 auto}
.scene-bottom .lowkey-next{margin-left:auto}
.lowkey-next,.lowkey-back{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;font-size:clamp(12px,3.1vw,15px);line-height:1.5;min-height:36px;padding:4px 1px;color:#0055bb;cursor:pointer;text-decoration:none;font-weight:500}
.lowkey-next span{font-size:18px;vertical-align:-1px;padding-left:4px}
.lowkey-next:hover,.lowkey-back:hover{text-decoration:underline}
.lowkey-back{color:#56616b}
.end-body{justify-content:center;gap:clamp(5px,1dvh,10px)}
.end-body .scene-bottom{width:min(100%,540px);padding-bottom:2px}
#final{background:repeating-linear-gradient(153deg,transparent 0px,transparent 20px,rgba(50,111,166,.018) 21px,transparent 23px),#fff}
#people{background:#fff}
.people-actions .cta-link{background:#0055bb!important;border-radius:7px!important;min-height:43px;font-weight:500}
.people-actions .btn.secondary{background:#fff;color:#0055bb;border-color:#d9e1e9;font-weight:500;border-radius:7px}
/* Сдержанные титры. Только обработанные оригинальные логотипы и текст. */
.splash-scene.paper{background:#fff!important}
.splash-scene{cursor:pointer}
.splash-content{height:100%;width:100%;max-width:690px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(36px,7dvh,74px);padding:50px 24px 58px;text-align:center}
.official-logo{display:block;max-width:min(83vw,410px);width:auto;height:auto;object-fit:contain;flex-shrink:0;filter:none}
.official-logo.mephi-logo{max-height:min(27dvh,245px)}
.official-logo.inphe-logo{max-height:min(22dvh,185px)}
.splash-phrase{display:block!important;width:min(100%,640px);font-family:Roboto,Arial,sans-serif;max-width:640px;color:#24303a;font-size:clamp(25px,5.4vw,38px);font-weight:700;letter-spacing:-.015em;line-height:1.35;text-align:center}
.splash-phrase .splash-word{display:inline-block!important;opacity:0;transform:translateY(4px)}
.splash-scene.active .splash-word{animation:revealWord .42s ease-out both;animation-delay:calc(var(--i)*.28s)}
@keyframes revealWord{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.splash-skip{position:absolute;right:17px;bottom:calc(14px + env(safe-area-inset-bottom));background:transparent!important;border:0!important;color:#64717d!important;font-weight:400;font-size:12px;line-height:1.4;padding:8px}
.splash-content-title{gap:20px}
.splash-series{font-size:clamp(12px,3vw,15px);color:#0055bb;font-weight:700;letter-spacing:.06em}
.game-intro-title{margin:0;font-size:clamp(43px,10.5vw,70px);line-height:1.12;color:#24303a;font-weight:700;letter-spacing:-.035em}
.splash-tagline{font-size:clamp(18px,4.7vw,27px);font-weight:500;color:#0055bb}
.splash-edition{font-size:12px;font-weight:400;color:#56616b;max-width:340px;line-height:1.45}
@media(max-height:650px){.splash-content{gap:clamp(16px,5dvh,35px)}.official-logo.mephi-logo{max-height:25dvh}.official-logo.inphe-logo{max-height:19dvh}.splash-phrase{font-size:clamp(20px,5vw,32px)}.info-scene{gap:5px}.scene-bottom{padding:3px 0 0}}
@media(max-width:360px){.splash-phrase{font-size:clamp(22px,6.7vw,27px)}.official-logo{max-width:90vw}.scene-bottom .lowkey-next{font-size:12px}}


/* v7: responsive space distribution and consistent Roboto typography */
.info-scene,.end-body,.people-body{min-height:0;overflow:hidden}
#intro .info-scene,#science .info-scene{justify-content:space-between;gap:clamp(6px,1.65dvh,16px);padding:clamp(12px,2.8dvh,25px) clamp(13px,3.5vw,30px) calc(12px + env(safe-area-inset-bottom))}
#intro .hero-drawing{width:min(100%,520px);height:auto;flex:1 1 150px;max-height:min(34dvh,290px);min-height:95px;display:block}
#science .chain-drawing{flex:1 1 110px;min-height:112px;max-height:min(32dvh,280px);align-items:stretch;margin:0}
#science .chain-part{justify-content:center;gap:clamp(4px,1.3dvh,13px)}
#intro .pencil-note,#science .pencil-note{flex:0 0 auto}
#intro .scene-bottom,#science .scene-bottom,#final .scene-bottom{margin-top:0;min-height:42px;width:min(100%,565px);border-top:1px solid #e3e9ef;padding-top:5px;justify-content:flex-end;align-items:center}
#science .scene-bottom{justify-content:space-between}
.scene-bottom .lowkey-next,.scene-bottom .lowkey-back{display:inline-flex;align-items:center;gap:4px;min-height:39px;min-width:80px;font-size:clamp(13px,3.1vw,15px)}
.scene-bottom .lowkey-next{margin-left:auto}
#final .end-body{justify-content:space-between;padding:clamp(11px,2.4dvh,22px) clamp(13px,3vw,30px) calc(12px + env(safe-area-inset-bottom));gap:clamp(7px,1.45dvh,14px)}
#final .scan-frame{flex:1 1 190px;max-height:min(40dvh,360px);min-height:120px;height:auto;width:min(100%,565px)}
#final .scan-frame canvas{width:100%;height:100%;object-fit:fill}
#final .final-note{max-width:565px;width:100%;font-size:clamp(11px,2.8vw,14px);line-height:1.4}
#people .people-body{justify-content:space-evenly;gap:clamp(5px,1.25dvh,13px);padding:clamp(9px,1.8dvh,18px) clamp(13px,3vw,25px) calc(12px + env(safe-area-inset-bottom))}
#people .people-actions{width:min(100%,565px);align-items:stretch;justify-content:center;margin-top:auto;gap:7px}
#people .people-actions .btn{font-size:clamp(11px,2.7vw,14px)}
#people .people-actions .cta-link,#people .portrait-details a{font-family:Roboto,Arial,sans-serif}
#people .people-actions .cta-link span{font-weight:400;font-size:17px;margin-left:4px}
#people .portrait-details a span{margin-left:3px}
#people .people-actions #shareBtn{font-weight:400;font-size:12px;color:#0055bb}
#final .scan-pencil-caption{font-family:Roboto,Arial,sans-serif;font-weight:700}
@media(max-height:720px){
 #intro .info-scene,#science .info-scene,#final .end-body,#people .people-body{gap:5px;padding-top:6px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
 #intro .hero-drawing{max-height:24dvh;min-height:75px}
 #science .chain-drawing{max-height:23dvh;min-height:82px}
 #science .chain-part{gap:4px;padding:5px 2px}
 #final .scan-frame{max-height:32dvh;min-height:100px}
 #people .portrait-frame{max-height:clamp(100px,24dvh,160px)}
}
@media(max-height:590px){
 #intro .scene-copy,#science .scene-copy{font-size:11px;line-height:1.3}
 #intro .pencil-note,#science .pencil-note{font-size:10px;line-height:1.28;padding:5px 7px}
 #intro .info-scene .intro-title,#science .sub-title{font-size:clamp(20px,5.6vw,27px)}
 #science .chain-part small{font-size:9px}
 #people .people-body{gap:3px}
 #people .student-note{display:none}
 #people .portrait-frame{max-height:98px}
 #people .science-facts{padding:5px 8px}
 #final .end-text{font-size:10px}
}

/* More even visual use of the viewport on the people page */
#people .people-body{justify-content:space-evenly}
#people .people-actions{margin-top:0}
#intro .hero-drawing{max-height:min(29dvh,235px)}
#science .chain-drawing{max-height:min(25dvh,210px);flex-basis:100px}
#intro .scene-copy,#science .scene-copy{font-size:clamp(12px,3.3vw,16px)}
@media(max-height:650px){#intro .hero-drawing{max-height:22dvh}#science .chain-drawing{max-height:21dvh}}


/* v9: единая фирменная синяя типографика заставок */
#splash1 .splash-phrase,#splash2 .splash-phrase{color:#0055bb!important;font-family:Roboto,Arial,sans-serif;font-weight:700;line-height:1.32}
#splash4 .splash-series,#splash4 .game-intro-title,#splash4 .splash-tagline{color:#0055bb!important}
#splash4 .game-intro-title{font-weight:700;letter-spacing:-.025em;font-size:clamp(41px,10.3vw,69px)}
#splash4 .splash-edition{color:#56616b}
#splash4 .splash-content{gap:clamp(20px,5vh,44px);padding-inline:24px}
#splash4 .game-intro-title span{text-decoration:underline;text-decoration-color:#9ac7e4;text-decoration-thickness:2px;text-underline-offset:9px}
.splash-scene .splash-content{filter:none}
#game .board-frame{background:#f2f9fe}
#final .scan-frame{background:repeating-linear-gradient(145deg,#f9fcff 0,#f9fcff 13px,#eff6fc 14px,#f9fcff 15px)}
#final .scan-frame canvas{image-rendering:auto}
.scan-summary{margin:0;color:#53718a;font-size:clamp(10px,2.7vw,12px);font-family:Roboto,Arial,sans-serif;line-height:1.3}
@media(max-height:660px){#final .scan-summary{font-size:10px}}



/* v10: карандашные логотипы и более рисованные схемы */
.official-logo{image-rendering:auto}
#splash1 .official-logo.mephi-logo{max-height:min(28dvh,250px)}
#splash2 .official-logo.inphe-logo{max-height:min(24dvh,200px)}
#splash4 .splash-content{gap:clamp(26px,6.2vh,58px)!important}
#splash4 .splash-topline{font-family:Roboto,Arial,sans-serif;font-size:clamp(30px,7vw,46px);font-weight:700;letter-spacing:-.016em;line-height:1.1;color:#0055bb}
#splash4 .pencil-title{margin:0;font-size:clamp(51px,12.2vw,82px)!important;font-weight:800!important;letter-spacing:-.035em;line-height:1.02;color:#0c5fcb!important;text-shadow:.6px 0 #88b5de,-.6px 0 #88b5de,0 .6px #88b5de;position:relative}
#splash4 .pencil-title:after{content:'';display:block;width:min(46vw,250px);height:4px;margin:14px auto 0;background:repeating-linear-gradient(90deg,#a9cde8 0,#a9cde8 18px,#dbeaf5 18px,#dbeaf5 28px);border-radius:3px}
#splash4 .splash-content-title{justify-content:center}
#intro .hero-drawing{filter:drop-shadow(1px 1px 0 #ddebf5)}
#intro .hero-drawing text{letter-spacing:.01em}
#science .chain-drawing{gap:8px;align-items:stretch}
#science .chain-part{padding:10px 5px 12px;border:1px solid #bed3e2;border-radius:14px;background:repeating-linear-gradient(145deg,#fbfdff 0,#fbfdff 9px,#eff6fb 10px,#fbfdff 12px);box-shadow:2px 2px 0 #e5eff7}
#science .chain-part b{font-size:clamp(11px,2.8vw,15px);line-height:1.2}
#science .chain-part small{max-width:130px;color:#5e788d}
#science .chain-icon{display:block;width:42px;height:42px;margin:0 auto 2px;overflow:visible}
#science .chain-arrow{align-self:center;font-size:28px;color:#4b83a9;transform:translateY(-2px)}
#science .scene-copy b,#intro .scene-copy b{color:#3f5368}


/* v11: exactly the approved blue-pencil generated logos and title image. */
#splash1 .mephi-logo{width:min(82vw,410px);height:auto;max-height:min(31dvh,265px);object-fit:contain}
#splash2 .inphe-logo{width:min(83vw,440px);height:auto;max-height:min(25dvh,210px);object-fit:contain}
#splash4 .game-intro-title{font-size:inherit!important;width:min(90vw,520px);margin:0 auto!important;line-height:0!important}
#splash4 .pencil-game-logo{display:block;width:100%;height:auto;object-fit:contain;filter:none;}
#splash4 .pencil-title:after{content:none!important}
#splash4 .splash-content-title{gap:clamp(21px,4.5dvh,48px)!important}
@media(max-height:600px){#splash1 .mephi-logo{max-height:28dvh}#splash2 .inphe-logo{max-height:22dvh}}

/* v12: unified hand-pencil schematic accents without changing the apparatus layout */
#intro .hero-drawing {filter:drop-shadow(1px 1px 0 rgba(123,173,207,.18));}
#intro .hero-drawing rect, #intro .hero-drawing path, #intro .hero-drawing circle {stroke-linecap:round;stroke-linejoin:round}
#science .chain-part {background:repeating-linear-gradient(143deg,#fbfdff 0px,#fbfdff 5px,#eaf4fb 6px,#fbfdff 7px);border-color:#accbe0;box-shadow:1px 2px 0 #dcebf6}
#science .chain-icon {filter:drop-shadow(1px 1px 0 rgba(105,156,194,.32))}
#science .chain-icon rect, #science .chain-icon path {stroke-linecap:round;stroke-linejoin:round}
#science .chain-part small {color:#566f83}

/* v12: every game component stays in the *actual visible viewport*.
   The field yields height to the real oscilloscope, Arina's commentary and controls. */
:root { --real-app-height:100dvh }
.app { height:var(--real-app-height)!important; max-height:var(--real-app-height)!important; }
#game.active {display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:46px 43px minmax(0,1fr) clamp(94px,14dvh,111px) calc(55px + env(safe-area-inset-bottom));}
#game .section-top {height:46px;min-height:0;padding:5px 12px}
#game .game-meta {height:43px;min-height:0}
#game .game-body {height:100%;min-height:0;min-width:0;max-height:100%;gap:5px;padding:3px 6px 2px;overflow:hidden;align-items:center;justify-content:center}
#game .board-frame {height:min(100%,calc((100vw - 92px)*1.5))!important;width:auto!important;max-width:none!important;max-height:100%!important;min-height:0;min-width:0;aspect-ratio:2 / 3;flex:0 1 auto}
#game .board-frame canvas {width:100%;height:100%;object-fit:fill}
#game .board-info {width:clamp(58px,17vw,77px)!important;max-width:77px!important;min-width:0;flex:0 0 auto;align-self:center;gap:5px}
#game .board-info .mini-cell {padding:6px 4px}
#game .board-info .info-label {font-size:10px;letter-spacing:0}
#game .board-info .mini-cell p{font-size:10px;line-height:1.2}
#game .board-info .board-note {display:none}
#game #nextCanvas {max-height:45px!important}
#game .measurements {box-sizing:border-box;width:calc(100% - 14px)!important;max-width:690px;margin:0 auto;height:100%!important;min-height:0!important;display:flex;flex-direction:row;align-items:center;gap:8px;padding:5px 7px;overflow:hidden}
#game .scope-instrument {height:100%;width:clamp(129px,43vw,205px);max-width:50%;min-width:0;flex-shrink:0}
#game .reading-info {min-height:0;gap:2px;overflow:hidden}
#game .guide-top {flex-shrink:0}
#game .reading-info .guide-message {font-size:clamp(10px,2.85vw,13px);line-height:1.18;max-height:2.6em;overflow:hidden}
#game .reading-info .guide-signal,#game .reading-info .guide-count{font-size:9px}
#game .control-strip {height:100%;min-height:0!important;margin:0 auto;padding:4px 10px calc(5px + env(safe-area-inset-bottom));gap:8px}
#game .control-strip button {height:100%;min-height:0;padding:2px 4px}
@media (max-height:660px){
  #game.active {grid-template-rows:40px 39px minmax(0,1fr) 94px calc(51px + env(safe-area-inset-bottom));}
  #game .section-top {height:40px;min-height:0}
  #game .game-meta{height:39px;min-height:0}
  #game .metric small{font-size:9px}
  #game .metric b{font-size:14px}
  #game .measurements{gap:5px}
  #game .guide-photo{width:32px;height:32px}
  #game .scope-instrument{width:clamp(119px,41vw,180px)}
}
@media (max-width:350px) {
  #game .board-info{width:58px!important;max-width:58px!important}
  #game .board-info .mini-cell p{font-size:9px}
  #game .scope-instrument{width:125px}
  #game .reading-info .guide-message{font-size:10px}
}


/* v13: мягкая ручная штриховка пиктограмм, без геометрического узора на карточках */
#science .chain-part{background:#fcfeff!important;box-shadow:2px 2px 0 #eaf2f8}
#intro .hero-drawing{max-height:min(28dvh,225px)}

/* v14: sections and figures preserve their geometry; pencil texture has nonuniform strokes. */
#science .chain-part{background:#fcfeff!important;background-image:none!important}
#intro .hero-drawing{max-height:min(28dvh,225px)}

/* v16 tweaks: hand-drawn intro/science visuals + section mini-map */
#game .game-body{align-items:flex-start!important}
#game .board-frame{align-self:flex-start}
#game .board-info{align-self:flex-start!important;justify-content:flex-start!important;padding-top:0;gap:6px!important}
#game .board-info .mini-cell{padding:6px 4px}
#game .board-info .mini-cell.section-mini{padding:6px 4px 5px}
#game .board-info .mini-cell.section-mini canvas{display:block;width:100%;height:82px}
#game .board-info .mini-cell.section-mini .info-label{margin-bottom:3px}
#game .board-info .mini-cell strong{display:block;line-height:1.05}
#game .board-note{display:block!important;font-size:10px;line-height:1.28;margin-top:1px}
@media(max-width:600px){
  #game .board-info{gap:5px!important}
  #game .board-info .mini-cell.section-mini canvas{height:72px}
  #game .board-note{font-size:9px;line-height:1.22}
}
#science .chain-part{background:#fcfeff!important;background-image:none!important;border:1px solid #bed3e2!important;border-radius:15px!important;box-shadow:1px 2px 0 #e4eff7!important;padding:10px 7px 11px!important}
#science .chain-icon{display:block;width:54px!important;height:54px!important;margin:0 auto 3px;overflow:visible!important;filter:none!important}
#science .chain-arrow{font-size:25px;color:#4c82a8;margin:0 2px;align-self:center}
#science .chain-part b{font-size:clamp(11px,2.7vw,15px)}
#science .chain-part small{max-width:132px;color:#5d7488}
@media(max-width:370px){
  #science .chain-icon{width:48px!important;height:48px!important}
  #science .chain-part{padding:9px 5px 10px!important}
}
#intro .hero-drawing,#science .chain-icon{shape-rendering:geometricPrecision}


/* v17: compact sidebar and original schematic, with full-width drawing visible */
#intro .hero-drawing{overflow:visible}
#game .board-info{margin-top:0!important}
#game .board-info .mini-cell.section-mini{border-color:#d9e1e9!important;background:#fff!important}
#game .board-info .mini-cell.section-mini .info-label{color:#56616b}
@media(max-width:370px){#game .board-note{display:none!important}}

/* v18: восстановлены только визуальные схемы по утвержденным скриншотам. */
#science .chain-part{
  background:repeating-linear-gradient(143deg,#fbfdff 0px,#fbfdff 5px,#eaf4fb 6px,#fbfdff 7px)!important;
  background-image:repeating-linear-gradient(143deg,#fbfdff 0px,#fbfdff 5px,#eaf4fb 6px,#fbfdff 7px)!important;
  border-color:#accbe0!important;
  border-radius:14px!important;
  box-shadow:1px 2px 0 #dcebf6!important;
  padding:10px 5px 12px!important;
}
#science .chain-icon{
  width:42px!important;
  height:42px!important;
  margin:0 auto 2px!important;
  filter:drop-shadow(1px 1px 0 rgba(105,156,194,.32))!important;
}
#science .chain-part b{font-size:clamp(11px,2.8vw,15px);line-height:1.2}
#science .chain-part small{color:#566f83}
@media(max-width:370px){
  #science .chain-icon{width:42px!important;height:42px!important}
  #science .chain-part{padding:10px 5px 12px!important}
}


/* v19: Mobile gesture-only playing surface; preserve original board proportions.
   Controls remain in the DOM for unchanged game listeners but are no longer shown. */
#game .control-strip {display:none!important}
#game.active {
  grid-template-rows:46px 43px minmax(0,1fr) clamp(104px,17dvh,154px)!important;
}
#game .game-body {align-items:center!important}
#game .board-frame {align-self:center!important}
#game .board-info {
  align-self:center!important;
  height:min(100%,calc((100vw - 92px)*1.5));
  justify-content:flex-start!important;
}
#game .reading-info .guide-message {
  max-height:3.72em;
  line-height:1.24;
  font-size:clamp(10px,2.85vw,14px);
}
#game .measurements {height:calc(100% - max(6px,env(safe-area-inset-bottom)))!important;align-self:start;margin-bottom:0!important}
@media (max-height:660px){
  #game.active {grid-template-rows:40px 39px minmax(0,1fr) clamp(87px,16dvh,105px)!important}
  #game .reading-info .guide-message{max-height:2.5em}
}
@media (max-width:350px){
  #game .board-info {height:min(100%,calc((100vw - 92px)*1.5))}
  #game .reading-info .guide-message{font-size:10px}
}

/* v19: Researcher screen uses the space freed by removing the share link. */
#people #shareBtn{display:none!important}
#people .people-body{
  justify-content:space-evenly;
  gap:clamp(8px,1.7dvh,20px);
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
}
#people .portrait-row{grid-template-columns:minmax(82px,37%) minmax(0,1fr)}
#people .science-facts,#people .student-note{padding:clamp(9px,1.55dvh,14px) 12px}
#people .people-actions{margin-top:0;align-items:stretch}
@media(max-height:720px){
  #people .people-body{gap:6px;padding-top:7px;padding-bottom:calc(9px + env(safe-area-inset-bottom))}
  #people .portrait-row{grid-template-columns:minmax(75px,34%) minmax(0,1fr)}
  #people .science-facts,#people .student-note{padding:7px 9px}
}
@media(max-height:590px){
  #people .people-body{gap:3px}
  #people .portrait-row{grid-template-columns:minmax(70px,31%) minmax(0,1fr)}
  #people .science-facts{padding:5px 8px}
}

/* v21: prevent mobile double-tap enlargement during active play, not on info pages. */
html.sipm-playing,html.sipm-playing body{touch-action:manipulation;overscroll-behavior:none}
#game #boardFrame,#game #board{touch-action:none!important;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}

/* v21: move ONLY the third splash title to the logo height on preceding screens. */
#splash4 .splash-content-title{transform:translateY(clamp(-128px,-13dvh,-73px))}


/* v0.22 — approved pencil artworks on the two introductory screens.
   Sizing changes only the illustrations, never the existing game screen. */
#intro .hero-illustration, #science .science-illustration {
  display:block;
  width:min(100%,565px);
  height:auto;
  min-height:0;
  min-width:0;
  flex:1 1 auto;
  object-fit:contain;
  object-position:center;
  margin:0 auto;
  filter:none;
}
#intro .hero-illustration {max-height:min(33dvh,295px)}
#science .science-illustration {max-height:min(34dvh,295px)}
@media(max-height:720px){
  #intro .hero-illustration {max-height:28dvh}
  #science .science-illustration {max-height:29dvh}
}
@media(max-height:590px){
  #intro .hero-illustration {max-height:24dvh}
  #science .science-illustration {max-height:25dvh}
}

/* v0.22 — optional score presentation after the existing laboratory scan. */
.participant-overlay[hidden]{display:none!important}
.participant-overlay{
  position:absolute;inset:0;z-index:45;
  display:flex;align-items:center;justify-content:center;
  padding:calc(15px + env(safe-area-inset-top)) 17px calc(15px + env(safe-area-inset-bottom));
  background:rgba(20,47,71,.44);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.participant-card{
  box-sizing:border-box;width:min(100%,430px);max-height:100%;overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:clamp(18px,4.4dvh,30px) clamp(16px,4.3vw,30px) clamp(16px,3.6dvh,27px);
  border:1px solid #b9d1e5;border-radius:18px;
  background:repeating-linear-gradient(151deg,#fff 0px,#fff 17px,#f7fbfe 18px,#fff 20px);
  box-shadow:0 16px 50px rgba(15,51,85,.22);
  text-align:center;color:#24303a;
}
.participant-eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#0055bb;font-weight:700}
.participant-card h2{font-size:clamp(23px,5.6vw,30px);line-height:1.2;margin:9px 0 12px;color:#24303a}
.participant-percent{font-size:clamp(62px,17vw,88px);line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums;font-weight:800;color:#0055bb}
.participant-percent span{font-size:.48em;letter-spacing:0;margin-left:2px}
.participant-grade{font-size:clamp(17px,4.4vw,21px);font-weight:700;color:#1d5488;margin:12px 0 13px}
.participant-meter{height:10px;width:100%;overflow:hidden;border-radius:20px;background:#e6eef5;border:1px solid #d4e3ef}
.participant-meter span{height:100%;display:block;width:0;background:linear-gradient(90deg,#5a9cc5,#0055bb);border-radius:inherit;transition:width .8s ease-out}
.participant-count{font-size:clamp(13px,3.35vw,15px);margin-top:12px;font-weight:700;color:#3b566d}
.participant-target{font-size:12px;color:#61778b;margin-top:4px}
.participant-message{font-size:clamp(13px,3.25vw,15px);color:#526370;line-height:1.48;margin:16px auto 20px;max-width:340px}
.participant-actions{display:flex;flex-direction:column;gap:9px}
.participant-primary,.participant-secondary{border-radius:9px;min-height:45px;padding:9px 12px;font-size:clamp(13px,3.4vw,15px);font-weight:600}
.participant-primary{background:#0055bb;border:1px solid #0055bb;color:white}
.participant-secondary{background:#fff;border:1px solid #d8e3ec;color:#0055bb}
.participant-actions button:active{filter:brightness(.95)}
@media(max-height:560px){
 .participant-card{padding:13px 15px}
 .participant-card h2{margin:5px 0 7px;font-size:22px}
 .participant-percent{font-size:56px}
 .participant-grade{margin:7px 0}
 .participant-message{font-size:12px;margin:10px auto}
 .participant-primary,.participant-secondary{min-height:38px}
}
@media(prefers-reduced-motion:reduce){.participant-meter span{transition:none}}


/* SOURCE: isotopes.css */
/* Game-specific styles. The original SiPM v0.22 first-two-splash CSS remains untouched. */
:root{--iso-ink:#1f2b36;--iso-blue:#0055bb;--iso-muted:#61778c;--iso-surface:#fbfdff;--iso-tg-top:0px;--iso-tg-bottom:0px;--real-app-height:100dvh}
html,body{overscroll-behavior:none;-webkit-overflow-scrolling:touch}
.app{height:var(--real-app-height)!important;max-height:var(--real-app-height)!important}
.iso-title-splash .splash-content{gap:clamp(13px,3.4vh,30px)!important}
#splash4 .splash-content-title{transform:translateY(clamp(-128px,-13dvh,-73px))}
.iso-title-splash .splash-topline{font-size:clamp(27px,7vw,44px);font-family:Roboto,Arial,sans-serif;color:#0055bb;font-weight:700}
.iso-splash-title{font:800 clamp(35px,9.7vw,68px)/1.1 Roboto,Arial,sans-serif;color:#0055bb;margin:0;letter-spacing:-.035em;text-shadow:1px .7px 0 #aecde7}
.iso-splash-tagline{font-size:clamp(17px,4.2vw,24px);font-weight:700;color:#3a719e;margin:0}
.isotope-splash-mark{display:flex;align-items:center;justify-content:center;gap:14px}
.isotope-splash-mark span{display:grid;place-items:center;border:2px solid #b7d0e8;border-radius:12px;width:clamp(72px,18vw,101px);aspect-ratio:1;background:#e7f2fa;color:#163f6a;font-size:clamp(22px,5.5vw,29px);font-weight:750;box-shadow:3px 4px 0 #bdd4e6}
.isotope-splash-mark span:last-child{background:#71609f;color:white;border-color:#71609f}
.isotope-splash-mark i{font-size:25px;font-style:normal;color:#75a2c6}
.iso-page{background:repeating-linear-gradient(153deg,transparent 0,transparent 19px,rgba(31,100,159,.021) 20px,transparent 22px),#fbfdff}
.iso-panel{width:100%;max-width:640px;margin:0 auto;padding:calc(22px + var(--iso-tg-top)) max(19px,env(safe-area-inset-left)) calc(20px + var(--iso-tg-bottom));display:flex;flex-direction:column;gap:clamp(12px,2vh,20px);overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-items:stretch}
.iso-panel h1,.iso-panel h2,.iso-panel h3{color:#1b4877;margin:0;line-height:1.13;letter-spacing:-.025em}
.iso-panel h1{font-size:clamp(36px,9vw,55px)}.iso-panel h2{font-size:clamp(27px,7.7vw,37px)}.iso-panel h3{font-size:20px}
.iso-panel p{font-size:clamp(13px,3.5vw,15px);line-height:1.48;margin:0}
.iso-eyebrow{font-size:11px;color:#557796;text-transform:uppercase;letter-spacing:.12em;font-weight:700}
.iso-panel .iso-lead{color:#3a536b;font-size:clamp(15px,3.8vw,17px);line-height:1.48}
.iso-nuclide-journey{display:flex;align-items:center;justify-content:center;gap:clamp(6px,2.4vw,18px);margin:7px 0 10px}
.iso-journey-cell{display:grid;place-items:center;width:clamp(65px,19vw,110px);aspect-ratio:1;border:1px solid #a3c6e4;border-radius:13px;color:#1b4877;font-size:clamp(23px,6vw,30px);font-weight:700;background:#e2f1fb;box-shadow:0 3px 13px #1b487711}
.iso-journey-cell.mid{background:#99c6ed}.iso-journey-cell.large{background:#75549e;color:#fff;border-color:#75549e}
.iso-journey-arrow{color:#5d92bd;font-size:clamp(16px,4vw,24px)}
.iso-paper-note{border:1px solid #c7dfef;background:#f0f8ff;padding:14px 16px;border-radius:11px;box-shadow:0 3px 15px #1c56890c}
.iso-paper-note strong{color:#1a4f82;font-size:14px;display:block;margin-bottom:6px}.iso-paper-note p{font-size:13px}
.iso-nav-bottom{margin-top:auto;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;border-top:1px solid #dce8f1;padding-top:15px}
/* Intro and rules should be tappable everywhere, with the visible CTA near the text (not beneath host banners). */
#intro,#rules{cursor:pointer;touch-action:pan-y}
#intro .iso-nav-bottom,#rules .iso-nav-bottom{margin-top:clamp(9px,2.5vh,23px);flex-shrink:0;justify-content:flex-end}
#intro .iso-nav-bottom{border-top:0;padding-top:0}
#intro .iso-nav-bottom .iso-link-button{background:#0055bb;color:#fff;border-radius:10px;padding-inline:18px;min-height:46px}
#rules .iso-nav-bottom{border-top:0;padding-top:0}

.iso-link-button,.iso-main-button{border-radius:10px;border:1px solid transparent;min-height:44px;padding:10px 15px;font-weight:700;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:7px;text-align:center;text-decoration:none;touch-action:manipulation}
.iso-main-button{background:#0055bb;color:#fff;border-color:#0055bb}.iso-main-button:active{background:#003f88}
.iso-link-button{background:transparent;color:#0055bb}.iso-link-button.muted{color:#65778b}.iso-link-button:active{background:#e6f0f8}
.iso-rule{border:1px solid #d9e7f2;border-radius:13px;background:#f4f9fe;display:flex;align-items:center;gap:13px;padding:12px}
.iso-rule-symbol{flex:0 0 65px;height:59px;border-radius:11px;display:grid;place-items:center;background:#d5eafa;color:#194a7a;font-size:22px;font-weight:700}
.iso-rule:nth-of-type(3) .iso-rule-symbol{font-size:20px;background:#a4cdef}.iso-rule:nth-of-type(4) .iso-rule-symbol{font-size:17px;background:#76549f;color:white}
.iso-rule p{font-size:13px;color:#4b6277}.iso-rule p strong{color:#214a70}
.iso-science-caveat{color:#6b8092!important;font-size:12px!important;line-height:1.43!important}
/* Game: no browser scroll, no double-tap zoom, no Telegram edge gesture inside play surface. */
html.isotope-playing,html.isotope-playing body{touch-action:manipulation;overscroll-behavior:none}
.iso-game{background:linear-gradient(164deg,#fff,#edf6fd);touch-action:manipulation;padding-top:var(--iso-tg-top);padding-bottom:var(--iso-tg-bottom);user-select:none;-webkit-user-select:none}
.iso-game-head{padding:7px 15px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;min-height:54px;border-bottom:1px solid #d5e4f0;background:#fff;gap:8px}
.iso-game-head>div:first-child{display:flex;flex-direction:column;gap:2px}.iso-game-head .iso-brand{font-size:17px;font-weight:800;color:#17487a;letter-spacing:.02em}
.iso-game-head small{color:#68839b;font-size:10px;font-weight:600}.iso-head-buttons{display:flex;gap:8px}
.iso-head-buttons button{display:grid;place-items:center;background:#eff6fd;color:#1b558a;border:1px solid #c7dff0;border-radius:10px;font-weight:800;font-size:19px;height:37px;width:40px;touch-action:manipulation}
.iso-game-stats{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f9fcff;height:59px;border-bottom:1px solid #d5e4ef}
.iso-game-stats>div{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border-right:1px solid #e3edf5}
.iso-game-stats>div:last-child{border-right:none}.iso-game-stats small{color:#688197;font-size:10px}.iso-game-stats strong{color:#164a7d;font-size:21px;font-variant-numeric:tabular-nums;line-height:1.15}
.iso-game-status{flex:0 0 auto;margin:9px 15px 3px;padding:8px 12px;background:#f4f9fd;border:1px solid #d9e8f3;border-radius:10px;display:flex;align-items:center;gap:9px;color:#365c78;font-size:clamp(11px,2.9vw,13px);min-height:39px}
.iso-game-status.warning{background:#fff6f3;border-color:#f1d0c7;color:#a7493e}.iso-game-status.celebrate{background:#f0f7ec;border-color:#c7e1ba;color:#376a36}
.iso-status-dot{width:8px;height:8px;border-radius:100%;background:#61a0d1;flex-shrink:0}.iso-game-status.warning .iso-status-dot{background:#d96857}.iso-game-status.celebrate .iso-status-dot{background:#65aa5d}
.iso-board-zone{flex:1 1 0;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:2px 10px 3px;overflow:hidden}
.iso-board{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);gap:clamp(5px,1.5vw,9px);padding:clamp(7px,2vw,11px);width:min(calc(100vw - 22px),420px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 301px));max-width:100%;aspect-ratio:1;touch-action:none!important;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:17px;border:2px solid #9cbad0;background:#bdd2e1;box-shadow:0 9px 25px #214e741c;outline-offset:3px}
.iso-cell{min-width:0;min-height:0;position:relative;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#d9e6ee;overflow:hidden}
.iso-tile{position:absolute;inset:0;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;background:var(--tile-bg,#e5f2fb);color:var(--tile-text,#1d4565);text-align:center;animation:tilePop .145s ease-out both;box-shadow:0 1px 4px #23466320}
@keyframes tilePop{0%{transform:scale(.93);opacity:.77}100%{transform:scale(1);opacity:1}}
.iso-tile .tile-symbol{font-size:clamp(17px,4.9vw,29px);font-weight:800;line-height:1.09;letter-spacing:-.035em;white-space:nowrap}
.iso-tile .tile-name{font-size:clamp(8px,2.05vw,11px);font-weight:650;line-height:1.12;white-space:nowrap}
.iso-tile .tile-comp{font-size:clamp(7px,1.85vw,10px);line-height:1.1;opacity:.86;white-space:nowrap}
.iso-tile.decaying{box-shadow:inset 0 0 0 3px #ce6e5b,0 2px 7px #a5442928}
.iso-tile .tile-countdown{position:absolute;bottom:0;left:0;right:0;height:14px;background:#c46b4e;color:white;font-size:9px;line-height:14px;font-weight:800}
.iso-tile .tile-timer-progress{position:absolute;bottom:14px;left:0;height:3px;background:#ed996f;width:var(--timer-percent)}
.iso-tile[data-value="256"]{background:linear-gradient(143deg,#7955a4,#58477e);box-shadow:inset 0 0 0 2px #e2c67b,0 2px 6px #30274e40}
.iso-discovery-line{width:min(calc(100vw - 28px),420px);display:flex;justify-content:space-between;align-items:center;gap:10px;color:#59718a;font-size:clamp(11px,2.85vw,13px);min-height:21px}
.iso-discovery-line strong{color:#21527e}.iso-controls{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:min(100%,460px);margin:0 auto;padding:8px 12px 2px}
.iso-controls button{background:#e7f2fc;border:1px solid #bcd9eb;border-radius:12px;min-height:49px;color:#145080;font-size:28px;line-height:1;font-weight:700;touch-action:manipulation}
.iso-controls button:active{background:#bbdcf4;transform:scale(.97)}
.iso-game-hint{flex:0 0 auto;color:#607c93;text-align:center;font-size:11px;line-height:1.25;padding:7px 12px 11px}
.iso-game-hint span{color:#275c8b;font-weight:700}
.iso-modal[hidden]{display:none!important}.iso-modal{display:flex;align-items:center;justify-content:center;position:absolute;z-index:70;inset:0;background:#0c2844ae;padding:20px}
.iso-modal-card{background:#fff;border:1px solid #c7ddeb;border-radius:17px;box-shadow:0 15px 55px #112f4d50;padding:22px;max-width:410px;width:100%;display:flex;flex-direction:column;gap:12px}
.iso-modal-card h2{margin:0;font-size:26px;color:#1c4c78}.iso-modal-card p{margin:0;color:#3c5a73;font-size:14px;line-height:1.44}
.iso-modal-buttons{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.iso-toast{position:absolute;left:50%;bottom:calc(98px + var(--iso-tg-bottom));transform:translate(-50%,10px);padding:10px 15px;background:#1c456a;color:#fff;border-radius:13px;font-size:12px;box-shadow:0 8px 20px #1c456a42;opacity:0;pointer-events:none;z-index:60;transition:transform .24s,opacity .24s;max-width:min(340px,90vw);text-align:center}
.iso-toast.show{opacity:1;transform:translate(-50%,0)}
.result-panel{align-items:center;text-align:center;justify-content:space-evenly;gap:clamp(8px,1.9vh,18px)}
.result-panel h2{font-size:clamp(24px,7.4vw,36px)}.iso-result-medal{font-size:29px;color:#d0a64c;line-height:1}
.iso-result-tile{width:clamp(88px,26vw,132px);aspect-ratio:1;display:grid;place-items:center;background:#4d82b7;color:#fff;border:2px solid #b9cce1;border-radius:17px;font-size:clamp(28px,7vw,38px);font-weight:800;box-shadow:0 5px 24px #244e7730}
.iso-result-tile.winner{background:linear-gradient(135deg,#8364ad,#594082);border:2px solid #d7bb63}
.iso-result-tile-label{color:#43647d;font-size:13px;font-weight:700}
.iso-result-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}
.iso-result-numbers>div{border-radius:10px;border:1px solid #d5e4ef;background:#f1f8fd;padding:11px 5px;display:flex;align-items:center;flex-direction:column;gap:3px}
.iso-result-numbers small{color:#6a8293;font-size:11px}.iso-result-numbers strong{font-size:clamp(17px,4.5vw,22px);color:#1b5688}
.result-actions{justify-content:center;width:100%}.result-actions .iso-main-button{flex:1}.result-actions .share-link{flex-basis:100%}
.dubna-panel{justify-content:flex-start}.dubna-panel p{color:#3f586e}.iso-reaction{border:1px solid #c6d9eb;background:#edf6fe;border-radius:14px;padding:14px 12px;display:flex;flex-direction:column;gap:10px}
.iso-reaction strong{font-size:13px;color:#275780}.iso-reaction-line{font-size:clamp(15px,4vw,23px);font-weight:800;color:#215587;text-align:center;white-space:normal;line-height:1.5}
.iso-reaction-line span{color:#679abf}.iso-reaction small{color:#627b8d;font-size:11px}
.iso-science-links{display:flex;flex-direction:column;border:1px solid #d7e5f1;border-radius:12px;overflow:hidden}
.iso-science-links a{padding:12px 13px;border-bottom:1px solid #d7e5f1;color:#0055bb;font-weight:650;text-decoration:none;font-size:13px;display:flex;justify-content:space-between;gap:8px}
.iso-science-links a:last-child{border-bottom:0}.iso-science-links a:hover{text-decoration:underline;background:#f0f7fe}
@media(max-height:700px){.iso-game-head{min-height:46px;padding-block:5px}.iso-game-stats{height:47px}.iso-game-stats strong{font-size:17px}.iso-game-status{min-height:34px;margin-top:6px;padding:6px 9px}.iso-board{width:min(calc(100vw - 22px),390px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 260px))}.iso-controls button{min-height:43px}.iso-game-hint{padding:4px 10px 5px;font-size:10px}.iso-panel{padding-top:calc(11px + var(--iso-tg-top));gap:9px}.iso-nuclide-journey{margin:2px}.iso-rule{padding:8px}.iso-rule-symbol{height:50px;flex-basis:58px}.iso-panel .iso-lead{font-size:13px}}
@media(max-height:560px){.iso-game-hint{display:none}.iso-board{width:min(calc(100vw - 22px),370px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 220px))}.iso-controls{padding-top:4px}.iso-game-status{margin-bottom:0}.iso-discovery-line{font-size:10px}.iso-controls button{min-height:40px}.iso-splash-title{font-size:clamp(28px,8.5vw,48px)}}
@media(max-width:350px){.iso-tile .tile-symbol{font-size:clamp(14px,4.7vw,22px)}.iso-tile .tile-name{font-size:8px}.iso-tile .tile-comp{font-size:7px}.iso-board{gap:5px}.iso-game-head .iso-brand{font-size:15px}.iso-rule{gap:8px}.iso-rule-symbol{flex-basis:52px}.iso-panel{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.iso-tile,.splash-word,.iso-toast{animation:none!important;transition:none!important}.splash-word{opacity:1!important;transform:none!important}}
/* The SiPM v0.22 stylesheet has a #game.active grid; this new game is a flex layout. */
#game.active{display:flex!important;flex-direction:column!important;grid-template-rows:none!important;grid-template-columns:none!important}
#game .iso-board{flex-shrink:0}

/* Prevent long scientific cards and links from being compressed away on short screens. */
.iso-panel > * {flex-shrink:0}

/* v3 · visual language derived from SiPM Tetris: white drafting paper,
   denim-blue graphite strokes, crosshatching, lightly imperfect double frames.
   Splash screens #splash1 and #splash2 are intentionally NOT restyled. */
#game.iso-game{--iso-paper:#fbfdff;background:
  repeating-linear-gradient(150deg,transparent 0,transparent 18px,rgba(55,111,165,.027) 19px,transparent 21px),
  linear-gradient(180deg,#fff 0%,#f6fafd 62%,#fff 100%);
}
#game .iso-game-head{min-height:49px;padding:6px 13px;background:transparent;border-bottom:1px solid #cadfeb;position:relative}
#game .iso-game-head:after{content:"";position:absolute;left:12px;right:12px;bottom:-3px;border-bottom:1px solid rgba(63,126,170,.18);transform:rotate(-.13deg)}
#game .iso-brand{font-size:17px;letter-spacing:.04em;font-weight:800;color:#1b568d;text-shadow:.4px .4px #d2e3ee}
#game .iso-game-head small{font-size:10px;color:#527e9e;letter-spacing:.03em}
#game .iso-head-buttons button{background:repeating-linear-gradient(145deg,#f4faff,#f4faff 8px,#e6f2fa 9px,#f4faff 10px);border:1px solid #9dbed7;border-radius:7px;box-shadow:1px 2px 0 #d1e5f0;height:35px;width:39px;color:#1a6199}
#game .iso-game-stats{height:47px;max-width:650px;width:100%;margin:0 auto;background:#fcfeff;border-bottom:1px solid #d7e7f1}
#game .iso-game-stats>div{background:repeating-linear-gradient(135deg,transparent 0,transparent 7px,#d7e9f433 8px,transparent 9px)}
#game .iso-game-stats small{letter-spacing:.09em;text-transform:uppercase;font-size:9px;font-weight:700;color:#62829a}
#game .iso-game-stats strong{font-size:18px;font-weight:800;color:#1c5486}
#game .iso-game-status{min-height:33px;margin:6px 12px 1px;padding:6px 10px;border:0;border-left:3px solid #72a9cb;border-radius:0;background:linear-gradient(95deg,#edf6fd,#fff);font-size:clamp(10px,2.75vw,12px);box-shadow:inset 0 -1px #dae9f2}
#game .iso-game-status.warning{border-left-color:#bd675c;background:linear-gradient(95deg,#fff2eb,#fff)}
#game .iso-game-status.celebrate{border-left-color:#60a492;background:linear-gradient(95deg,#eff8f4,#fff)}
#game .iso-board-zone{justify-content:center;gap:6px;padding:4px 9px 3px;flex:1 1 0;min-height:0}
#game .iso-board{width:min(calc(100vw - 22px),420px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 345px));border-radius:9px;gap:clamp(4px,1.25vw,7px);padding:clamp(6px,1.7vw,9px);background:
  repeating-linear-gradient(151deg,#d3e5f1 0,#d3e5f1 6px,#c4dbe9 7px,#d3e5f1 8px);
 border:2px solid #739dbf;box-shadow:inset 0 0 0 2px #f2f9ff,2px 3px 0 #b4cfe0,3px 6px 14px #275b8120;position:relative}
#game .iso-board:before{content:"";position:absolute;pointer-events:none;inset:2px;border:1px dashed rgba(46,91,133,.26);border-radius:5px}
#game .iso-cell{border-radius:5px;background:repeating-linear-gradient(152deg,#e8f1f8 0,#e8f1f8 6px,#d9e7f1 7px,#e8f1f8 8px);box-shadow:inset 0 1px 2px rgba(27,82,122,.08)}
#game .iso-tile{inset:0;border-radius:4px;gap:0;overflow:hidden;padding:6px 1px 5px;
 background:repeating-linear-gradient(151deg,var(--tile-bg,#e8f2fa) 0,var(--tile-bg,#e8f2fa) 7px,rgba(255,255,255,.40) 8px,var(--tile-bg,#e8f2fa) 10px);
 box-shadow:inset 0 0 0 1px rgba(37,89,135,.32),inset 0 0 0 3px rgba(255,255,255,.35),1px 2px 0 rgba(36,90,135,.23)}
#game .iso-tile:before{content:"";position:absolute;pointer-events:none;inset:3px 2px 4px 2px;border:1px solid rgba(25,75,118,.19);border-radius:2px;transform:rotate(.17deg)}
#game .iso-tile:after{content:"";pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(26deg,transparent 0,transparent 8px,rgba(12,64,117,.035) 9px,transparent 10px)}
#game .iso-tile .tile-mass{position:absolute;left:6px;top:4px;font-size:clamp(6px,1.6vw,9px);font-weight:700;line-height:1;opacity:.68;letter-spacing:.01em}
#game .iso-tile .tile-symbol{font-size:clamp(21px,6.7vw,41px);font-weight:800;letter-spacing:-.055em;line-height:1.06;text-shadow:.6px .7px rgba(21,67,108,.22);margin:5px 0 2px}
#game .iso-tile .tile-name{font-size:clamp(8px,2.25vw,11px);font-weight:750;line-height:1.02;letter-spacing:-.015em}
#game .iso-tile .tile-comp{font-size:clamp(7px,1.85vw,10px);line-height:1.05;opacity:.76;margin-top:4px}
#game .iso-tile.decaying{box-shadow:inset 0 0 0 2px #be6553,inset 0 0 0 4px #f4dbcd,1px 2px 0 #b76b6755}
#game .iso-tile .tile-countdown{z-index:2;height:14px;line-height:14px;bottom:0;font-size:9px}
#game .iso-tile .tile-timer-progress{bottom:14px;z-index:2}
#game .iso-tile[data-value="256"]{background:repeating-linear-gradient(155deg,#74589d 0,#74589d 6px,#8065a5 7px,#74589d 9px);box-shadow:inset 0 0 0 2px #d6b36a,inset 0 0 0 4px #876eb1,2px 3px 0 #564779}
#game .iso-tile[data-value="256"]:before{border-color:#d9ba81}
#game .iso-discovery-line{width:min(calc(100vw - 22px),420px);font-size:11px;min-height:17px;color:#4c7593;gap:5px}
#game .iso-discovery-line strong{color:#1e5a8c}
#game .iso-mini-map{margin:2px auto 0;width:min(calc(100% - 24px),460px);height:105px;min-height:105px;flex:0 0 auto;
 background:repeating-linear-gradient(145deg,#f6fbff,#f6fbff 13px,#eaf3fa 14px,#f6fbff 15px);
 border:1px solid #8eb6d1;border-radius:8px;box-shadow:2px 3px 0 #d8e9f3;display:flex;flex-direction:column;overflow:hidden;padding:0;color:#1c5787;touch-action:manipulation;text-align:left}
#game .iso-mini-map:active{filter:brightness(.97)}
#game .iso-mini-map-head{height:26px;min-height:26px;display:flex;align-items:center;gap:7px;padding:4px 8px;border-bottom:1px solid #bed8e8;background:repeating-linear-gradient(140deg,#edf7fe 0,#edf7fe 7px,#e0eff9 8px,#edf7fe 9px)}
#game .iso-mini-map-head strong{color:#195a94;font-size:10px;letter-spacing:.075em}
#game .iso-mini-map-head span{font-size:10px;font-weight:700;color:#467c9d;white-space:nowrap}
#game .iso-mini-map-head .map-expand-mark{margin-left:auto;font-size:17px;color:#1c649b}
#game #nuclideStrip{display:block;width:100%;height:calc(100% - 26px);touch-action:manipulation;pointer-events:none}
#game .iso-controls{padding:7px 12px 1px;max-width:480px;gap:7px}
#game .iso-controls button{min-height:48px;border-radius:7px;background:repeating-linear-gradient(145deg,#eaf5fd 0,#eaf5fd 9px,#dbeaf6 10px,#eaf5fd 12px);border:1px solid #8ebbd9;box-shadow:1px 2px 0 #c4ddec;color:#18588d;font-size:25px}
#game .iso-game-hint{padding:4px 10px calc(7px + env(safe-area-inset-bottom));font-size:10px;color:#607f97}
.iso-page .iso-panel h1,.iso-page .iso-panel h2{color:#1b507f;text-shadow:.5px .5px rgba(75,127,167,.2)}
.iso-page .iso-panel{background:repeating-linear-gradient(150deg,transparent 0,transparent 18px,rgba(55,111,165,.026) 19px,transparent 21px)}
.iso-page .iso-paper-note,.iso-page .iso-rule,.iso-page .iso-reaction,.iso-page .iso-result-numbers>div{border-radius:5px;border:1px solid #a6c6db;box-shadow:2px 2px 0 rgba(139,181,208,.22);background:repeating-linear-gradient(150deg,#f4faff 0,#f4faff 8px,#eaf4fb 9px,#f4faff 11px)}
.iso-page .iso-journey-cell{border-radius:5px;box-shadow:2px 3px 0 #bbd8ea;border:1px solid #88b7d6;background:repeating-linear-gradient(155deg,#e8f4fc,#e8f4fc 8px,#d8e9f6 9px,#e8f4fc 10px)}
.iso-page .iso-journey-cell.mid{background:#a6caea}.iso-page .iso-journey-cell.large{background:#75569c;border-color:#75569c;box-shadow:2px 3px 0 #d4c6e5}
.iso-page .iso-link-button,.iso-page .iso-main-button{border-radius:6px;box-shadow:2px 2px 0 #bdd5e8}
.iso-page .iso-rule-symbol{border:1px solid #8fb8d5;border-radius:5px;background:repeating-linear-gradient(135deg,#deeffa,#deeffa 7px,#cfe5f4 8px,#deeffa 10px)}
/* Map explanation dialog */
.iso-map-card{max-width:620px;max-height:min(88dvh,760px);overflow-y:auto;gap:10px;background:repeating-linear-gradient(150deg,#fbfdff,#fbfdff 12px,#eff7fd 13px,#fbfdff 15px);border-radius:8px}
.iso-map-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.iso-map-card-head h2{font-size:24px}
.iso-map-close{border:1px solid #bfd9e8;border-radius:6px;background:#eef7fd;color:#235b84;width:35px;height:34px;font-weight:800;font-size:24px}
.iso-map-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.iso-map-tool{border:1px solid #b8d2e5;border-radius:999px;background:#eef7fd;color:#1f5b8c;font:600 12px/1 Roboto,Arial;padding:9px 12px;min-height:34px}
.iso-map-tool.active{background:#dceefb;border-color:#8cb5d5;color:#14496f}
.iso-map-zoom-group{display:flex;gap:6px;margin-left:auto}.iso-map-zoom-group .iso-map-tool{min-width:36px;padding-inline:0;font-size:18px}
.iso-map-card canvas{display:block;width:100%;height:clamp(270px,43vh,420px);border:1px solid #99bad2;border-radius:5px;background:#f2f8fc}
.iso-map-card #mapDetailName{font-weight:700;font-size:14px;color:#1d5687}
.iso-map-card .iso-map-caption{font-size:12px;line-height:1.5;color:#34546c}.iso-map-card .iso-map-source{font-size:10px;color:#7d8e9b}
@media(max-height:720px){
 #game .iso-game-head{min-height:43px;height:43px;padding-top:3px;padding-bottom:3px}
 #game .iso-game-stats{height:38px}
 #game .iso-game-stats strong{font-size:15px}
 #game .iso-game-status{min-height:28px;height:28px;margin-top:4px;padding:4px 8px}
 #game .iso-board{width:min(calc(100vw - 22px),400px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 256px))}
 #game .iso-mini-map{height:80px;min-height:80px}
 #game .iso-mini-map-head{min-height:23px;height:23px}
 #game #nuclideStrip{height:calc(100% - 23px)}
 #game .iso-controls{padding-top:5px}
 #game .iso-controls button{min-height:41px}
 #game .iso-game-hint{display:none}
 #game .iso-discovery-line{min-height:15px;font-size:10px}
}
@media(max-width:350px){
 #game .iso-brand{font-size:15px}
 #game .iso-tile .tile-symbol{font-size:clamp(18px,6vw,32px)}
 #game .iso-tile .tile-name{font-size:8px}
 #game .iso-tile .tile-comp{font-size:7px}
 #game .iso-tile .tile-mass{font-size:6px;top:3px;left:4px}
 #game .iso-mini-map-head strong{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#game .iso-mini-map,#game .iso-tile{animation:none!important;transition:none!important}}

/* Keep the chart physically attached to the board; the available empty vertical
   space is shared above and below the combined drawing on tall displays. */
#game .iso-board-zone{gap:5px;padding-bottom:4px}
#game .iso-mini-map{margin:1px auto 1px;width:min(calc(100% - 8px),460px)}
#game .iso-board{width:min(calc(100vw - 22px),420px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 350px))}
@media(max-height:720px){#game .iso-board{width:min(calc(100vw - 22px),400px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 276px))}}
/* Chalk-blue graphite lettering and sketched board sequence on non-brand screens. */
#splash4 .iso-splash-title{font-family:Roboto,Arial,Helvetica,sans-serif;font-weight:900;letter-spacing:-.055em;text-shadow:1px 1px 0 #d3e4f2,-.8px .8px 0 #70a2c3,1.7px 2px 0 #d9eaf5}
#splash4 .iso-splash-tagline{font-weight:750;color:#1e6a9e}
#splash4 .isotope-splash-mark span{border-radius:5px;border-color:#82acc9;box-shadow:2px 3px 0 #bed7e8;
 background:repeating-linear-gradient(149deg,#e2f0fa 0,#e2f0fa 6px,#cee4f4 7px,#e2f0fa 10px)}
#splash4 .isotope-splash-mark span:last-child{background:repeating-linear-gradient(151deg,#765b9d 0,#765b9d 5px,#896baa 6px,#765b9d 9px);border-color:#684989;box-shadow:2px 3px 0 #cbbbd9}
.iso-page .iso-panel .iso-lead{color:#33536c}
.iso-page .iso-paper-note{border-left:3px solid #6da4c9}
.iso-page .iso-result-tile{border-radius:5px;box-shadow:3px 4px 0 #ccdeea}

@media(max-width:480px){.iso-map-card{padding:12px}.iso-map-card canvas{height:clamp(260px,39vh,340px)}.iso-map-tools{gap:6px}.iso-map-tool{padding:8px 10px;font-size:11px}}

/* v9 header alignment with SiPM Tetris */
.iso-page .section-top + .iso-panel{padding-top:16px}
#game .section-top.clean-top{background:transparent;border-bottom:1px solid #cadfeb;position:relative}
#game .section-top.clean-top:after{content:"";position:absolute;left:12px;right:12px;bottom:-3px;border-bottom:1px solid rgba(63,126,170,.18);transform:rotate(-.13deg)}
#game .section-top .mark{font-size:16px;font-weight:700;color:#24303a}
@media(max-height:700px){.iso-page .section-top + .iso-panel{padding-top:10px}}


/* SOURCE: pencil-v4.css */
/* v4 · all screens except first two official SiPM-branded splash scenes. */
:root {--site-ink:#1f2b36;--site-link:#0055bb;--typeface:Roboto,Arial,Helvetica,sans-serif}
#game,#intro,#rules,#result,#dubna,#splash4,.iso-modal{font-family:var(--typeface);color:var(--site-ink)}
#game h1,#game h2,#intro h1,#rules h2,#result h2,#dubna h2,#dubna h3{font-family:var(--typeface);letter-spacing:-.018em;font-weight:700}
#game button,#intro button,#rules button,#result button,#dubna button,.iso-modal button{font-family:var(--typeface);font-weight:700}
/* Every nuclide graphic uses the same vignette, drawing grain and pencil lettering. */
.sketch-nuclide,#game .iso-tile{--p-bg:#eaf3f8;--p-outline:#94b4c9;--p-ink:#214b6e;position:relative;isolation:isolate;overflow:hidden;background:var(--p-bg)!important;color:var(--p-ink)!important;border:1.5px solid var(--p-outline)!important;border-radius:6px!important;box-shadow:inset 0 0 0 2px #ffffff70,2px 3px 0 #6d92a830,0 2px 7px #27486511!important}
.sketch-nuclide::before,#game .iso-tile:before{content:"";position:absolute;pointer-events:none;inset:3px;border:1px solid color-mix(in srgb,var(--p-outline),transparent 36%);border-radius:3px;z-index:0;transform:rotate(-.16deg);background:linear-gradient(133deg,#ffffff27,transparent 43%,#ffffff26)}
.sketch-nuclide::after,#game .iso-tile::after{content:"";position:absolute;pointer-events:none;inset:0;background:url('pencil-grain.png') repeat;background-size:187px 187px;opacity:.62;mix-blend-mode:multiply;z-index:0}
.sketch-nuclide>img,#game .iso-tile>.tile-symbol-img,#result .iso-result-tile>img{position:relative;z-index:2;object-fit:contain;width:78%;height:48%;max-width:100%;display:block;filter:drop-shadow(.4px .4px .25px #2342633a)}
.sketch-nuclide[data-value="1"],#game .iso-tile[data-value="1"]{--p-bg:#ecf2ee;--p-outline:#b0c1bd;--p-ink:#234964}
.sketch-nuclide[data-value="2"],#game .iso-tile[data-value="2"]{--p-bg:#ccebe6;--p-outline:#7db8b5;--p-ink:#185971}
.sketch-nuclide[data-value="4"],#game .iso-tile[data-value="4"]{--p-bg:#a8d4eb;--p-outline:#609cc9;--p-ink:#17496e}
.sketch-nuclide[data-value="8"],#game .iso-tile[data-value="8"]{--p-bg:#79b5dc;--p-outline:#366d9e;--p-ink:#173f70}
.sketch-nuclide[data-value="16"],#game .iso-tile[data-value="16"]{--p-bg:#a5d8c7;--p-outline:#67a89d;--p-ink:#125d63}
.sketch-nuclide[data-value="32"],#game .iso-tile[data-value="32"]{--p-bg:#afc1e7;--p-outline:#818cbf;--p-ink:#353c78}
.sketch-nuclide[data-value="64"],#game .iso-tile[data-value="64"]{--p-bg:#c7b5d9;--p-outline:#9380b1;--p-ink:#5d3e7e}
.sketch-nuclide[data-value="128"],#game .iso-tile[data-value="128"]{--p-bg:#8470aa;--p-outline:#62508a;--p-ink:#fff7eb}
.sketch-nuclide[data-value="256"],#game .iso-tile[data-value="256"]{--p-bg:#67467f;--p-outline:#d5b66d;--p-ink:#fff3d3}
/* Do not repaint the two original logos or their splash backgrounds. */
#game.iso-game{background:#fcfdff;background-image:radial-gradient(ellipse at 14% 15%,#eaf4fa88,transparent 62%),radial-gradient(ellipse at 86% 80%,#f1edf7b0,transparent 58%)}
#game .iso-game-head{background:#ffffffb8;border-bottom:1px solid #d9e7ef}
#game .iso-brand{font-size:17px;color:#1c4d78;font-weight:700;letter-spacing:.015em;text-shadow:none}
#game .iso-game-head small{font-weight:500;color:#5d7183}
#game .iso-game-stats{background:#fbfcfe}
#game .iso-game-stats>div{background:none}
#game .iso-game-stats small{letter-spacing:.045em;color:#617386;font-weight:700}
#game .iso-game-stats strong{color:#174b7b;font-weight:700}
#game .iso-head-buttons button{background:#f1f6fa;border:1px solid #b0cadd;border-radius:6px;box-shadow:1px 2px 0 #d4e4ed;color:#225d8d}
#game .iso-game-status{background:#f7fbfd;border-left:3px solid #75a6ca;color:#4c6479}
#game .iso-board{background:#dbe7ea;border:3px solid #739abb;border-radius:9px;box-shadow:inset 0 0 0 3px #f8faf9,2px 4px 0 #adc7d9,3px 7px 16px #21598624}
#game .iso-board:before{border:1px dashed #4e89af50}
#game .iso-cell{background:#edf3f4;border:1px solid #d4e4ec;box-shadow:inset 0 1px 2px #9ab4bd20;border-radius:5px}
#game .iso-cell::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('pencil-grain.png');background-size:180px;opacity:.10}
#game .iso-tile{inset:0;padding:4px 2px 6px;display:flex;align-items:center;justify-content:center;gap:0}
#game .iso-tile .tile-symbol-img{height:51%;width:83%;flex-shrink:0;margin:2px 0 -3px;align-self:center}
#game .iso-tile .tile-name{position:relative;z-index:3;font-weight:700;font-size:clamp(8px,2.23vw,11px);letter-spacing:-.025em;color:var(--p-ink);text-shadow:0 1px 1px #ffffff3e;line-height:1.06}
#game .iso-tile .tile-comp{position:relative;z-index:3;font-weight:500;font-size:clamp(7px,1.84vw,10px);margin-top:3px;color:var(--p-ink);opacity:.88;line-height:1.07}
#game .iso-tile .tile-mass{position:absolute;z-index:3;top:4px;left:5px;color:var(--p-ink);opacity:.69;font-size:clamp(6px,1.6vw,8px);font-weight:700;line-height:1}
#game .iso-tile.decaying{box-shadow:inset 0 0 0 2px #c36f4b,2px 2px 0 #af6d583d!important}
#game .iso-tile .tile-countdown{z-index:4;background:#ca7652;font-weight:700;letter-spacing:.01em}
#game .iso-tile .tile-timer-progress{z-index:4;background:#f5a77d}
#game .iso-tile.sketch-nuclide[data-value="256"],#game .iso-tile[data-value="256"]{box-shadow:inset 0 0 0 2px #e9d38a,2px 3px 0 #4927636b!important}
#game .iso-mini-map{background:#f8faf8;border:1px solid #acc6d9;box-shadow:2px 3px 0 #d6e5ed;border-radius:7px}
#game .iso-mini-map-head{background:#f3f7f8;border-bottom:1px solid #dae7ed}
#game .iso-mini-map-head strong{color:#174c7b;letter-spacing:.04em;font-weight:700}
#game .iso-controls button{background:#f2f7f8;border:1px solid #a9c9dc;color:#195689;box-shadow:1px 2px 0 #bfd6e5;border-radius:6px}
#game .iso-controls button:active{background:#d6e9f1}
#game .iso-discovery-line,#game .iso-game-hint{color:#667b88}
/* Intro splash symbols, journey and rule-card art all share the same graded palette. */
#splash4 .isotope-splash-mark span.sketch-nuclide{display:grid;place-items:center;border-radius:7px!important}
#splash4 .isotope-splash-mark img{width:84%;height:70%}
#splash4 .iso-splash-title{font-family:var(--typeface);font-weight:700;letter-spacing:-.035em;color:#0055bb;text-shadow:none}
#splash4 .iso-splash-tagline{font-weight:700;color:#3c718e}
.iso-page{background:#fcfdff;background-image:radial-gradient(ellipse at 20% 8%,#eff8fba6,transparent 67%)}
.iso-page .iso-panel{background:none}
.iso-page .iso-panel h1,.iso-page .iso-panel h2{color:#1f4d77;letter-spacing:-.027em;text-shadow:none}
.iso-page .iso-eyebrow{color:#527e9e;letter-spacing:.09em}
.iso-page .iso-lead{font-weight:400;color:#405b6e}
.iso-page .iso-paper-note,.iso-page .iso-rule,.iso-page .iso-reaction,.iso-page .iso-result-numbers>div{background:#f7fafb;border:1px solid #c7dbe6;border-radius:7px;box-shadow:1px 2px 0 #e3edf1}
.iso-page .iso-paper-note{border-left:3px solid #73a6ca}
.iso-page .iso-paper-note strong,.iso-page .iso-rule p strong{color:#1d5180}
.iso-page .iso-journey-cell.sketch-nuclide{display:grid;place-items:center;border-radius:7px!important;box-shadow:2px 3px 0 #d0dfea!important}
.iso-page .iso-journey-cell img{width:85%;height:66%}
.iso-page .iso-rule-symbol.sketch-nuclide{display:grid;place-items:center;flex-shrink:0}
.iso-page .iso-rule-symbol.sketch-nuclide img{width:81%;height:71%}
.iso-page .iso-rule-symbol.sketch-nuclide.sketch-nuclide[data-value="8"],#game .iso-tile[data-value="8"]{background:var(--p-bg)}
.iso-page .iso-rule-symbol.sketch-nuclide.sketch-nuclide[data-value="256"],#game .iso-tile[data-value="256"]{background:var(--p-bg)}
.iso-page .iso-main-button,.iso-page .iso-link-button{font-family:var(--typeface);font-weight:700;box-shadow:none;border-radius:7px}
.iso-page .iso-main-button{background:#0055bb;border-color:#0055bb}
.iso-page .iso-link-button{color:#0055bb}
#intro .iso-nav-bottom .iso-link-button{background:#0055bb;color:#fff}
#result .iso-result-tile.sketch-nuclide{display:grid;place-items:center;border-radius:9px!important;box-shadow:2px 4px 0 #b4c6d2!important}
#result .iso-result-tile>img{width:83%;height:70%}
#result .iso-result-tile.winner{border-color:#d6b56c!important}
#result .iso-result-tile-label{font-weight:700;color:#3e6078}
#result .iso-result-numbers strong{font-weight:700}
#dubna .iso-reaction-line{color:#1f507e}
.iso-map-card{background:#f9fcfd;border-radius:9px}
@media (max-width:350px){#game .iso-tile .tile-symbol-img{height:48%;width:83%}#game .iso-tile .tile-name{font-size:8px}#game .iso-tile .tile-comp{font-size:7px}}
@media(prefers-reduced-motion:reduce){#game .iso-tile{animation:none!important}}
/* Game tiles always fill the entire 2048 cell; shared vignette must not change positioning. */
#game .iso-cell>.iso-tile{position:absolute;inset:0;min-width:0;min-height:0}

#game .iso-tile .tile-symbol-img{height:57%;width:90%;margin:1px 0 -5px}
@media(max-width:350px){#game .iso-tile .tile-symbol-img{height:49%;width:88%;margin:2px 0 -3px}}
/* Replace generic repeating diagonal page wallpaper with fine drawing-paper grain. */
#intro.iso-page.paper,#rules.iso-page.paper,#result.iso-page.paper,#dubna.iso-page.paper{background:#fcfdff!important;background-image:radial-gradient(ellipse at 10% 10%,#eff6fa90,transparent 60%),radial-gradient(ellipse at 90% 92%,#f1f3f9a1,transparent 60%)!important}
#intro.iso-page.paper::before,#rules.iso-page.paper::before,#result.iso-page.paper::before,#dubna.iso-page.paper::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.065;background-image:url('pencil-grain.png');background-size:260px 260px;z-index:0}
#intro .iso-panel,#rules .iso-panel,#result .iso-panel,#dubna .iso-panel{position:relative;z-index:1}


/* SOURCE: pencil-v5.css */
/* v5: calm technical pencil notes for ⁸Be; no alarming red bars */
#game .iso-tile .tile-timer-progress,#game .iso-tile .tile-countdown{display:none!important}
#game .iso-tile .tile-alpha-marker{position:absolute;top:2px;right:4px;z-index:5;font-size:clamp(8px,1.95vw,11px);font-weight:700;line-height:1.12;letter-spacing:-.025em;color:var(--p-ink);background:#eff7f9bb;border:1px solid #658fa081;border-radius:4px;padding:2px 3px;font-family:Roboto,Arial,sans-serif;box-shadow:0 1px 1px #294e6120}
#game .iso-tile .tile-alpha-marker small{font-size:.9em;font-weight:650}
#game .iso-tile.decaying{box-shadow:inset 0 0 0 2px #4e87a8,2px 2px 0 #5e94af42!important}
#game .iso-tile.decaying .tile-alpha-marker{background:#ecf6fb;color:#215279}
#game .iso-tile.iso-decay-focus{animation:beUnstable .72s ease-in-out infinite!important;outline:3px solid #2c79a5;outline-offset:-5px;z-index:3}
#game .iso-tile.iso-he-born{animation:heAppears .55s cubic-bezier(.18,.89,.32,1.21) both!important}
@keyframes beUnstable{0%,100%{filter:saturate(1);transform:scale(1)}50%{filter:saturate(1.3) brightness(1.09);transform:scale(.96)}}
@keyframes heAppears{0%{opacity:.2;filter:brightness(1.5);transform:scale(.76)}75%{opacity:1;transform:scale(1.045)}100%{filter:none;transform:scale(1)}}
#game .iso-board{position:relative;isolation:isolate}
#game .iso-decay-visual{position:absolute;inset:0;z-index:12;pointer-events:none}
#game .iso-decay-visual>span{position:absolute;left:var(--alpha-x);top:var(--alpha-y);width:30px;height:30px;border-radius:50%;border:2px solid #407da8;background:#d8eef8;color:#1b608b;font-weight:800;font-size:19px;display:grid;place-items:center;box-shadow:0 2px 10px #275a8069}
#game .iso-alpha-stay{animation:alphaStay .85s ease-out both}
#game .iso-alpha-fly{animation:alphaFly .85s ease-out both}
@keyframes alphaStay{0%{transform:translate(-50%,-50%) scale(.35);opacity:0}25%{opacity:1}80%{transform:translate(-50%,-50%) scale(1)}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@keyframes alphaFly{0%{transform:translate(-50%,-50%) scale(.35);opacity:0}20%{opacity:1}100%{transform:translate(calc(-50% + var(--alpha-dx)),calc(-50% + var(--alpha-dy))) scale(1);opacity:1}}
/* One informational surface: the status line above the grid. */
#game .iso-game-status{border-left-color:#75a6ca!important;background:#f7fbfd!important;border-top-color:#d9e8f3!important;border-right-color:#d9e8f3!important;border-bottom-color:#d9e8f3!important;color:#4c6479!important}
#game .iso-game-status.warning{border-left-color:#6d97b0!important}
#game .iso-game-status.celebrate{border-left-color:#65a88e!important}
#game .iso-game-status.warning .iso-status-dot{background:#6b99b2}
#game .iso-game-status.celebrate .iso-status-dot{background:#65a88e}
@media(prefers-reduced-motion:reduce){#game .iso-tile.iso-decay-focus,#game .iso-tile.iso-he-born,#game .iso-decay-visual>span{animation-duration:.01ms!important}}

/* In the introduction and rules, show the same alpha instability mark as on the playing tile. */
#intro .sketch-alpha,#rules .sketch-alpha{position:absolute;z-index:5;top:4px;right:4px;font:700 12px/1 Roboto,Arial,sans-serif;font-style:normal;color:#215279;background:#eff7f9c9;border:1px solid #7299ac8a;border-radius:4px;padding:2px 3px}
#rules .sketch-alpha{font-size:10px;top:3px;right:3px}


/* SOURCE: redesign-v10.css */
/* Isotopes. 256 / v10 — typographic rhythm and panel geometry follow SiPM Tetris. */
:root{--iso-site-blue:#0055bb;--iso-site-text:#1f2b36;--iso-panel-ink:#335d7f}
/* Keep splash #1 and #2 unchanged; only the game-name splash is adjusted. */
#splash4 .splash-content-title{gap:clamp(24px,4.5dvh,44px)!important;align-items:center!important}
#splash4 .game-intro-title{margin:0 auto!important;line-height:0!important;width:min(92vw,720px)!important;max-width:720px!important}
#splash4 .pencil-game-logo{display:block;width:100%;height:auto;object-fit:contain;filter:none}
#splash4 .pencil-title::after{content:none!important}
#splash4 .splash-topline{font-family:Roboto,Arial,sans-serif!important;font-size:clamp(30px,7vw,46px);font-weight:700;letter-spacing:-.016em;color:#0055bb}
/* The non-splash page headers should match SiPM Tetris, never the old double-line game header. */
#game .section-top.clean-top,.iso-page .section-top.clean-top{height:43px;min-height:43px;padding:6px 15px;background:#fff;border-bottom:1px solid #e3e9ef;box-shadow:none}
#game .section-top.clean-top::after{content:none!important}
#game .section-top.clean-top .mark,.iso-page .section-top.clean-top .mark{font:700 16px/1.1 Roboto,Arial,sans-serif;letter-spacing:0;color:#24303a}
#game .section-top .iconbutton{border:1px solid #d2e2f0;border-radius:9px;background:#f4f9fe;color:#17487a;width:39px;height:35px;box-shadow:none;font-size:17px}
/* Intro: three rules on individually matched square pictograms. */
#intro .iso-panel{gap:clamp(9px,1.6dvh,16px);padding-top:clamp(10px,1.6dvh,20px)}
#intro .iso-panel h1{font-family:Roboto,Arial,sans-serif;color:#1b507f;font-weight:700;letter-spacing:-.026em;font-size:clamp(28px,7.3vw,43px)}
#intro .iso-lead{font-weight:400;color:#33536c;line-height:1.42}
#intro .iso-nuclide-journey{margin:0 auto 3px;gap:clamp(6px,2vw,13px)}
#intro .iso-journey-cell{width:clamp(68px,17vw,96px);height:clamp(68px,17vw,96px);flex-shrink:0}
#intro .iso-rule{display:flex;align-items:center;gap:clamp(10px,2vw,16px);padding:clamp(8px,1.4dvh,13px);min-height:clamp(73px,12dvh,101px);background:#f7fafc;border:1px solid #d4e1ea;box-shadow:0 2px 0 #e2edf3;border-radius:8px}
#intro .iso-rule-symbol{position:relative;isolation:isolate;flex:0 0 clamp(60px,14vw,83px);width:clamp(60px,14vw,83px)!important;height:clamp(60px,14vw,83px)!important;min-width:0;min-height:0;aspect-ratio:1;display:grid;place-items:center;overflow:hidden}
#intro .iso-rule-symbol.sketch-nuclide{padding:0!important}
#intro .iso-rule-symbol.sketch-nuclide img{max-width:80%;max-height:72%;object-fit:contain}
#intro .iso-rule p{font-family:Roboto,Arial,sans-serif;font-size:clamp(11px,2.85vw,14px);font-weight:400;line-height:1.37;color:#4f687c;min-width:0}
#intro .iso-rule p strong{color:#15518a;font-weight:700}
#intro .iso-arrows-symbol{background:#d5e5f0 url('pencil-grain.png') center / 170px 170px!important;border:2px solid #83add1!important;box-shadow:inset 0 0 0 2px #fff7,1px 2px 0 #c5dceb!important;color:#164e80}
#intro .iso-arrows-symbol::before{content:"";position:absolute;inset:4px;border:1px solid #8dafc7;border-radius:3px;pointer-events:none}
#intro .iso-arrows-symbol span{position:absolute;display:block;line-height:1;font-weight:700;font-size:clamp(16px,4vw,24px)}
#intro .iso-arrows-symbol .arr-up{top:9%;left:50%;transform:translateX(-50%)}
#intro .iso-arrows-symbol .arr-down{bottom:9%;left:50%;transform:translateX(-50%)}
#intro .iso-arrows-symbol .arr-left{left:9%;top:50%;transform:translateY(-50%)}
#intro .iso-arrows-symbol .arr-right{right:9%;top:50%;transform:translateY(-50%)}
#intro .iso-science-caveat{font:400 clamp(10px,2.6vw,12px)/1.43 Roboto,Arial,sans-serif;color:#668096}
#intro .iso-nav-bottom{padding-top:clamp(4px,.8dvh,10px);justify-content:flex-end}
/* Two numeric metrics and one compact text hint in the SAME band. */
#game .iso-game-dashboard{flex:0 0 auto;display:grid;grid-template-columns:minmax(112px,30%) minmax(0,1fr);align-items:stretch;gap:7px;min-height:clamp(58px,9dvh,75px);padding:7px max(10px,env(safe-area-inset-right)) 3px max(10px,env(safe-area-inset-left));max-width:690px;width:100%;margin:0 auto}
#game .iso-dashboard-scores{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#game .iso-dashboard-score{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:3px;border:1px solid #c7d9e6;background:linear-gradient(145deg,#fafcff,#f1f7fb);border-radius:7px}
#game .iso-dashboard-score small{font:700 9px/1 Roboto,Arial,sans-serif;letter-spacing:.07em;color:#56768f;text-transform:uppercase}
#game .iso-dashboard-score strong{font:700 clamp(18px,4.8vw,24px)/1.05 Roboto,Arial,sans-serif;font-variant-numeric:tabular-nums;color:#1b5688}
#game .iso-game-dashboard .iso-game-status{align-items:center;min-height:0!important;height:auto!important;margin:0!important;padding:9px 10px!important;border:1px solid #c7d9e6!important;border-radius:7px!important;background:#f7f9fb!important;box-shadow:none!important;font:600 clamp(10px,2.8vw,12px)/1.28 Roboto,Arial,sans-serif;color:#335d7f!important}
#game .iso-game-dashboard .iso-status-dot{display:none}
#game .iso-game-dashboard .iso-game-status.warning{border-color:#d7beaa!important;background:#fff7f1!important}
#game .iso-game-dashboard .iso-game-status.celebrate{border-color:#b8d8c8!important;background:#f1f8f4!important}
/* More map viewing area after removing directional on-screen controls. */
#game .iso-board-zone{flex:1 1 0;min-height:0;gap:7px;justify-content:center;padding:5px 10px calc(4px + var(--iso-tg-bottom))}
#game .iso-board{width:min(calc(100vw - 22px),420px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 249px))}
#game .iso-mini-map{width:min(calc(100% - 7px),460px);height:clamp(106px,18dvh,185px);min-height:106px;margin:1px auto 0;flex:0 0 auto}
#game .iso-mini-map-head{height:29px;min-height:29px;padding:4px 10px;justify-content:space-between}
#game .iso-mini-map-head strong{font:700 11px/1 Roboto,Arial,sans-serif;letter-spacing:.02em;color:#174c7b}
#game #nuclideStrip{height:calc(100% - 29px)}
#game .iso-controls,#game .iso-game-hint{display:none!important}
@media(max-height:700px){
 #intro .iso-panel{gap:7px;padding-top:9px}
 #intro .iso-rule{padding:7px;min-height:64px}
 #intro .iso-rule-symbol{flex-basis:56px;width:56px!important;height:56px!important}
 #intro .iso-rule p{font-size:11px}
 #game .iso-game-dashboard{min-height:53px;padding-top:4px}
 #game .iso-board{width:min(calc(100vw - 22px),390px,calc(var(--real-app-height) - var(--iso-tg-top) - var(--iso-tg-bottom) - 220px))}
 #game .iso-mini-map{height:clamp(96px,17dvh,150px);min-height:96px}
}
@media(max-width:350px){
 #intro .iso-rule{gap:8px}
 #intro .iso-rule-symbol{flex-basis:52px;width:52px!important;height:52px!important}
 #game .iso-game-dashboard{grid-template-columns:minmax(105px,32%) 1fr;gap:5px;padding-inline:7px}
 #game .iso-game-dashboard .iso-game-status{padding:6px 7px!important;font-size:10px}
}
/* Fill the space released by the four removed control buttons with the live map. */
#game .iso-board-zone{justify-content:flex-start}
#game .iso-mini-map{flex:1 1 auto;height:auto;min-height:106px;max-height:325px}
#game #nuclideStrip{height:calc(100% - 29px)}
@media(max-height:700px){#game .iso-mini-map{flex:1 1 auto;height:auto;min-height:96px;max-height:220px}}

#game .iso-mini-map-head .map-expand-mark{font-size:18px;line-height:1;color:#3b74a0;font-weight:700}
.iso-map-card #mapDetailName{margin-bottom:2px}


/* Final science screen — composition adapted from SiPM Tetris's people screen. */
#dubna .dubna-panel{gap:clamp(10px,1.8dvh,16px);max-width:640px;padding-top:clamp(12px,2dvh,20px);padding-bottom:calc(22px + var(--iso-tg-bottom,0px) + env(safe-area-inset-bottom))}
#dubna .dubna-panel h2{font-size:clamp(23px,6.5vw,34px);letter-spacing:-.025em;color:#24303a}
#dubna .dubna-panel h3{font-size:clamp(18px,4.5vw,22px);color:#24303a;font-weight:700;letter-spacing:-.01em}
#dubna .dubna-lead{font-size:clamp(13px,3.15vw,15px);color:#56616b;line-height:1.46}
#dubna .dubna-portrait-row{display:grid;grid-template-columns:minmax(105px,35%) minmax(0,1fr);gap:clamp(10px,2.2vw,16px);align-items:center;text-align:left}
#dubna .dubna-portrait-frame{width:100%;aspect-ratio:342/400;border:1px solid #c6e0ec;border-radius:4px;overflow:hidden;background:#eff8fc;box-shadow:3px 3px 0 #dcebf5;flex:none}
#dubna .dubna-portrait-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
#dubna .dubna-portrait-details{min-width:0;display:flex;flex-direction:column;gap:clamp(5px,1.2dvh,9px)}
#dubna .dubna-portrait-details blockquote{margin:0;font-size:clamp(13px,3.45vw,18px);line-height:1.4;color:#2e5778;font-style:italic;font-weight:400}
#dubna .dubna-portrait-details b{font-size:clamp(12px,3.2vw,15px);font-weight:700;color:#1d4f7b;line-height:1.27}
#dubna .dubna-portrait-details small{font-size:clamp(10px,2.6vw,12px);color:#637e94;line-height:1.34}
#dubna .dubna-portrait-details a{font:500 clamp(11px,2.8vw,13px)/1.4 Roboto,Arial,sans-serif;color:#0055bb;text-decoration:none;align-self:flex-start}
#dubna .dubna-portrait-details a:hover{ text-decoration:underline }
#dubna .dubna-science-facts{background:#f8fbfd;border-block:1px solid #bed6e7;border-inline:0;border-radius:0;padding:clamp(11px,1.8dvh,16px) 12px;box-shadow:none}
#dubna .dubna-science-facts h3{margin:0 0 7px}
#dubna .dubna-science-facts p{font-size:clamp(12px,3.05vw,14px);line-height:1.45;color:#56616b}
#dubna .dubna-science-links{display:grid;grid-template-columns:1fr;gap:0;margin:0;min-width:0}
#dubna .dubna-science-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:clamp(8px,1.35dvh,11px) 6px;color:#0055bb;background:transparent;border:0;border-bottom:1px solid #e3e9ef;border-radius:0;text-decoration:none;font:500 clamp(12px,3vw,14px)/1.36 Roboto,Arial,sans-serif;overflow-wrap:anywhere}
#dubna .dubna-science-links a:first-child{border-top:1px solid #e3e9ef}
#dubna .dubna-science-links a:hover{text-decoration:underline;color:#0055bb}
#dubna .dubna-science-links a span{flex:none;font-size:16px;font-weight:400}
#dubna .dubna-cta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto}
#dubna .dubna-cta .iso-link-button,#dubna .dubna-cta .iso-main-button{font-family:Roboto,Arial,sans-serif;font-weight:500;white-space:normal}
#dubna .dubna-cta .iso-main-button{background:#0055bb;border-radius:7px;min-height:42px}
#dubna .iso-eyebrow{color:#557796;font-weight:700;letter-spacing:.12em}
@media(min-width:700px){#dubna .dubna-panel{padding-inline:clamp(22px,4vw,44px)}}
@media(max-width:350px){#dubna .dubna-portrait-row{grid-template-columns:minmax(94px,34%) minmax(0,1fr);gap:8px}#dubna .dubna-portrait-details blockquote{font-size:12px}#dubna .dubna-portrait-details small{font-size:10px}}
@media(max-height:650px){#dubna .dubna-panel{gap:8px}#dubna .dubna-portrait-details blockquote{font-size:12px}#dubna .dubna-portrait-frame{max-height:160px}#dubna .dubna-science-facts{padding:8px 10px}#dubna .dubna-science-links a{padding-block:7px}}
/* Consistent tabular numeric metrics; readable text across game screens. */
.iso-dashboard-score strong,#scoreText,#movesText,#finalScore,#finalTurns{font-variant-numeric:tabular-nums}
.iso-page .section-top.clean-top .mark,#game .section-top.clean-top .mark{font-family:Roboto,Arial,sans-serif;font-size:16px;font-weight:700;letter-spacing:0;color:#24303a}

/* v13 tweaks for final page */
#dubna .dubna-science-facts{background:transparent;border:0;padding:0;box-shadow:none;margin-bottom:2px}
#dubna .dubna-science-facts h3{margin:0 0 8px}
#dubna .dubna-science-facts p{margin:0}
#dubna .dubna-science-links{margin-top:0}
#dubna .dubna-science-links a:first-child{border-top:0}
#dubna .dubna-portrait-row-bottom{margin-top:6px;padding-top:2px}
#dubna .dubna-science-links a span{font-size:15px;font-weight:500}
