@font-face{font-family:Notebook;src:url('./fonts/gothic-demi.otf') format('opentype');font-display:swap;font-weight:700 900}
@font-face{font-family:InkSans;src:url('./fonts/sans.otf') format('opentype');font-display:swap;font-weight:400}
@font-face{font-family:InkSans;src:url('./fonts/sans-bold.otf') format('opentype');font-display:swap;font-weight:700}
:root{--ink:#242b25;--muted:#667064;--bg:#edf1e9;--paper:#fffef8;--blue:#4469da;--blue-dark:#2d4eaf;--blue-soft:#eaf0ff;--red:#e9684e;--red-dark:#ac3826;--red-soft:#ffede6;--yellow:#f4cc59;--border:#d1d8cc;--shadow:4px 5px 0 var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:InkSans,Arial,sans-serif;font-size:16px;line-height:1.45}button,input{font:inherit;color:inherit}button{cursor:pointer}button,a,input{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9c4ed1;outline-offset:4px}button{border:0}a{color:inherit}.app-shell{max-width:1392px;margin:0 auto;padding:0 46px}.site-header{min-height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c9d0c3;gap:20px}.brand{display:flex;align-items:center;text-decoration:none;gap:12px;font-family:Notebook,sans-serif;font-size:16px;line-height:1.15;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;width:49px;height:49px;background:var(--red);border:2px solid var(--ink);border-radius:14px;box-shadow:2px 2px 0 var(--ink);transform:rotate(-7deg)}.brand-icon svg{width:36px;fill:none;stroke:var(--ink);stroke-width:2.3;stroke-linecap:round}.brand-tamil{display:block;font-family:Arial,sans-serif;letter-spacing:0;font-size:11px;margin-top:5px;color:#52604f}.header-note{font-size:12px;letter-spacing:1.6px;display:flex;align-items:center;gap:11px}.tiny-star{font-size:29px}.site-header nav{display:flex;align-items:center;gap:18px}.text-button{padding:7px 0;background:none;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.help-icon{width:19px;height:19px;border:1.5px solid;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700}.icon-button{width:36px;height:36px;display:grid;place-items:center;background:transparent;border-radius:50%}.icon-button:hover{background:#dce4d7}.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.outline-button{border:1.5px solid var(--ink);border-radius:8px;background:transparent;padding:9px 15px;font-size:14px;display:flex;gap:16px;align-items:center;justify-content:center;transition:background .15s}.outline-button:hover{background:#e0e7d9}.outline-button span{font-size:20px;line-height:1}.intro{display:flex;justify-content:space-between;align-items:center;padding:36px 0 31px;gap:16px}.eyebrow{font-size:11px;letter-spacing:1.65px;font-weight:700;display:block}.intro .eyebrow{display:flex;align-items:center;gap:10px}.label-line{display:block;width:22px;height:2px;background:var(--ink)}h1{font-family:Notebook,sans-serif;letter-spacing:-3.7px;font-size:63px;line-height:1.17;margin:11px 0 10px;font-weight:900}h1>span{display:inline-block;position:relative;color:var(--blue-dark);transform:rotate(-2deg)}h1>span svg{position:absolute;width:100%;bottom:-7px;left:0;fill:none;stroke:var(--blue-dark);stroke-width:2.6;stroke-linecap:round}.intro p{margin:13px 0 0;font-size:16px;color:#596252}.intro-art{width:310px;height:148px;position:relative;display:flex;align-items:center;justify-content:center;transform:rotate(2deg);margin-right:26px}.intro-art>div{width:145px;z-index:1}.intro-art #hero-blue{transform:rotate(-10deg) translateY(6px)}.intro-art #hero-red{transform:rotate(9deg)}.intro-art svg{width:100%;overflow:visible}.art-star{position:absolute;font-size:30px}.star-one{top:7px;left:6px;color:var(--blue)}.star-two{right:10px;bottom:0;color:var(--red)}.pew-note{position:absolute;font-family:Notebook,sans-serif;font-size:17px;top:-2px;right:63px;transform:rotate(-9deg);color:var(--red-dark)}.pencil-line{position:absolute;width:90%;height:17px;bottom:3px;left:20px;border-top:2px solid #abb8a2;border-radius:50%;transform:rotate(-2deg)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 326px;gap:27px;align-items:start}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px;min-height:20px}.section-label h2{font-size:12px;letter-spacing:1.55px;margin:0;font-weight:700}.section-label>span{font-size:12px;color:#586451}.pass-play{display:flex;align-items:center;gap:7px}.pass-play svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}.notebook{border:2px solid var(--ink);border-radius:13px;background:var(--paper);position:relative;box-shadow:4px 5px 0 #273027;isolation:isolate}.bindings{display:flex;justify-content:space-around;position:absolute;top:-9px;left:30px;right:30px;z-index:5;pointer-events:none}.bindings i{width:8px;height:21px;background:#a6b49e;border:1.6px solid var(--ink);border-radius:6px;box-shadow:inset 2px 0 #eaf0e5;transform:rotate(-6deg)}.players-heading{display:grid;grid-template-columns:1fr 1fr;position:relative;min-height:99px;overflow:hidden;border-radius:11px 11px 0 0;border-bottom:1.5px solid var(--ink)}.player-heading{padding:25px 23px 15px;display:flex;align-items:center;gap:11px}.player-heading.blue{background:var(--blue-soft);border-right:1px solid var(--ink)}.player-heading.red{background:var(--red-soft);flex-direction:row-reverse;text-align:right}.player-avatar{border:1.5px solid var(--ink);border-radius:50%;height:37px;width:37px;display:grid;place-items:center;flex-shrink:0;background:var(--blue);color:white;font-size:12px;font-weight:700}.red .player-avatar{background:var(--red);color:#2b271f}.player-text{min-width:0}.player-text h3{font-family:Notebook,sans-serif;margin:0;font-size:18px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.player-text p{margin:4px 0 0;font-size:12px;color:#50604f}.active-indicator{font-size:9px;letter-spacing:1px;display:inline-block;border-radius:4px;background:var(--blue);color:white;padding:3px 5px;vertical-align:middle;margin-left:7px;font-family:InkSans,sans-serif;line-height:1}.red .active-indicator{background:var(--red);color:#222}.vs{position:absolute;left:50%;top:35px;transform:translateX(-50%) rotate(-9deg);z-index:2;background:var(--yellow);border:1.5px solid var(--ink);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-family:Notebook,sans-serif;font-size:13px}.arena{position:relative}.arena:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:#e2c7c0;z-index:0}.lane{display:grid;grid-template-columns:1fr 1fr;position:relative;min-height:102px;background-image:repeating-linear-gradient(transparent 0,transparent 25px,#e8edea 25px,#e8edea 26px);border-bottom:1px solid #cbd3c9}.lane:last-child{border-bottom:0}.lane-number{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-5deg);width:31px;height:33px;border:1.5px solid #b0b9ac;background:#f4f5ed;z-index:2;border-radius:6px;display:grid;place-items:center;font-family:Notebook,sans-serif;font-size:18px;transition:all .25s}.lane-number.picked{background:var(--yellow);border-color:var(--ink);transform:translate(-50%,-50%) rotate(7deg);box-shadow:2px 2px 0 var(--ink)}.fighter-cell{padding:9px 27px 9px 23px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;position:relative;transition:background .25s}.fighter-cell.red{flex-direction:row-reverse;padding:9px 23px 9px 27px;text-align:right}.fighter-cell.highlight.blue{background:#dce6ff99}.fighter-cell.highlight.red{background:#ffddd199}.fighter-cell.eliminated{background:repeating-linear-gradient(-45deg,transparent 0,transparent 7px,#88918008 7px,#88918008 8px)}.fighter-art{width:111px;height:84px;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative}.fighter-art svg{width:100%;height:100%;overflow:visible}.fighter-info{min-width:0}.fighter-status{font-size:14px;display:block;font-weight:700;line-height:1.3}.fighter-next{font-size:12px;color:#6b7465;display:block;margin-top:5px;white-space:nowrap}.progress-pips{display:flex;gap:4px;margin-top:8px}.red .progress-pips{justify-content:flex-end}.progress-pips i{height:4px;width:13px;background:#dce1d5;border-radius:2px}.blue .progress-pips i.filled{background:var(--blue)}.red .progress-pips i.filled{background:var(--red)}.eliminated .fighter-status{font-size:12px;letter-spacing:1px;color:#737c6d;text-decoration:line-through}.eliminated .fighter-art{opacity:.5}.ready .fighter-status{color:var(--blue-dark)}.ready.red .fighter-status{color:var(--red-dark)}.ready-tag{font-size:10px;position:absolute;right:0;top:0;border:1px solid var(--ink);border-radius:3px;padding:1px 5px;background:var(--yellow);color:var(--ink);transform:rotate(8deg);font-weight:700}.notebook-bottom{display:flex;align-items:center;justify-content:space-between;padding:13px 21px;border-top:1px solid #cbd3c9;background:#f7f8f0;border-radius:0 0 11px 11px;font-size:10px;letter-spacing:1px}.notebook-bottom>span{display:flex;align-items:center;gap:6px}.ink-sample{width:8px;height:8px;border-radius:50%;display:inline-block}.blue-sample{background:var(--blue)}.red-sample{background:var(--red)}.paper-note{font-family:Notebook,sans-serif;font-size:11px;letter-spacing:-.2px;transform:rotate(-2deg);color:#778170}.arena-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:12px;color:#67705e}.rule-chip{padding:5px 9px;background:#e0e7d9;border:1px solid #bac6b3;border-radius:5px;font-size:12px}.rule-chip:hover{background:#d1ddc8}.turn-card{border:1.5px solid var(--ink);background:#fffef8;border-radius:11px;padding:21px 22px 15px;box-shadow:3px 4px 0 #ccd4c5;overflow:hidden;position:relative}.turn-kicker{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:1.2px;color:var(--blue-dark)}.turn-kicker span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue)}.turn-card h2{font-family:Notebook,sans-serif;font-size:27px;line-height:1.2;letter-spacing:-1px;margin:10px 0 5px;overflow-wrap:anywhere}.turn-caption{font-size:14px;color:#66705e;margin:0;min-height:21px}.turn-card.red .turn-kicker{color:var(--red-dark)}.turn-card.red .turn-kicker span{background:var(--red)}.book-scene{position:relative;height:171px;perspective:750px;margin:8px 0 12px;transform:rotate(-3deg)}.book-cover{position:absolute;top:18px;left:6px;right:3px;bottom:2px;background:#708a68;border:2px solid var(--ink);border-radius:8px 12px 12px 8px;transform:rotate(-1deg);box-shadow:1px 3px 0 #314b2c}.book-pages{position:absolute;left:8px;right:7px;top:12px;bottom:10px;display:grid;grid-template-columns:1fr 1fr;border:1.6px solid var(--ink);background:#fffdf0;border-radius:8px 10px 10px 8px;box-shadow:0 3px #e4e0c9,0 4px #2b3526;transform:rotate(1deg)}.book-left,.book-right{position:relative;display:flex;align-items:center;flex-direction:column;padding:18px 8px 10px}.book-left{border-right:1px solid #bcbdaa;background:linear-gradient(90deg,transparent 90%,#d4d0ba66);border-radius:8px 0 0 8px}.book-left>span{font-family:Notebook,sans-serif;font-size:9px;text-align:center;line-height:1.4;letter-spacing:.8px;transform:rotate(-3deg)}.book-left svg{width:52px;height:50px;margin-top:5px;fill:#f4cf61;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round}.book-left .book-rule{font-family:InkSans,sans-serif;font-size:7px;letter-spacing:0;margin-top:4px;color:#6b725d}.book-right{background:linear-gradient(90deg,#c9c5ae44,transparent 15%);justify-content:center}.book-right>span{font-size:8px;letter-spacing:1px;color:#6d725f}.book-right strong{font-family:Notebook,sans-serif;font-size:46px;line-height:1.2;letter-spacing:-3px;margin:4px 0 0;font-weight:700;color:#343e2c}.book-right strong mark{background:var(--yellow);color:inherit;padding:1px 2px;border-radius:4px}.book-lines{width:70%;margin-top:3px}.book-lines i{display:block;height:1px;background:#dce0ca;margin:6px auto;width:100%}.book-lines i:last-child{width:65%}.book-bookmark{position:absolute;left:56%;bottom:-2px;width:12px;height:23px;background:var(--red);clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%);transform:rotate(1deg)}.turning-page{position:absolute;display:none;left:50%;right:7px;top:13px;bottom:10px;background:#fff9d8;border:1px solid #b7b79e;border-radius:0 10px 10px 0;transform-origin:left;z-index:4}.flipping .turning-page{display:block;animation:page-flip .23s linear infinite}.flipping{animation:book-bounce .7s ease}.primary-button{width:100%;padding:14px 15px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--blue);border:1.5px solid var(--ink);border-radius:7px;color:#fff;box-shadow:2px 3px 0 var(--ink);font-size:16px;font-weight:700;transition:transform .15s,box-shadow .15s}.primary-button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.primary-button:hover{transform:translateY(-2px);box-shadow:2px 5px 0 var(--ink);background:#3559c7}.primary-button:active{transform:translate(2px,3px);box-shadow:none}.turn-card.red .primary-button{background:var(--red);color:#231f18}.turn-card.red .primary-button:hover{background:#f0775b}.primary-button.fire-button{background:var(--yellow);color:var(--ink);margin-top:8px}.control-hint{text-align:center;font-size:11px;color:#6b7564;margin-top:14px;min-height:16px}.control-hint kbd{border:1px solid #c7d0be;border-radius:3px;background:#f1f4e9;padding:1px 5px;font-size:10px;margin:0 3px}.result-card{padding:17px 19px;background:#e1e8d9;border:1px solid #c3cfb9;border-radius:10px;margin-top:18px;min-height:133px}.result-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.result-top .eyebrow{font-size:10px}.result-top>span:last-child{font-size:9px;letter-spacing:.8px;color:#5b694f}.result-card h3{font-family:Notebook,sans-serif;margin:0 0 6px;font-size:17px;letter-spacing:-.5px;line-height:1.3}.result-card p{font-size:13px;margin:0;color:#4e5e43;line-height:1.5}.result-card b{font-weight:700}.result-digit{display:inline-grid;place-items:center;width:25px;height:25px;background:var(--yellow);border:1px solid var(--ink);border-radius:5px;font-size:14px;vertical-align:middle;margin-right:6px;transform:rotate(-5deg)}.build-guide{padding:21px 3px 0}.build-guide>.eyebrow{font-size:10px;color:#536248}.build-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:9px 0 11px}.build-step{position:relative;text-align:center}.build-step:not(:last-child):after{content:'·';position:absolute;right:-5px;top:20px;color:#829276;font-size:20px}.build-step svg{height:46px;width:51px}.build-step>span{display:block;font-size:10px;color:#5e6c54}.build-guide p{font-size:12px;line-height:1.65;color:#68755f;margin:0}.build-guide b{font-weight:400;color:#3e4f33}.site-footer{padding:25px 0 20px;margin-top:19px;border-top:1px solid #cbd4c3;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#617255}.site-footer>span:first-child{display:flex;align-items:center;gap:10px}.site-footer>span:first-child span{font-size:21px;color:#6f855d}.site-footer .text-button{font-size:12px;color:#405331}.page-entry{display:flex;gap:7px}.page-entry input{width:100%;min-width:0;padding:10px 12px;border:1.5px solid #a8b59d;border-radius:6px;background:white;font-size:18px}.enter-button{font-size:13px;padding:8px 9px;border:1.5px solid var(--ink);background:var(--yellow);border-radius:5px;white-space:nowrap;font-weight:700}#page-form label{font-size:12px;display:block;margin-bottom:6px}.error-text{font-size:12px;color:#a62821;margin:6px 0 0;min-height:0}.target-list{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.target-button{background:var(--yellow);border:1.5px solid var(--ink);border-radius:7px;padding:10px 12px;font-size:14px;font-weight:700;box-shadow:1px 2px 0 var(--ink);flex-grow:1}.target-button:hover{background:#ffdf79;transform:translateY(-1px)}.target-caption{font-size:13px;font-weight:700;margin:5px 0 0}.hold-button{width:100%;margin:7px 0 0;padding:9px;background:none;text-decoration:underline;text-underline-offset:3px;font-size:13px}.waiting-note{font-size:13px;text-align:center;color:#5c6854;margin:11px 0}.shoot-flash{animation:shot-flash .5s ease}.new-ink{animation:ink-pop .45s ease}.effect-burst{position:fixed;z-index:70;pointer-events:none;font-family:Notebook,sans-serif;font-size:24px;color:#1d2618;background:var(--yellow);padding:20px 15px;clip-path:polygon(50% 0,61% 24%,87% 9%,79% 36%,100% 43%,80% 58%,95% 84%,64% 77%,53% 100%,39% 78%,11% 93%,22% 63%,0 50%,24% 37%,13% 9%,40% 23%);animation:burst .9s ease both;transform:translate(-50%,-50%) rotate(-9deg)}.projectile{position:fixed;width:15px;height:7px;pointer-events:none;background:var(--yellow);border:1.5px solid var(--ink);border-radius:50%;z-index:60;animation:projectile .25s ease-in both}.confetti{position:fixed;width:9px;height:15px;z-index:1000;top:-20px;left:var(--x);background:var(--color);animation:confetti var(--duration) ease-in var(--delay) both;pointer-events:none}.noscript-note{padding:30px;background:var(--yellow);text-align:center}
dialog{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 38px);padding:0;border:2px solid var(--ink);border-radius:15px;background:var(--paper);color:var(--ink);box-shadow:6px 7px 0 #222b24;overflow:auto}dialog::backdrop{background:#26332288;backdrop-filter:blur(5px)}.dialog-inner{padding:32px;position:relative}.dialog-close{position:absolute;right:15px;top:12px;font-size:27px;width:34px;height:34px;background:transparent;border-radius:50%;line-height:1}.dialog-close:hover{background:#e7edde}.dialog-inner>h2{font-family:Notebook,sans-serif;font-size:34px;letter-spacing:-1.5px;line-height:1.15;margin:14px 0 12px}.dialog-inner>p{color:#5f6d55;font-size:14px;margin-top:0}.dialog-inner>.eyebrow{max-width:90%;font-size:10px}.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.name-fields label{font-size:13px;font-weight:700;color:var(--blue-dark)}.name-fields label:last-child{color:var(--red-dark)}.name-fields input{display:block;width:100%;background:#f8faf4;border:1px solid #afbaa6;border-radius:6px;font-size:16px;padding:10px;margin-top:6px}fieldset{padding:0;border:0;margin:20px 0}legend{font-family:Notebook,sans-serif;font-size:15px;margin-bottom:9px}.radio-card{display:flex;gap:10px;padding:13px 12px;border:1px solid #c3cdb9;border-radius:8px;margin-bottom:8px;cursor:pointer;align-items:flex-start}.radio-card:has(input:checked){border-color:#748e62;background:#edf2e7;box-shadow:inset 0 0 0 1px #748e62}.radio-card input{accent-color:var(--blue);margin:3px 0 0;min-width:16px;min-height:16px}.radio-card b{font-size:14px;display:block}.radio-card small{font-size:12px;line-height:1.5;display:block;color:#5b694f;margin-top:3px}.book-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.book-options .radio-card{padding:11px 9px}.setup-note{font-size:12px!important;margin-bottom:14px}.language-tabs{display:flex;gap:5px;background:#eaf0e3;border-radius:7px;padding:4px;margin:20px 0}.language-tabs button{flex:1;padding:7px;font-size:13px;background:transparent;border-radius:5px}.language-tabs button.selected{background:var(--paper);box-shadow:0 1px 4px #24410a25}.rules-list{padding:0;list-style:none;counter-reset:rules}.rules-list li{padding-left:36px;position:relative;margin:18px 0;font-size:14px;color:#596a4e}.rules-list li:before{counter-increment:rules;content:counter(rules);position:absolute;left:0;top:0;width:24px;height:25px;border:1px solid #a3b492;border-radius:5px;display:grid;place-items:center;background:#e9efdf;color:#34482a;font-weight:700}.rules-list b{display:block;color:var(--ink);font-size:15px;margin-bottom:3px}.rule-explainer{font-size:12px;background:#fff1c8;padding:13px;border-radius:7px;border:1px solid #d9bf79;line-height:1.55;margin-bottom:20px}.end-content{text-align:center}.end-content>.eyebrow{max-width:none}.end-content>h2{font-size:36px;overflow-wrap:anywhere}.end-content .outline-button{width:100%;margin-top:13px}.end-content #end-art{height:145px}.end-content #end-art svg{height:100%;width:auto}.end-content .small-note{font-size:12px;margin:19px 0 0}#end-score{display:flex;justify-content:center;align-items:center;gap:35px;margin:20px 0 27px}#end-score strong{display:block;font-family:Notebook,sans-serif;font-size:28px}#end-score span{font-size:12px;color:#65715d;overflow-wrap:anywhere}.history-entry{border-bottom:1px solid #d8e1cf;padding:12px 0;display:flex;gap:12px;font-size:13px}.history-entry .history-turn{font-size:11px;background:#e6eddc;border:1px solid #c5d1b7;padding:3px 6px;height:max-content;border-radius:4px;white-space:nowrap}.history-entry b{display:block;font-size:14px;margin-bottom:3px}#history-list{list-style:none;margin:10px 0 0;padding:0;max-height:420px;overflow:auto}.empty-history{font-size:14px;padding:25px 0;color:#69755f}
@keyframes page-flip{0%{transform:rotateY(0)}100%{transform:rotateY(-180deg)}}@keyframes book-bounce{50%{transform:rotate(1deg) translateY(-5px)}}@keyframes ink-pop{0%{transform:scale(.7);opacity:.4}65%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}@keyframes shot-flash{0%,40%{background:#ffd56f}100%{background:transparent}}@keyframes burst{0%{opacity:0;scale:.3}25%{opacity:1;scale:1.25}70%{opacity:1;scale:1}100%{opacity:0;scale:1.5}}@keyframes projectile{from{transform:translate(0,0)}to{transform:translate(var(--dx),var(--dy))}}@keyframes confetti{to{transform:translate(var(--drift),105vh) rotate(700deg)}}
@media(min-width:1500px){.app-shell{max-width:1490px}.game-layout{grid-template-columns:minmax(0,1fr) 355px}.lane{min-height:108px}.fighter-art{width:126px;height:90px}.book-scene{height:183px}.turn-card{padding:24px}.intro{padding-top:40px;padding-bottom:36px}h1{font-size:72px}.fighter-status{font-size:15px}.fighter-next{font-size:13px}.player-text h3{font-size:20px}.build-guide p{font-size:13px}}
@media(max-width:1180px){.app-shell{padding:0 30px}.header-note{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 298px;gap:21px}h1{font-size:53px}.intro-art{width:260px;margin-right:0}.fighter-cell{padding-left:16px;padding-right:20px;gap:3px}.fighter-cell.red{padding-right:16px;padding-left:20px}.fighter-art{width:86px;height:78px}.fighter-status{font-size:13px}.fighter-next{font-size:11px}.progress-pips{gap:3px}.progress-pips i{width:10px}.player-heading{padding-left:17px;padding-right:17px}.player-text h3{max-width:122px;font-size:16px}.active-indicator{display:none}.turn-card{padding:20px 18px 14px}.turn-card h2{font-size:25px}.notebook-bottom{padding-left:17px;padding-right:17px}.paper-note{font-size:10px}.arena-foot{font-size:10px}.intro{padding-top:31px;padding-bottom:28px}}
@media(max-width:920px){.app-shell{padding:0 24px}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.fighter-cell{flex-direction:column-reverse!important;justify-content:center;gap:0;text-align:center!important;padding:5px 20px!important}.fighter-art{height:62px;width:92px}.fighter-status{font-size:11px}.fighter-next{display:none}.progress-pips{justify-content:center!important;margin-top:4px}.lane{min-height:107px}.player-heading{padding:24px 10px 15px;gap:8px}.player-avatar{width:28px;height:28px;font-size:10px}.player-text h3{font-size:14px;max-width:100px}.player-text p{font-size:10px}.paper-note{display:none!important}.notebook-bottom{padding:12px 14px}.intro-art{width:225px;height:125px}.intro-art>div{width:120px}.pew-note{font-size:13px;right:40px}h1{font-size:47px;letter-spacing:-3px}.intro .eyebrow{font-size:9px;letter-spacing:1.2px}.intro p{font-size:14px}.arena-foot{align-items:flex-start;flex-direction:column;gap:8px}.turn-card h2{font-size:24px}.section-label h2{font-size:11px;letter-spacing:1.2px}}
@media(max-width:740px){.app-shell{padding:0 20px;max-width:650px}.site-header{min-height:88px;gap:12px}.brand{font-size:13px;gap:9px}.brand-icon{width:39px;height:39px;border-radius:11px}.brand-icon svg{width:29px}.brand-tamil{font-size:9px}.site-header nav{gap:9px}.site-header .text-button>span:last-child{display:none}.site-header .outline-button{font-size:12px;padding:8px 10px;gap:7px}.site-header .outline-button span{font-size:18px}.icon-button{width:28px;height:32px}.intro{padding:28px 0 27px;position:relative}.intro .eyebrow{font-size:9px;letter-spacing:1px;gap:7px}.label-line{width:14px}h1{font-size:44px;letter-spacing:-2.6px;margin-top:10px}.intro p{font-size:13px;margin-top:15px}.intro-art{width:155px;height:105px;margin-left:-25px;margin-right:-6px}.intro-art>div{width:88px}.art-star{font-size:20px}.star-one{top:12px;left:-3px}.pew-note{font-size:11px;top:5px;right:26px}.pencil-line{bottom:14px}.game-layout{grid-template-columns:1fr;gap:22px}.section-label{margin-bottom:15px}.section-label h2{font-size:11px}.play-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px}.play-sidebar>.section-label{grid-column:1/-1;margin-bottom:0}.turn-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 180px;padding:17px 18px 16px;column-gap:13px;grid-template-rows:auto auto 1fr auto}.turn-card .turn-kicker{grid-column:1;grid-row:1;align-self:end;font-size:10px}.turn-card h2{grid-column:1;grid-row:2;font-size:23px;align-self:start;margin:9px 0 5px}.turn-caption{grid-column:1;grid-row:3;font-size:12px;min-height:0}.book-scene{grid-column:2;grid-row:1/4;width:175px;height:121px;margin:0;align-self:center;justify-self:end;transform:rotate(-3deg)}.book-left,.book-right{padding:12px 5px 7px}.book-left>span{font-size:6px}.book-left svg{width:35px;height:35px;margin-top:2px}.book-left .book-rule{font-size:5px;margin-top:2px}.book-right>span{font-size:6px}.book-right strong{font-size:35px;margin-top:2px;letter-spacing:-2px}.book-lines i{margin:4px auto}.book-bookmark{bottom:1px;width:8px;height:18px}#action-area{grid-column:1/-1;grid-row:4;margin-top:12px}.control-hint{grid-column:1/-1;grid-row:5;margin-top:11px;font-size:10px}.primary-button{padding:13px;font-size:15px}#page-form{grid-column:1/-1;margin-top:13px;grid-row:4}#page-form:not([hidden])+#action-area{grid-row:5;margin:0}#page-form:not([hidden])~.control-hint{grid-row:6}.result-card{margin:0;padding:15px;min-height:0}.result-top{gap:5px;flex-wrap:wrap;margin-bottom:9px}.result-top .eyebrow{font-size:9px}.result-top>span:last-child{font-size:8px}.result-card h3{font-size:16px}.result-card p{font-size:12px}.build-guide{padding:9px 0}.build-guide>.eyebrow{font-size:8px;letter-spacing:1px}.build-steps{gap:1px;margin:7px 0}.build-step svg{width:33px;height:35px}.build-step>span{font-size:8px}.build-guide p{font-size:10px}.build-step:not(:last-child):after{top:14px;right:-3px;font-size:14px}.fighter-cell{flex-direction:row!important;text-align:left!important;justify-content:space-between;gap:8px;padding:7px 24px 7px 17px!important}.fighter-cell.red{flex-direction:row-reverse!important;text-align:right!important;padding:7px 17px 7px 24px!important}.fighter-art{height:74px;width:92px}.fighter-status{font-size:12px}.fighter-next{display:block;font-size:10px}.progress-pips{justify-content:flex-start!important}.red .progress-pips{justify-content:flex-end!important}.lane{min-height:91px}.player-heading{padding:22px 17px 13px;gap:10px}.players-heading{min-height:86px}.player-avatar{width:33px;height:33px;font-size:11px}.player-text h3{font-size:16px;max-width:160px}.player-text p{font-size:11px}.vs{top:30px;width:29px;height:29px}.bindings{left:18px;right:18px}.bindings i{width:7px;height:20px}.arena-foot{flex-direction:row;align-items:center;font-size:10px;margin-top:16px}.rule-chip{font-size:10px}.paper-note{display:flex!important;font-size:10px}.notebook-bottom{padding:11px 16px;font-size:9px}.site-footer{margin-top:22px;padding:18px 0 23px;flex-wrap:wrap;font-size:10px;row-gap:5px}.site-footer>span:nth-child(2){display:none}.site-footer .text-button{font-size:11px}.ready-tag{font-size:8px}.dialog-inner{padding:28px 22px}.dialog-inner>h2{font-size:30px}.dialog-inner>.eyebrow{font-size:9px}.end-content>h2{font-size:32px}}
@media(max-width:470px){.app-shell{padding:0 15px}.intro-art{display:none}h1{font-size:47px}.intro{padding:25px 0 25px}.intro p{font-size:14px}.intro .eyebrow{font-size:9px;letter-spacing:1.1px}.fighter-cell{flex-direction:column-reverse!important;text-align:center!important;justify-content:center;gap:1px;padding:6px 15px!important}.fighter-cell.red{flex-direction:column-reverse!important;text-align:center!important;padding:6px 15px!important}.fighter-art{height:62px;width:92px}.fighter-info{max-width:100%}.fighter-status{font-size:11px}.fighter-next{display:none}.progress-pips,.red .progress-pips{justify-content:center!important;gap:3px;margin-top:4px}.progress-pips i{width:10px;height:3px}.lane{min-height:99px}.player-heading{padding-left:12px;padding-right:12px;gap:7px}.player-text h3{font-size:14px;max-width:104px}.player-avatar{width:27px;height:27px;font-size:9px}.player-text p{font-size:10px}.paper-note{font-size:9px}.notebook-bottom{padding:10px 12px;font-size:8px}.turn-card{grid-template-columns:1fr 153px;column-gap:4px;padding:17px 16px 15px}.book-scene{width:150px;height:114px}.turn-card h2{font-size:22px;letter-spacing:-.8px}.turn-caption{font-size:12px;max-width:155px}.book-left .book-rule{font-size:4px}.book-left>span{font-size:5px}.result-card{padding:13px}.result-card h3{font-size:15px}.result-card p{font-size:11px}.build-guide>.eyebrow{font-size:8px;letter-spacing:.6px}.build-step svg{width:29px}.build-guide p{font-size:10px}.result-top>span:last-child{font-size:7px}.play-sidebar{gap:12px}.arena-foot{font-size:9px}.rule-chip{font-size:9px;padding:5px 7px}.name-fields{gap:10px}.book-options{gap:6px}.book-options .radio-card{gap:7px}.book-options .radio-card b{font-size:12px}.book-options .radio-card small{font-size:10px}.dialog-inner{padding:27px 20px}.end-content>h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.confetti,.projectile,.effect-burst{display:none}}
/* Keep game status readable, with turn controls in reach on a phone. */
.fighter-status{font-size:14px}.fighter-next{font-size:12px}.turn-kicker{font-size:12px}.control-hint{font-size:12px}.result-card p{font-size:14px}.build-step>span{font-size:12px}.build-guide p{font-size:13px}.rule-chip{font-size:13px}#page-form label{font-size:14px}.mobile-dock{display:none}
@media(max-width:920px) and (min-width:741px){.fighter-status{font-size:14px}.lane{min-height:114px}}
@media(max-width:740px){
  .app-shell{padding-bottom:95px}.mobile-dock{position:fixed;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:center;bottom:0;left:0;right:0;z-index:30;background:#fffef8f5;border-top:1.5px solid var(--ink);padding:12px 17px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 16px #24331b15;backdrop-filter:blur(10px)}
  .mobile-dock strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-dock>div>span{display:block;font-size:12px;line-height:1.3;margin-top:4px;color:#5e6c53}.mobile-dock .primary-button{font-size:14px;padding:12px 8px}.mobile-dock.red .primary-button{background:var(--red);color:var(--ink)}.fighter-cell{min-width:0}.fighter-status{font-size:14px}.fighter-next{font-size:12px}.arena-foot{font-size:12px;align-items:flex-start}.arena-foot>span{max-width:120px;text-align:right}.rule-chip{font-size:12px}.build-guide{grid-column:1/-1;padding:8px 4px 0}.result-card{grid-column:1/-1}.build-guide>.eyebrow{font-size:11px}.build-steps{max-width:310px}.build-step svg{width:46px;height:42px}.build-step>span{font-size:12px}.build-guide p{font-size:13px}.result-top>span:last-child,.result-top .eyebrow{font-size:11px}.result-card p{font-size:14px}.result-card h3{font-size:18px}.turn-caption{font-size:14px}.turn-card{min-height:225px}.control-hint{font-size:12px}.player-text p{font-size:12px}.player-text h3{font-size:16px}.section-label>span,.section-label h2{font-size:12px}.site-header .outline-button{font-size:14px}.name-fields label{font-size:14px}.book-options .radio-card b{font-size:14px}.book-options .radio-card small{font-size:12px}
}
@media(max-width:470px){.fighter-art{height:60px}.lane{min-height:103px}.fighter-next{display:none}.player-text h3{font-size:14px}.player-text p{font-size:11px}.paper-note{display:none!important}.mobile-dock{grid-template-columns:minmax(0,1fr) 137px;gap:8px;padding-left:14px;padding-right:14px}.turn-caption{font-size:13px}.section-label h2{font-size:11px}.name-fields{grid-template-columns:1fr}.book-options{grid-template-columns:1fr 1fr}}

/* A comic-book cover wrapped around the original ruled-paper board. */
:root {
  --ink: #29213d;
  --muted: #645b76;
  --bg: #f3edff;
  --paper: #fffdf7;
  --blue: #3e4bc3;
  --blue-dark: #293798;
  --blue-soft: #deeaff;
  --red: #ff8c79;
  --red-dark: #a13b34;
  --red-soft: #ffe1df;
  --yellow: #ffd55d;
}

body {
  background: radial-gradient(circle at 1px 1px, #7a61af22 1px, transparent 1.5px) 0 0 / 19px 19px, var(--bg);
}

.site-header { min-height: 82px; border-bottom: 0; }
.brand-icon { background: #ff8c79; }
.brand-tamil { color: #655678; }
.site-header .outline-button { background: #fffdf7; }
.site-header .outline-button:hover { background: #ffe6a0; }
.site-header .text-button { min-height: 44px; }

.intro {
  position: relative;
  isolation: isolate;
  margin: 10px 0 27px;
  padding: 29px 38px 31px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: #fffdf7;
  background: linear-gradient(115deg, #38217c 15%, #5137a8 65%, #7351ca);
  box-shadow: 5px 6px 0 var(--ink);
  overflow: hidden;
}

.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 1px 1px, #f7dbff4a 1px, transparent 1.6px) right top / 13px 13px;
  mask-image: linear-gradient(90deg, transparent 28%, #000);
}

.game-name { color: #ffe299; font-size: 15px; letter-spacing: .03em; }
.intro h1 { font-size: clamp(39px, 5.2vw, 73px); }
.intro h1 > span { color: var(--yellow); }
.intro h1 > span svg { stroke: currentColor; }
.intro p { color: #f2eaff; font-size: 16px; max-width: 530px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.arcade-button, .share-button {
  min-height: 44px;
  border: 1.5px solid var(--ink);
  padding: 9px 15px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 3px 0 #281847;
  font-weight: 700;
}

.arcade-button { background: var(--yellow); }
.arcade-button span { font-size: 20px; line-height: 1; }
.arcade-button:hover { background: #ffe389; transform: translateY(-2px); }
.share-button { color: var(--ink); background: #f0e5ff; }
.share-button:hover { background: #fffdf7; }

.intro-art {
  width: 320px;
  height: 160px;
  flex-shrink: 0;
  margin: 4px 6px 0 0;
  background: #fff3c7;
  border: 2px solid #2e215a;
  border-radius: 50% 42% 48% 44%;
  box-shadow: 5px 6px 0 #291c62;
  background-image: radial-gradient(#eb9efa7d 1px, transparent 1px);
  background-size: 9px 9px;
}
.intro-art > div { width: 140px; max-width: 49%; }
.intro-art .pew-note { top: 1px; right: 37%; padding: 2px 9px; color: #351c6a; background: #ffda62; border: 1.5px solid #38217c; border-radius: 5px; z-index: 2; }
.intro-art .star-one { color: #ffda62; left: -18px; top: -18px; }
.intro-art .star-two { color: #ffc0e8; right: -12px; bottom: -14px; }
.intro-art .pencil-line { border-color: #b079ac; bottom: 5px; }

.section-label > span { color: var(--muted); }
.series-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid #c9b4e3;
  border-radius: 9px;
  background: #fffaf6;
  font-size: 13px;
}
.series-strip > span:first-child { font-weight: 700; margin-right: auto; }
.series-strip > span:not(:first-child) { padding: 3px 8px; border-radius: 5px; }
.series-blue { background: #deeaff; color: #273597; }
.series-red { background: #ffe2dc; color: #812a28; }
.series-draw { background: #eee2ff; color: #4f2d81; }
.series-strip strong { margin-left: 3px; }
.play-sidebar > .section-label { margin-bottom: 16px; }
.bindings i { background: #c6afe8; box-shadow: inset 2px 0 #f3dbff; }
.notebook, .turn-card { box-shadow: 4px 5px 0 var(--ink); }
.notebook-bottom { background: #fff2d2; }
.lane {
  background-image: repeating-linear-gradient(transparent 0, transparent 25px, #e3ddf0 25px, #e3ddf0 26px);
  border-bottom-color: #d9cde8;
}
.lane-number { background: #f4e8ff; border-color: #beadd4; }
.lane-number.picked { background: var(--yellow); border-color: var(--ink); }
.book-cover { background: #7951c8; box-shadow: 1px 3px 0 #3c246d; }
.book-bookmark { background: #ff657f; }
.result-card { background: #e9dafa; border-color: #c5ace4; }
.result-card p, .result-top > span:last-child { color: #514168; }
.bonus-result { background: #fff0ad; border-color: #c29c38; }
.wild-title { color: #6034ab; }
.wild-button { background: #e6d7ff; }
.wild-button:hover { background: #ffd55d; }
.computer-status { margin: 0; font-size: 14px; color: #645278; font-weight: 700; }
.rule-chip { background: #e6d8fd; border-color: #c6b1e3; }
.rule-chip:hover { background: #d9c4f5; }
.site-footer { border-color: #d4c4e6; color: #645278; }
.target-button { min-height: 44px; }

.opponent-field, .share-field { display: block; font-size: 14px; font-weight: 700; }
.opponent-field select, .share-field input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #a894c2;
  border-radius: 7px;
  background-color: #fbf6ff;
}
.opponent-field select {
  appearance: none;
  padding-right: 35px;
  background-image: linear-gradient(45deg, transparent 50%, #553689 50%), linear-gradient(135deg, #553689 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 11px) 18px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.dialog-inner .arcade-option:has(input:checked) { background: #ebdcff; border-color: #835cbe; box-shadow: inset 0 0 0 1px #835cbe; }
.setup-note:empty { display: none; }
#copy-button { margin-top: 16px; }
#copy-status { margin: 12px 0 0; }
#copy-status:empty { margin: 0; }

@media (min-width: 741px) and (max-width: 1000px) {
  .intro { padding-left: 27px; padding-right: 27px; }
  .intro-art { width: 240px; height: 126px; margin-left: 0; }
}

@media (max-width: 740px) {
  .site-header { min-height: 72px; }
  .intro { margin: 5px 0 23px; padding: 24px 20px 26px; border-radius: 15px; gap: 8px; }
  .intro h1 { margin-top: 9px; font-size: clamp(34px, 7.8vw, 52px); letter-spacing: -.06em; }
  .intro p { font-size: 14px; }
  .intro-art { width: 150px; height: 95px; margin-left: 0; }
  .intro-art .pew-note { right: 28%; }
  .hero-actions { gap: 9px; margin-top: 16px; }
  .arcade-button, .share-button { padding: 8px 12px; font-size: 14px; }
  .play-sidebar > .section-label { margin-bottom: 0; }
  .result-card { margin-top: 5px; }
}

@media (max-width: 470px) {
  .intro h1 { font-size: clamp(31px, 9.6vw, 42px); }
  .arcade-button, .share-button { min-height: 44px; }
  .series-strip { font-size: 12px; padding: 7px; gap: 5px; }
  .series-strip > span:not(:first-child) { padding: 3px 6px; }
}

.arcade-button { color: var(--ink); }
.bonus-result:has(.bonus-title) { animation: ink-pop .42s ease both; }
.bonus-title { color: #513482; }

.site-header .rules-entry {
  min-height: 44px;
  gap: 7px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}

.site-header .rules-entry .rules-label { font-size: 14px; }
.site-header .rules-entry .help-icon { font-size: 13px; flex: 0 0 19px; }
.quick-rules { display: grid; gap: 8px; margin: 16px 0 20px; }
.quick-rules div {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: baseline;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ebe4ff;
}
.quick-rules div:nth-child(2) { background: #dfeaff; }
.quick-rules div:nth-child(3) { background: #ffe4de; }
.quick-rules span { font-size: 14px; }
.full-rules { margin-bottom: 20px; }
.full-rules summary { cursor: pointer; font-weight: bold; padding: 9px 0; }
.full-rules .rule-explainer:first-child { margin-top: 12px; }
.sound-enable { display: flex; align-items: center; gap: 9px; margin: 18px 0; }
.sound-enable input { width: 18px; height: 18px; accent-color: var(--blue); }
.sound-previews { display: flex; flex-wrap: wrap; gap: 9px; }
.sound-previews button { min-height: 44px; }
.blue-preview { background: var(--blue-soft); }
.red-preview { background: var(--red-soft); }
#audio-status:empty { display: none; }
#intro-status { color: #fff1b8; font-size: 13px; margin-top: 8px; }
#intro-status:empty { display: none; }

@media (max-width: 470px) {
  .site-header nav { gap: 7px; }
  .site-header .rules-entry { padding: 7px 8px; }
  .site-header .rules-entry .help-icon { display: none; }
  .site-header .rules-entry .rules-label { font-size: 12px; }
  #new-button { font-size: 12px; padding: 8px; white-space: nowrap; }
  #new-button span { display: none; }
  .brand { font-size: 11px; gap: 6px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-icon svg { width: 25px; }
}

/* Government school notebook edition */
:root {
  --ink:#332319; --muted:#705844; --bg:#eedebc; --paper:#fff6de;
  --blue:#284a6b; --blue-dark:#21415f; --blue-soft:#e0ebed;
  --red:#9d332c; --red-dark:#701f23; --red-soft:#f6dfcd; --yellow:#f4cb73;
}
[hidden] { display:none !important; }
body {
  background:radial-gradient(circle at 1px 1px,#79553318 1px,transparent 1.5px) 0 0/14px 14px,var(--bg);
}
body:has(#school-game[hidden]) .mobile-dock {display:none}
body:has(#school-game[hidden]) .app-shell {padding-bottom:0}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-header { min-height:76px; }
.brand-icon { background:var(--yellow); }
.brand-tamil,.section-label>span,.site-footer { color:#654b33; }
.site-header .outline-button {background:#fff0cc;white-space:nowrap}
.site-header .rules-entry {background:var(--yellow)}
.site-header #online-button {background:#284a40;color:#fff3d5;font-weight:bold}
.site-header .icon-button { min-width:40px; min-height:44px; }
.school-poster {
  position:relative; max-width:1140px; margin:8px auto 0;
  background:#bf915e; border-radius:13px; border:2px solid #68462b;
  box-shadow:6px 7px 0 #6e4b31; overflow:hidden;
}
.school-poster img {display:block;width:100%;height:auto}
.poster-hit {
  position:absolute;left:35%;width:31%;height:8.2%;padding:0;
  border:2px solid transparent;background:transparent;border-radius:20px;
}
.poster-hit:hover,.poster-hit:focus-visible {border-color:#fff2b4;background:#fff1b124;outline:3px solid #622518;outline-offset:0}
.poster-play {top:64.9%}.poster-learn {top:73.4%}.poster-scores {top:81%}.poster-memory {top:88.6%}
.home-actions {
  max-width:1140px;margin:22px auto 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
.school-link {
  display:grid;gap:6px;min-height:72px;text-align:left;padding:13px 15px;
  background:#fff1c9;color:var(--ink);border:1.5px solid #63452d;border-radius:9px;
  box-shadow:3px 4px 0 #765333;
}
.school-link b {font-size:16px}
.school-link span {font-size:14px}
.school-link:hover {background:#ffdd86}
.school-link.online-link {background:#284a40;color:#fff3d5}
.school-link.online-link:hover {background:#365e51}
.intro {
  background:radial-gradient(ellipse at 73% 80%,#415b49 0%,#2e4136 50%,#22342b 100%);
  border:5px solid #875a37;color:#fff7dc;box-shadow:4px 5px 0 #68482e;
}
.intro::before {background:radial-gradient(circle at 1px 1px,#f6f2ca30 1px,transparent 1.6px) right top/11px 11px}
.intro p {color:#ffedc5}
.intro-art {background-color:#f5dfab;border-color:#674125;box-shadow:4px 5px 0 #1f3027}
.intro-art .pew-note {color:#512623;background:#ffda7c;border-color:#6b4430}
.share-button,.player-avatar {background:#f8e6bc;color:#332319}
.blue .player-avatar {background:#294e6d;color:#fff4db}
.red .player-avatar,.turn-card.red .primary-button,.mobile-dock.red .primary-button {background:#a43a32;color:#fff6de}
.turn-card.red .primary-button:hover {background:#852b26;color:#fff6de}
.bindings i {background:#c59752;box-shadow:inset 2px 0 #f9dfac}
.lane {background-image:repeating-linear-gradient(transparent 0,transparent 25px,#d9c39e 25px,#d9c39e 26px);border-color:#decca5}
.lane-number {border-color:#ae8459;background:#f8e6bf}
.book-cover {background:#935a3a;box-shadow:1px 3px 0 #5c3626}
.result-card,.rule-chip {background:#f8e5bc;border-color:#c9a66e}
.result-card p,.result-top>span:last-child {color:#59412f}
.bonus-result {background:#ffe4a0}
.match-taunt {display:grid;gap:4px;margin:11px 0 0;padding:9px 11px;border-left:3px solid #a83c2f;background:#fff4d9;border-radius:4px}
.match-taunt span {font-size:14px;color:#6c2c25;font-weight:700}
.room-banner {
  margin:0 0 20px;display:flex;align-items:center;gap:11px;padding:14px 16px;
  background:#e6ead4;border:1.5px solid #5e6749;border-radius:10px;
}
.room-banner>div {flex:1;min-width:0}
.room-banner p {margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
.room-banner button {min-height:44px;padding:8px 11px;white-space:nowrap}
#room-form input {display:block;width:100%;min-height:44px;margin:6px 0 13px;padding:8px 10px;border:1px solid #947652;border-radius:7px;background:#fffcf2}
#room-form .primary-button {margin-top:15px}
.room-join {border-top:1px solid #cfb78e;margin-top:21px;padding-top:15px;display:flex;gap:10px;align-items:end}
.room-join label {flex:1;min-width:0}
.room-join input {margin-bottom:0!important;text-transform:uppercase}
.room-join button,#room-resume {min-height:44px}
#room-resume {margin-top:13px}
.lesson-board {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}
.lesson-board div {padding:8px;background:var(--blue-soft);border-radius:7px;text-align:center}
.lesson-board div+div {background:var(--red-soft)}
.lesson-board svg {display:block;height:88px;width:100%;margin:auto}
#lesson-step h3 {font-size:19px;margin:12px 0 5px}
#lesson-step p {margin:4px 0 12px}
.lesson-actions {display:flex;flex-wrap:wrap;gap:8px}
.lesson-actions button {min-height:44px}
#lesson-feedback {color:#74432a;font-weight:700;margin:12px 0 0}
#rules-practice {width:100%;margin-bottom:12px}
#win-flowers {color:#bd4d39;font-size:36px;letter-spacing:.17em}
#end-title.victory {font-size:clamp(2.4rem,7vw,4rem);font-weight:900;color:#8c292b;text-shadow:2px 2px #f1bc67;overflow-wrap:anywhere}
#end-dialog .confetti {position:absolute;pointer-events:none;border-radius:50%;color:#8c292b;text-shadow:0 1px #fff7da;font-size:20px;width:auto;height:auto;background:none}
#score-title span {display:block;font-size:18px;margin:4px 0}
#score-list {padding:0;list-style:none;max-height:50dvh;overflow:auto}
#score-list li {padding:9px 0;border-bottom:1px solid #d7bf95}
.site-footer a {font-size:14px}
@media(max-width:740px){
 .home-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-header {flex-wrap:wrap;gap:6px;padding:12px 0}
 .site-header nav {gap:6px}
 .school-poster {margin-top:5px}
 .room-banner {flex-wrap:wrap}
 .room-banner>div {flex-basis:100%}
}
@media(max-width:470px){
 .site-header nav {flex:1 0 100%;justify-content:space-between;gap:5px}
 .site-header .outline-button {min-height:44px;padding:6px 9px;font-size:12px}
 .home-actions {gap:9px;margin-top:14px}
 .school-link {padding:10px}
 .school-link b {font-size:14px}
 .school-link span {font-size:13px}
}

.resume-match {margin:18px auto 0;background:#ffefca;min-height:44px}
.bell-invite{display:flex;align-items:center;gap:13px;text-decoration:none;background:#22483c;color:#fff5d8;border:2px solid #a78451;border-radius:7px;padding:12px 18px;margin:6px 0 16px;box-shadow:0 3px 0 #b09a71}.bell-emblem{color:#f2ca6e;font-size:29px}.bell-invite strong,.bell-invite small{display:block}.bell-invite strong{font:700 22px Notebook,sans-serif}.bell-invite small{font-size:14px}.bell-invite b{margin-left:auto;border-radius:4px;padding:7px 12px;background:#f6d073;color:#332b20;white-space:nowrap}.cup-room-link{display:block;color:#245642;font-weight:700;margin-bottom:12px}.chalk-fall{transform-origin:48% 88%;animation:chalkDrop 1s both}@keyframes chalkDrop{0%{transform:rotate(0)}22%{transform:translateY(-9px) rotate(-14deg)}59%{transform:translate(5px,5px) rotate(78deg)}75%{transform:translate(6px,-2px) rotate(64deg);opacity:1}100%{transform:translate(7px,7px) rotate(82deg);opacity:0}}@media(max-width:500px){.bell-invite{padding:10px;gap:7px}.bell-invite strong{font-size:18px}.bell-emblem{display:none}.bell-invite small{font-size:13px}}@media(prefers-reduced-motion:reduce){.chalk-fall{visibility:hidden}}
.game-shelf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.96fr);align-items:center;gap:clamp(18px,3vw,44px);margin:18px 0 26px}.shelf-menu h1{font-size:clamp(32px,4.2vw,60px);line-height:1.03;letter-spacing:-.045em;margin:0 0 20px;color:#244837}.game-shelf .school-poster{margin:0;width:100%}.door{display:flex;align-items:center;gap:16px;padding:18px;background:#fff6dc;border:1.5px solid #af956f;border-radius:8px;box-shadow:3px 4px 0 #c7ad7b}.door+.door{margin-top:14px}.cup-door{background:#e1ead8}.door h2{font:700 clamp(22px,2.1vw,31px) Notebook,sans-serif;line-height:1.1;margin:0}.door p{margin:7px 0 11px;font-size:16px;line-height:1.35}.door-art{width:60px;flex:none}.bell-mark{border-radius:50%;height:54px;width:54px;display:grid;place-items:center;border:2px solid #8b7045;background:#f2cc6a;color:#27493d}.bell-mark svg{width:32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.door-actions{display:flex;gap:6px 12px;align-items:center;flex-wrap:wrap}.door-actions>*{font:700 14px InkSans,sans-serif;color:#254639;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:10px 0}.door-actions .door-main{border-radius:5px;padding:11px;background:#285342;color:#fff7e3;text-decoration:none}.duel-door .door-main{background:#884435}.guide-hint{font-size:15px;line-height:1.45;color:#564637}.guide-canv{display:flex;align-items:center;justify-content:space-around;gap:8px;background:#f4e8cc;border-radius:8px;padding:14px;font-weight:bold}.guide-canv svg{display:block;height:75px}.guide-canv span{text-align:center}body:has(#school-home:not([hidden])) :is(#online-button,#new-button,#history-button){display:none}.lesson-actions button{font-weight:700}.opponent-field select{max-width:100%}
@media(max-width:830px){.game-shelf{grid-template-columns:1fr}.game-shelf .school-poster{width:min(100%,680px)}.door-art{width:45px}.door{padding:16px;gap:12px}.shelf-menu h1{margin-bottom:14px}.game-shelf{margin-top:12px}}
#school-cover .school-poster{width:min(100%,1020px,calc(119vh - 110px));margin:12px auto}.cover-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:15px auto}#home-extras{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.cover-controls button,.school-back,.game-entry{border:1px solid #796a4b;border-radius:7px;color:#234637;background:#fff1cc;padding:10px 15px;font-weight:700;min-height:44px}.cover-controls .launch-primary{background:#863a30;color:#fff8da}.school-launch{margin:14px auto 20px;max-width:980px;padding:clamp(16px,3vw,30px);background:#21483d;border:5px solid #93714d;border-radius:9px;color:#fff4d6;box-shadow:3px 4px 0 #806a48}.school-launch h1{font-size:clamp(28px,4.6vw,48px);margin:15px 0 18px;letter-spacing:-.035em}.school-back{padding:6px 12px;background:transparent;border-color:#c6bc9e;color:#fff4da;min-height:38px}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-entry{display:block;text-align:left;border:2px solid #b69a69;background:#fff6df;padding:18px;box-shadow:2px 3px 0 #152e26}.game-entry strong,.game-entry span,.game-entry small{display:block}.game-entry strong{font:700 23px Notebook,sans-serif;margin-bottom:6px;color:#284b3c}.game-entry span{font-weight:400;font-size:16px;color:#382f23}.game-entry small{color:#7b3c26;margin-top:8px;font-size:14px}.game-entry:hover{background:#fff0c0}.game-entry:focus-visible,.school-back:focus-visible{outline:3px solid #f5ca62}#sound-button{gap:6px}#sound-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}#cup-home{max-width:1130px;margin:12px auto 28px}#school-home:has(#cup-home:not([hidden])) .school-launch{padding:9px 14px;display:flex;align-items:center;gap:16px;margin-bottom:0;max-width:1130px}#school-home:has(#cup-home:not([hidden])) .school-launch h1{font-size:24px;margin:0}#school-home:has(#cup-home:not([hidden])) #mode-menu{display:none}
@media(max-width:640px){.entry-grid{grid-template-columns:1fr}.game-entry{padding:13px}.game-entry strong{font-size:20px}.school-launch{margin-top:12px}.cover-controls{gap:5px}.cover-controls button{font-size:15px;padding:9px}#school-cover .school-poster{width:100%}.site-header nav{flex-wrap:wrap}}
#school-home [hidden]{display:none!important}.shelf-switch{background:transparent;color:#fff0bc;text-decoration:underline;text-underline-offset:3px;border:0;font-weight:700;padding:10px 0 0;margin-top:8px}.school-launch:not([hidden]){position:relative}.school-launch:not([hidden]):has(.entry-grid){background:linear-gradient(90deg,#153a30f5,#204234ed),url('./school-poster.webp') center 64% / cover}

#school-brand{max-width:11em;font-size:clamp(15px,1.45vw,21px);line-height:1.16}
.language-switch{display:inline-flex;align-items:stretch;flex:none;gap:2px;padding:3px;margin-left:auto;border:1px solid #9a815d;border-radius:10px;background:#f4e7c8}
.language-switch button{min-height:38px;padding:5px 13px;border-radius:7px;background:transparent;color:#3f432e;font-weight:700;font-size:15px}
.language-switch button[aria-pressed=true]{background:#284b3f;color:#fff9e6;box-shadow:0 1px 2px #39261532}
.language-switch button:focus-visible{outline:3px solid #a94729;outline-offset:1px}
:lang(ta) :is(h1,h2,h3,.game-entry strong,.brand,.primary-button,.game-name,.eyebrow){letter-spacing:normal}
html[lang=ta] :is(h1,h2,h3,.school-launch h1,.brand){line-height:1.45}
html[lang=en] .school-launch:not([hidden]):has(.entry-grid){background-image:linear-gradient(90deg,#153a30f5,#204234ed),url('./school-poster-en.webp')}
@media(max-width:820px){.site-header{flex-wrap:wrap;gap:8px;padding:10px 0}.site-header nav{flex:1 0 100%;justify-content:flex-end;flex-wrap:wrap}.language-switch button{min-height:40px}.site-header nav .outline-button{min-height:40px}}
@media(max-width:520px){#home-extras{gap:4px 18px}#school-brand{max-width:10em}.language-switch button{padding:5px 9px}.site-header{column-gap:4px}.site-header nav{justify-content:space-between}.site-header .rules-entry .rules-label{line-height:1.35}.school-launch h1{overflow-wrap:anywhere}html[lang=ta] .intro h1{font-size:clamp(26px,7vw,39px)}}
html[lang=en] .poster-play{left:34.7%;width:31.6%;top:64.9%;height:8%}
html[lang=en] .poster-learn{left:36.2%;width:28.7%;top:73.7%;height:6.6%}
html[lang=en] .poster-scores{left:36%;width:29.1%;top:81%;height:6.3%}
html[lang=en] .poster-memory{left:34.3%;width:31.6%;top:87.8%;height:7.2%}
.mode-example{padding:.7rem 1rem;border-left:3px solid #eac66c;margin:0 0 1rem;background:#122c2580;border-radius:0 6px 6px 0}.mode-example b{font-size:1.04rem;color:#ffe899}.mode-example p{font-size:1rem;line-height:1.55;margin:.18rem 0;color:#fff5dc}
