:root{--bg:#0c2019;--surface:#142c23;--surface2:#1c362a;--line:#31463a;--cream:#f2f0df;--muted:#9daf9e;--lime:#d3ed91;--lime-dark:#15251a;--danger:#ffae9d;--gold:#eac77d;--serif:Georgia,'Times New Roman',serif;--sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--cream);font:14px/1.55 var(--sans);min-height:100vh}body:has(dialog[open]){overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{transition:background .2s,transform .2s,border-color .2s}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12}h1{font-size:clamp(48px,5.4vw,83px);font-weight:500;letter-spacing:-3.7px}h1 em{font-family:var(--serif);font-weight:400;color:var(--lime)}h2{font-size:25px;font-weight:550;letter-spacing:-.8px}h3{font-size:15px;font-weight:600}fieldset{padding:0;border:0;min-width:0}legend{font-size:13px;font-weight:600;letter-spacing:.1px;margin-bottom:14px;padding:0}small{font-size:11px}input,select,textarea{background:#0f241b;border:1px solid var(--line);color:var(--cream);border-radius:9px;padding:11px 13px;max-width:100%;font-size:16px}textarea{width:100%;min-height:240px;resize:vertical;line-height:1.7}label{display:block;font-size:13px}label>input:not([type=checkbox]){display:block;width:100%;margin-top:6px}input[type=checkbox]{accent-color:var(--lime);width:17px;height:17px}select{min-width:100px}input::placeholder,textarea::placeholder{color:#92a28e}[hidden]{display:none!important}.wrap{width:min(1240px,calc(100% - 80px));margin:auto}.ambient{position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 0 38%,#22482d44,transparent 56%),radial-gradient(ellipse at 85% 4%,#44663416,transparent 55%)}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{text-decoration:none;display:flex;align-items:center;gap:0;font-size:22px;letter-spacing:-1px;font-weight:700}.brand>span:not(.brand-symbol){font-weight:400}.brand-symbol{font-size:35px;line-height:1;width:40px;height:40px;border-radius:12px;background:var(--lime);color:#102219;font-family:var(--serif);display:inline-flex;align-items:center;justify-content:center;margin-right:10px;font-style:italic}.brand-symbol span{font-size:22px;position:relative;top:1px;left:-1px}.brand i{font-size:9px;letter-spacing:2px;border-left:1px solid var(--line);padding-left:16px;margin-left:17px;font-style:normal;font-weight:500;color:var(--muted)}.header nav{display:flex;gap:10px}.icon-btn{background:transparent;border:1px solid #ffffff1c;border-radius:30px;padding:8px 13px;font-size:12px;color:#c6d3c5}.icon-btn:hover{background:#ffffff0a}.icon-btn span{margin-left:8px}.setup-grid{display:grid;grid-template-columns:1.14fr 1fr;gap:65px;padding:56px 0 42px;align-items:start}.hero>.eyebrow{margin:6px 0 25px}.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:9px}.live-dot{display:inline-block;background:var(--lime);width:6px;height:6px;box-shadow:0 0 14px #d3ed9144;border-radius:50%;flex-shrink:0}.hero-copy{color:#b9c8b6;font-size:16px;line-height:1.65;margin-top:24px}.hero-book-mount{height:365px;position:relative;display:flex;align-items:center;justify-content:center;margin-top:-7px}.hero-caption{display:flex;justify-content:space-between;color:#8a9e8c;gap:10px;padding-top:17px;border-top:1px solid var(--line);font-size:10px;letter-spacing:.5px}.hero-caption>span:first-child{letter-spacing:1.2px;font-size:9px}.setup-card{padding:30px;background:linear-gradient(130deg,#193227,#10271d);border:1px solid #354936;border-radius:20px;box-shadow:0 24px 60px #00000020}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading .eyebrow{margin-bottom:8px}.round-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #55644b;border-radius:50%;font-size:21px;color:var(--lime)}.field-group{margin:28px 0 0}.step{display:inline-grid;place-items:center;width:20px;height:20px;background:#314331;color:var(--lime);font-size:10px;border-radius:50%;margin-right:8px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode{border:1px solid #38513e;background:#10251c;border-radius:12px;position:relative;text-align:left;padding:17px 14px;min-height:110px}.mode strong{display:block;font-weight:600;font-size:13px;margin-top:6px}.mode small{color:#97ad9b;display:block;margin-top:3px;font-size:10px;white-space:nowrap}.mode-icon{font-size:23px;line-height:1;color:#b5cba5}.selected-check{display:none;position:absolute;right:12px;top:14px;border-radius:50%;background:var(--lime);color:#112019;width:16px;height:16px;text-align:center;font-size:10px;line-height:16px}.mode.active{border-color:#c5e287;background:#273e29;box-shadow:0 0 0 1px #c5e28719}.mode.active .selected-check{display:block}.mode:hover{background:#213a28}.roster-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}.segmented{display:flex;gap:3px;background:#0d2018;padding:3px;border:1px solid #314630;border-radius:9px}.segmented button{background:transparent;color:#a5b79f;font-size:12px;padding:7px 14px;border-radius:6px;flex:1}.segmented button.active{background:#344a32;color:#e6f0d8}.compact button{font-size:10px;padding:4px 10px}.submode{margin-top:12px}.team-pair{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:9px;align-items:center}.team-slot>.tiny{letter-spacing:1px;font-size:9px;display:block;margin-bottom:7px}.team-choice{display:flex;gap:9px;align-items:center;background:#0e221a;border:1px solid #36503c;border-radius:10px;width:100%;padding:13px 10px;text-align:left;min-height:65px}.team-choice:hover{border-color:#bedc9d}.team-choice strong{font-size:13px;font-weight:600;line-height:1.3;display:block}.team-choice small{color:#a4b499;font-size:9px}.team-choice .chev{margin-left:auto;color:#89a087;font-size:14px}.flag{display:inline-flex;justify-content:center;align-items:center;font-size:24px;line-height:1;width:34px;height:34px;flex-shrink:0}.flag.no-flag{font-size:10px;color:var(--cream);background:#53674645;border:1px solid #99b87a44;border-radius:50%;font-weight:700;letter-spacing:.4px}.versus{font-size:10px;font-weight:700;color:#86947e;text-align:center;align-self:center;position:relative;top:-8px}.text-btn{background:transparent;color:var(--lime);font-size:11px;padding:9px 0;letter-spacing:.15px}.text-btn:hover{text-decoration:underline}.team-slot .text-btn{font-size:10px;padding:8px 0}.roster-note{color:#94a58e;font-size:9px;line-height:1.6;margin-top:3px}.inline-btn{background:none;padding:0;font-size:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}.overs-buttons{display:flex;gap:8px}.overs-buttons>button{border:1px solid #37513a;background:#10241c;border-radius:8px;height:42px;flex:1;font-weight:600;min-width:0}.overs-buttons>button.active{background:var(--lime);color:#1c2b18;border-color:var(--lime)}.custom-overs{flex:1.3;min-width:0}.custom-overs input{padding:4px;text-align:center;margin:0!important;height:42px;min-width:0;font-size:12px;width:100%}.overs-foot{display:flex;justify-content:space-between;color:#a8b49e;font-size:9px;margin-top:12px}.overs-foot .inline-btn{color:#b8cb9e}.primary{border-radius:10px;background:var(--lime);color:var(--lime-dark);padding:15px 22px;font-weight:700;box-shadow:0 5px 18px #08190a25;font-size:14px}.primary:not(:disabled):hover{background:#e3f9b7;box-shadow:0 8px 30px #d3ed911a}.start-button{width:100%;display:flex;justify-content:space-between;margin-top:26px}.start-button span{font-size:21px;line-height:1}.setup-foot{font-size:9px;letter-spacing:.2px;color:#8da183;text-align:center;margin-top:12px}.secondary{border:1px solid #506143;background:#203426;border-radius:9px;padding:10px 16px;color:#e0e6d2;font-size:13px}.secondary:hover{background:#32482c}.full-width{width:100%;margin-top:8px}.muted{color:var(--muted)}.tiny{font-size:10px}.divider{height:1px;background:var(--line);margin:23px 0}.error{font-size:12px;padding:12px 14px;background:#77382844;border:1px solid #b1684777;border-radius:8px;color:#ffd0b7;margin-top:14px}.footer{border-top:1px solid #ffffff12;display:flex;justify-content:space-between;padding:22px 0 28px;color:#83987f;font-size:9px;gap:18px}.footer>span:last-child{letter-spacing:.7px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.centered{justify-content:center}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pill{display:inline-block;font-size:9px;letter-spacing:1px;border:1px solid var(--line);padding:5px 10px;border-radius:20px;color:#bad2a4}.match-top{display:flex;align-items:center;justify-content:space-between;margin:26px 0 18px;gap:15px}.match-badges{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.scoreboard{background:#142d23;border:1px solid var(--line);border-radius:15px;padding:24px 28px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}.batting-summary{display:flex;align-items:center;gap:14px}.team-crest{background:#253d2c;border:1px solid #4e6040;display:grid;place-items:center;width:58px;height:62px;border-radius:12px}.team-crest .flag{font-size:35px}.batting-summary h2{font-size:29px;margin:7px 0 3px}.batting-summary .eyebrow{font-size:9px}.main-score{text-align:center}.main-score strong{display:block;font-size:64px;font-weight:500;line-height:1;letter-spacing:-3px;font-variant-numeric:tabular-nums}.main-score strong>span{font-size:36px;color:#a5b59a;letter-spacing:-1px}.main-score>span{font-size:11px;color:#a8b59c;display:block;margin-top:10px}.opponent-summary{text-align:right;color:#a6b599;font-size:13px}.opponent-summary strong{font-size:19px;color:#e4ead9;display:block}.opponent-summary p{font-size:10px;margin-top:5px}.opponent-summary .flag{width:26px;font-size:22px;vertical-align:middle;margin-right:6px}.match-grid{display:grid;grid-template-columns:1fr 315px;gap:28px;padding:28px 0 36px}.play-column{min-width:0}.chase-bar{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#c7d6b8;padding:10px 14px;background:#263b281e;border:1px solid #3b4c3066;border-radius:10px;min-height:40px;text-align:center}.book-arena{height:350px;position:relative;isolation:isolate;margin-top:4px;display:flex;align-items:center;justify-content:center}.book-arena #gameBookMount{width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:2}.stadium-floor{position:absolute;bottom:-18px;width:min(96%,650px);height:180px;border:1px solid #688f3655;border-radius:50%;background:repeating-radial-gradient(ellipse at center,#315a2633 0 22px,#132d2011 23px 44px);transform:rotateX(58deg);box-shadow:0 0 50px #415d1915,inset 0 0 0 14px #152b1800,inset 0 0 0 17px #5c794922,inset 0 0 0 36px #10241600,inset 0 0 0 37px #51653833;z-index:-1}.floor-pitch{position:absolute;left:42%;top:30%;width:16%;height:40%;border:1px solid #b5ba5a20;background:#938b4622}.floodlight{position:absolute;top:10px;width:150px;height:290px;z-index:-1;background:linear-gradient(#e4f7b51a,#cad87800);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);filter:blur(7px)}.light-left{left:0;transform:rotate(-32deg)}.light-right{right:0;transform:rotate(32deg)}.play-controls{text-align:center;margin-top:9px}.turn-indicator{color:#dae5c8;font-size:12px;min-height:23px;margin-bottom:10px}.flip-button{min-width:270px;font-size:15px;padding:16px 28px;box-shadow:0 4px 0 #88a954,0 10px 25px #a4c43e13}.flip-button span{margin-left:28px;font-size:20px}.play-controls>p{margin-top:13px;font-size:9px}kbd{font:9px var(--sans);border:1px solid #43563d;border-radius:4px;padding:1px 5px;margin-left:3px;color:#b2c79d}.auto-control{display:flex;gap:8px;align-items:center;justify-content:center;font-size:10px;color:#9db58e;margin-top:12px}.rules-strip{margin:24px auto 0;display:flex;justify-content:center;gap:24px;color:#9aab8d;font-size:9px;letter-spacing:.5px}.rules-strip b{font-size:13px;color:#e1e6d0;margin-right:5px;font-weight:600}.live-card{border:1px solid var(--line);background:#132b20;border-radius:15px;padding:23px 21px;height:fit-content;min-height:555px}.batter{display:flex;align-items:center;gap:12px;padding:18px 0 0}.batter-avatar{display:grid;place-items:center;background:#31452d;color:#dcdfb6;width:35px;height:35px;border-radius:50%;font:italic 17px var(--serif);flex-shrink:0}.batter.is-striker .batter-avatar{background:var(--lime);color:#17311e}.batter-name{flex:1;min-width:0;line-height:1.4}.batter-name strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.batter-name small{color:#97a88d;font-size:9px}.batter-score{font-size:19px;color:#e4ebd1;white-space:nowrap}.batter-score small{font-size:11px;color:#8ea381;margin-left:4px}.ball-chips{display:flex;gap:9px;margin-top:20px;min-height:34px}.ball-chip{border-radius:50%;border:1px solid #41553a;color:#cfe5b3;width:31px;height:31px;display:grid;place-items:center;font-size:11px;flex-shrink:0}.ball-chip.boundary{color:#1f3323;background:var(--lime);border-color:var(--lime)}.ball-chip.wicket{background:#b2644d;color:white;border-color:#c88f73}.ball-chip.empty{border-style:dashed;color:#6b8165}.commentary{margin:17px 0 0;padding:0;list-style:none}.commentary li{padding:11px 0;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #2c4132;font-size:10px;color:#bdcbb1;line-height:1.55}.commentary .ball-number{color:#88a179;min-width:28px;padding-top:2px}.commentary li strong{color:#e4ecd6;font-weight:500}.commentary li:last-child{border-bottom:0}.result-word{position:absolute;top:10px;left:0;right:0;z-index:5;text-align:center;pointer-events:none;font-size:34px;font-family:var(--serif);font-style:italic;font-weight:700;color:var(--lime);text-shadow:0 2px 20px #00000066;opacity:0}.result-word.show{animation:word-pop 1.6s ease-out}.result-word.wicket-word{color:#f4b194}@keyframes word-pop{0%{opacity:0;transform:translateY(10px) scale(.8)}18%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-8px)}}
/* Layered 3D book. These are independent planes, not a flat background image. */
.book-scene{position:relative;width:455px;height:300px;perspective:1100px;flex-shrink:0;--rx:19deg;--ry:-12deg;--rz:-5deg;transform:translateY(0);animation:float-book 7s ease-in-out infinite}.book{position:absolute;left:9%;top:8%;width:82%;height:80%;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));transition:transform .3s}.book-cover{position:absolute;inset:-6px -8px -9px;background:#334333;border-radius:3px 9px 9px 4px;transform:translateZ(-16px);box-shadow:1px 3px 0 #0d2015,3px 5px 0 #15271a,0 18px 30px #0008;border:2px solid #708455}.page-block{position:absolute;inset:0 0 -6px;transform:translateZ(-7px);background:repeating-linear-gradient(0deg,#c6c1a1 0 1px,#eee6c8 2px 3px);border-radius:3px 6px 6px 3px;box-shadow:0 5px 0 #d0c7a5,0 7px 0 #eee3bf,0 9px 0 #bbb699;transform-style:preserve-3d}.book-pages{position:absolute;inset:0;transform-style:preserve-3d;display:flex;border-radius:3px 8px 8px 4px}.book-page{width:50%;height:100%;position:relative;color:#304431;padding:18px 17px 12px;background:#eee8d1;border:1px solid #d1c9a4;overflow:hidden}.page-left{background:linear-gradient(90deg,#e7e1cb,#f2ecd6 85%,#d2ceb8 97%,#aba88e);border-radius:4px 1px 1px 5px;transform-origin:right;transform:rotateY(4deg)}.page-right{background:linear-gradient(90deg,#bdbda6,#eae6cf 9%,#f4efd9 40%,#f1ead0);border-radius:1px 6px 9px 1px;transform-origin:left;transform:rotateY(-4deg)}.book-page:after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:repeating-linear-gradient(90deg,#aea88208 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,#88875c11 0 1px,transparent 1px 4px)}.book-spine{position:absolute;top:0;bottom:0;left:calc(50% - 2px);width:4px;background:#7e846b50;box-shadow:0 0 9px 3px #77866522;transform:translateZ(1px)}.paper-kicker{font-size:7px;letter-spacing:1.2px;color:#6f7658;border-bottom:1px solid #8c92754d;padding-bottom:8px;white-space:nowrap;text-align:center}.paper-title{font-family:var(--serif);font-size:34px;letter-spacing:-1.4px;line-height:.96;margin-top:13px;text-align:center}.paper-title em{font-weight:400}.paper-field{height:71px;width:101px;margin:12px auto 0;border:1px solid #82937299;border-radius:50%;position:relative;box-shadow:inset 0 0 0 6px #82937211,inset 0 0 0 7px #82937244;transform:rotate(-12deg)}.pitch{position:absolute;left:45%;top:28%;width:13%;height:44%;border:1px solid #72816277;background:#91975b30;display:flex;flex-direction:column;justify-content:space-between}.pitch i{width:160%;height:1px;background:#73856699;margin-left:-30%;position:relative;top:3px}.pitch i:last-child{top:-3px}.field-dot{position:absolute;width:4px;height:4px;border-radius:50%;background:#728863}.d1{top:19%;left:29%}.d2{top:65%;left:23%}.d3{top:36%;left:74%}.d4{top:77%;left:61%}.d5{top:15%;left:57%}.paper-team{text-align:center;font-size:6px;letter-spacing:.9px;color:#677958;margin-top:9px}.page-number{position:absolute;bottom:10px;font-size:9px;font-family:var(--serif);color:#75785f}.page-left .page-number{left:14px}.page-right .page-number{right:14px}.paper-result{font-size:105px;font-family:var(--serif);font-style:italic;font-weight:500;line-height:1.15;text-align:center;color:#354c32;margin-top:8px;letter-spacing:-8px;padding-right:8px;text-shadow:0 1px 0 #fff9}.paper-result.out{font-size:80px;color:#954f38;line-height:1.5;letter-spacing:-4px}.paper-run-label{font-size:7px;letter-spacing:1px;color:#4d6545;text-align:center;white-space:normal;min-height:15px}.paper-rule-line{width:36px;height:1px;background:#8b9b7199;margin:11px auto}.paper-mini{text-align:center;font-family:var(--serif);font-style:italic;color:#777b58;font-size:9px;line-height:1.3}.ribbon{position:absolute;top:-7px;left:22%;width:17px;height:36px;background:#a86548;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);transform:translateZ(2px);box-shadow:2px 2px 6px #0005}.book-shadow{position:absolute;left:9%;bottom:15px;width:88%;height:32px;background:#00000066;filter:blur(19px);border-radius:50%;transform:rotate(-8deg)}.turn-page{position:absolute;top:0;bottom:0;left:50%;width:50%;transform-origin:left;transform-style:preserve-3d;transform:rotateY(0deg) translateZ(3px);z-index:10;visibility:hidden}.turn-front,.turn-back{position:absolute;inset:0;border:1px solid #cec9a8;border-radius:1px 7px 7px 1px;backface-visibility:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,#cdcdb5,#f5efd9);color:#627750;font:italic 26px var(--serif);text-align:center;box-shadow:4px 0 16px #0003}.turn-back{transform:rotateY(180deg);background:linear-gradient(90deg,#ece6cf,#e2ddc4);border-radius:7px 1px 1px 7px}.flipping .turn-page{visibility:visible;animation:turn-paper .78s cubic-bezier(.38,.12,.28,.99) both}.flipping .book{filter:drop-shadow(0 4px 9px #15231433)}@keyframes turn-paper{0%{transform:rotateY(-2deg) translateZ(3px)}70%{transform:rotateY(-140deg) translateZ(3px)}100%{transform:rotateY(-179deg) translateZ(3px)}}@keyframes float-book{0%,100%{transform:translateY(-2px)}50%{transform:translateY(7px)}}
/* Dialogs, room lobby, squad management and match report. */
dialog{width:min(620px,calc(100% - 32px));border:1px solid #526349;background:#152b20;color:var(--cream);border-radius:20px;padding:26px;max-height:89dvh;box-shadow:0 35px 120px #0009}dialog::backdrop{background:#07140dde;backdrop-filter:blur(6px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px;align-items:flex-start}.dialog-heading .eyebrow{font-size:9px;margin-bottom:9px}.dialog-heading h2{font-size:29px}.close-btn{font-size:27px;background:#2c4030;color:#bfceb0;width:33px;height:33px;border-radius:50%;line-height:1}.dialog-copy{font-size:13px;color:#c5d0b7;line-height:1.8}.dialog-copy p+p{margin-top:13px}.dialog-copy h3{margin:22px 0 8px;color:#e7edd9}.dialog-copy a{color:var(--lime);word-break:break-word}.dialog-actions{display:flex;justify-content:center;gap:10px;margin-top:23px;flex-wrap:wrap}.dialog-actions>*{flex:1}.team-search{width:100%;margin-bottom:13px}.search-tabs{margin-bottom:13px}.team-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:48dvh;overflow:auto;padding:3px 4px 3px 0}.team-list .team-choice{min-height:64px;gap:9px}.team-list .team-choice strong{font-size:12px}.team-list .team-choice small{font-size:9px}.team-list .team-choice .flag{width:29px;font-size:23px}.empty-state{padding:20px;color:#b4c3a5;grid-column:1/-1;font-size:13px}.squad-roster{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.player-option{display:flex;align-items:center;gap:9px;border:1px solid #3c553d;background:#12261c;padding:9px;border-radius:8px;text-align:left;font-size:11px;min-height:47px;line-height:1.35}.player-option .number{width:23px;height:23px;flex-shrink:0;display:grid;place-items:center;background:#293c29;color:#8da17e;border-radius:50%;font-size:9px}.player-option.chosen{border-color:#9bb879;background:#273e28;color:#e8efd6}.player-option.chosen .number{background:var(--lime);color:#1a311e}.squad-count{margin-top:12px;font-size:12px;color:var(--lime)}.squad-order{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.squad-order-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #30453177;font-size:11px}.squad-order-row>span{flex:1}.squad-order-row>small{width:16px;color:#a3b38d}.mini-btn{background:#30452e;font-size:12px;border-radius:5px;width:26px;height:25px}.stats-table{width:100%;border-collapse:collapse;font-size:12px}.stats-table td,.stats-table th{padding:9px 6px;text-align:right;border-bottom:1px solid #344931}.stats-table td:first-child,.stats-table th:first-child{text-align:left}.stats-table th{color:#a9b99a;font-size:10px;font-weight:500}.stats-table td:first-child{max-width:250px}.stats-table tfoot{font-weight:bold}.score-section{margin-top:25px}.score-section h3{color:var(--lime);margin:0 0 12px}.score-section>p{font-size:12px;color:#aab69c;margin-top:10px}.coin-wrap{height:150px;display:grid;place-items:center;perspective:600px}.coin{width:96px;height:96px;background:radial-gradient(circle at 36% 30%,#fff4b8,#c4a34e);border:5px double #b99a40;border-radius:50%;box-shadow:0 4px 0 #8f763b,0 18px 30px #0004;display:grid;place-items:center;font:italic bold 43px var(--serif);color:#7e692e;animation:toss-coin 1.3s ease-out}.coin small{font:10px var(--sans);letter-spacing:1px}@keyframes toss-coin{0%{transform:translateY(30px) rotateY(0deg)}40%{transform:translateY(-35px) rotateY(600deg)}100%{transform:translateY(0) rotateY(1080deg)}}.center{text-align:center}.big-number{font:italic 76px var(--serif);color:var(--lime);line-height:1.15;margin:18px 0}.result-matchup{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;background:#0f221a;border:1px solid var(--line);border-radius:12px;padding:20px 12px;text-align:center;margin-top:20px}.result-matchup strong{display:block;font-size:25px;color:#e7e9d8;margin:5px 0}.result-matchup small{font-size:10px;color:#a0b18e}.result-matchup .name{font-size:13px}.cup-scene{height:135px;perspective:500px;display:flex;align-items:center;justify-content:center}.cup{position:relative;width:72px;height:64px;margin-top:-24px;transform:rotateY(-14deg);transform-style:preserve-3d;background:linear-gradient(100deg,#b08a3c,#fae1a0 48%,#c79f4f);border-radius:7px 7px 30px 30px;box-shadow:inset 3px 0 7px #ffe9a377,4px 3px 0 #8c702d,0 12px 26px #0004;z-index:0}.cup:before,.cup:after{content:'';position:absolute;top:5px;width:25px;height:40px;border:7px solid #d3ad58;border-radius:9px 9px 20px 20px;z-index:-1}.cup:before{left:-23px;border-right:0}.cup:after{right:-23px;border-left:0}.cup .star{position:absolute;left:24px;top:15px;font-size:22px;color:#fff3bb;text-shadow:1px 2px 0 #8b7038}.cup .stem{position:absolute;top:60px;left:30px;width:15px;height:22px;background:linear-gradient(90deg,#a88438,#edd287,#a88438)}.cup .base{position:absolute;top:80px;left:13px;width:50px;height:9px;border-radius:50% 50% 3px 3px;background:#d8b166;box-shadow:0 7px 0 #2f3928,0 10px 0 #a28a4d}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:100;border:1px solid #768c55;background:#263b25;color:#e4eed3;padding:12px 22px;border-radius:12px;font-size:12px;box-shadow:0 6px 35px #0006;max-width:90vw;text-align:center}.lobby{text-align:center;max-width:650px;margin:50px auto 75px}.lobby>.eyebrow{justify-content:center;margin-bottom:22px}.lobby h1{font-size:58px;margin-bottom:20px}.room-code{font-size:55px;letter-spacing:10px;padding-left:10px;font-weight:500;font-variant-numeric:tabular-nums;margin:24px 0 17px;color:var(--lime)}.lobby-players{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0 16px}.lobby-player{border:1px solid #4e613f;border-radius:16px;background:#142d21;padding:22px 15px}.lobby-player .flag{font-size:35px;width:50px;height:50px;margin-bottom:11px}.lobby-player strong{display:block;margin-bottom:5px;font-size:17px}.lobby-player>small{color:#afc195}.lobby-player>p{font-size:11px;color:#91ad7a;margin-top:13px}.lobby #beginOnline{margin-top:24px;min-width:260px}#aliasLabel{margin-top:12px}#confetti{position:fixed;inset:0;pointer-events:none;z-index:999;width:100%;height:100%}.no-motion *, .no-motion *:before,.no-motion *:after{animation:none!important;transition:none!important}.no-motion .book{transform:rotateX(12deg) rotateY(-8deg) rotateZ(-3deg)}.no-motion .turn-page{display:none}.no-motion .result-word.show{opacity:1}.no-motion .book-scene{animation:none}#onlineNotice{margin-top:8px}.help-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:20px 0}.help-grid>div{background:#2a4028;border-radius:8px;padding:10px 4px;text-align:center;font-size:9px;color:#b6cda0}.help-grid strong{font:italic 31px var(--serif);display:block;color:var(--lime)}.file-label{display:inline-block;margin-top:15px;color:#c8dfa5;text-decoration:underline;font-size:12px;cursor:pointer}.form-stack>*+*{margin-top:17px}.count-badge{border-radius:20px;padding:3px 8px;background:#30482b;font-size:10px;color:#d2e7b9;white-space:nowrap}.dialog-footer-note{margin-top:15px;font-size:10px;color:#96aa88}
@media(min-width:1450px){.setup-grid{gap:85px}.hero-book-mount{height:400px}.hero .book-scene{transform:scale(1.08)}}
@media(max-width:1100px){.wrap{width:calc(100% - 48px)}.setup-grid{gap:35px}.setup-card{padding:24px}.hero-book-mount{height:340px}.hero .book-scene{width:390px;height:275px}.hero .paper-title{font-size:29px}.hero .paper-field{height:57px;width:87px}.hero .paper-result{font-size:91px}.hero .paper-kicker{font-size:6px}.hero .paper-team{font-size:5px}.hero-caption{font-size:8px}.match-grid{grid-template-columns:1fr 280px}.book-arena .book-scene{width:425px;height:290px}.mode small{font-size:9px}}
@media(max-width:850px){.setup-grid{grid-template-columns:1fr;gap:28px;padding-top:34px}.hero{text-align:center}.hero>.eyebrow{justify-content:center;margin-bottom:20px}.hero h1{font-size:65px;letter-spacing:-2.8px}.hero-copy{font-size:14px;margin-top:16px}.hero-book-mount{height:268px;margin-top:6px}.hero .book-scene{width:365px;height:260px}.hero-caption{display:none}.setup-card{width:min(540px,100%);margin:0 auto}.hero .paper-field{height:48px;width:77px;margin-top:9px}.hero .paper-title{font-size:27px}.hero .paper-result{font-size:82px}.hero .paper-kicker{font-size:5px}.hero .book-page{padding:15px 12px}.header{height:80px}.brand i{display:none}.match-grid{grid-template-columns:1fr 255px;gap:18px}.live-card{padding:20px 16px}.book-arena{height:300px}.book-arena .book-scene{width:370px;height:265px}.book-arena .paper-field{height:48px;width:76px}.book-arena .paper-result{font-size:85px}.book-arena .paper-title{font-size:28px}.book-arena .paper-kicker{font-size:5px}.book-arena .paper-team{font-size:5px}.book-arena .book-page{padding:15px 12px}.rules-strip{gap:15px}.scoreboard{padding:22px 20px}.batting-summary h2{font-size:23px}.main-score strong{font-size:53px}.team-crest{width:47px;height:53px}.opponent-summary strong{font-size:16px}.main-score strong>span{font-size:30px}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.header{height:73px}.brand{font-size:19px}.brand-symbol{width:31px;height:33px;font-size:30px;border-radius:9px;margin-right:7px}.brand-symbol span{font-size:18px}.header nav{gap:5px}.icon-btn{font-size:10px;padding:7px 9px}.icon-btn span{display:none}#helpBtn{font-size:0;padding:4px;width:28px;height:28px;position:relative}#helpBtn:before{content:'?';font-size:14px;position:absolute;inset:0;display:grid;place-items:center}.hero h1{font-size:54px;line-height:1.07;letter-spacing:-2px}.hero>.eyebrow{font-size:8px;letter-spacing:1.1px;margin-top:0;margin-bottom:20px}.setup-grid{padding-top:32px;gap:21px}.hero-copy{margin-top:17px;font-size:13px}.hero-copy br{display:none}.hero-book-mount{height:240px;margin-top:12px}.hero .book-scene{width:340px;height:242px}.hero .paper-result{font-size:75px}.hero .paper-title{font-size:25px}.hero .paper-field{height:45px;width:74px;margin-top:7px}.hero .paper-team{font-size:5px;letter-spacing:.5px}.hero .paper-kicker{padding-bottom:6px}.hero .paper-mini{font-size:8px}.hero .paper-run-label{font-size:6px}.hero .paper-rule-line{margin:8px auto}.setup-card{padding:24px 20px;border-radius:16px}.section-heading h2{font-size:23px}.field-group{margin-top:26px}.mode{padding:15px 11px;min-height:108px}.mode strong{font-size:12px}.mode small{font-size:9px}.mode-grid{gap:9px}.roster-bar>.tiny{font-size:8px}.team-choice{padding:12px 8px;gap:6px}.team-choice .flag{width:25px;font-size:21px}.team-choice strong{font-size:11px}.team-choice .chev{font-size:10px}.team-pair{grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);gap:5px}.team-choice small{font-size:8px}.team-slot .text-btn{font-size:9px}.team-slot>.tiny{font-size:8px}.overs-buttons{gap:6px}.overs-buttons>button{height:40px;font-size:13px}.custom-overs input{height:40px;font-size:11px}.overs-foot{font-size:8px;gap:8px}.footer{font-size:8px;padding-top:18px;flex-wrap:wrap;justify-content:center;gap:10px 18px}.footer>span:last-child{width:100%;text-align:center}.match-top{flex-wrap:wrap;margin:15px 0;gap:5px}.match-top>.text-btn{font-size:10px}.match-badges{order:3;width:100%;gap:6px;margin-top:5px}.pill{font-size:8px;padding:4px 8px}.scoreboard{padding:19px 15px;gap:10px;grid-template-columns:1fr auto}.batting-summary{gap:9px}.batting-summary h2{font-size:23px;overflow-wrap:anywhere;max-width:175px}.team-crest{width:41px;height:48px;flex-shrink:0}.team-crest .flag{font-size:28px}.batting-summary .eyebrow{font-size:7px;letter-spacing:1px}.batting-summary .tiny{font-size:8px}.main-score strong{font-size:46px;letter-spacing:-2px}.main-score strong>span{font-size:26px}.main-score>span{font-size:9px;margin-top:7px}.opponent-summary{grid-column:1/-1;text-align:center;padding-top:12px;border-top:1px solid #334735;font-size:10px;display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}.opponent-summary strong{font-size:12px;display:inline}.opponent-summary p{font-size:9px;margin:0}.opponent-summary .flag{font-size:15px;width:18px;height:20px;margin:0}.match-grid{grid-template-columns:1fr;gap:25px;padding-top:16px}.chase-bar{font-size:10px;padding:9px 8px;gap:7px}.book-arena{height:280px;margin-top:3px}.book-arena .book-scene{width:350px;height:247px}.book-arena .book-page{padding:13px 11px}.book-arena .paper-result{font-size:77px}.book-arena .paper-title{font-size:25px}.book-arena .paper-field{height:46px;width:74px}.book-arena .paper-run-label{font-size:6px}.book-arena .paper-mini{font-size:8px}.book-arena .paper-team{font-size:5px;letter-spacing:.5px}.book-arena .paper-kicker{padding-bottom:6px}.book-arena .paper-rule-line{margin:8px auto}.result-word{font-size:30px;top:5px}.stadium-floor{bottom:-12px;height:145px;width:100%}.play-controls{margin-top:0}.turn-indicator{font-size:11px}.flip-button{width:min(320px,100%);padding:15px 18px;font-size:14px;min-width:0}.rules-strip{font-size:8px;gap:18px;margin-top:22px}.rules-strip b{font-size:11px;margin-right:3px}.live-card{min-height:0;padding:22px}.ball-chips{justify-content:space-between;margin-top:17px}.ball-chip{width:37px;height:37px;font-size:13px}.commentary li{font-size:11px}.live-card .divider{margin:20px 0}.book-scene .paper-result.out{font-size:65px;line-height:1.3}.lobby{margin-top:40px}.lobby h1{font-size:45px;letter-spacing:-2px}.room-code{font-size:42px;letter-spacing:7px}.lobby-players{gap:10px}.lobby-player{padding:17px 10px}.lobby-player strong{font-size:14px}.lobby-player small{font-size:10px}dialog{padding:22px 18px;border-radius:15px;max-height:91dvh}.dialog-heading h2{font-size:25px}.dialog-heading{margin-bottom:19px}.team-list{gap:7px;grid-template-columns:1fr 1fr}.team-list .team-choice{padding:9px 7px}.team-list .team-choice strong{font-size:11px}.team-list .team-choice .flag{width:24px;font-size:20px}.squad-roster{gap:6px}.player-option{font-size:10px;padding:8px 6px;gap:6px}.player-option .number{width:19px;height:19px}.stats-table{font-size:10px}.stats-table td,.stats-table th{padding:8px 3px}.stats-table td:first-child{max-width:160px}.dialog-actions{gap:8px}.dialog-actions .primary,.dialog-actions .secondary{padding:12px 15px;font-size:12px}.big-number{font-size:65px}.dialog-copy{font-size:12px}.toast{font-size:11px;bottom:16px}}
@media(max-width:365px){.hero .book-scene{width:307px;height:225px}.book-arena .book-scene{width:310px;height:230px}.paper-team{display:none}.hero h1{font-size:48px}.mode small{font-size:8px}.setup-card{padding:20px 15px}.hero .paper-title{font-size:23px}.hero .paper-result{font-size:68px}.book-arena .paper-title{font-size:23px}.book-arena .paper-result{font-size:69px}.book-arena .paper-run-label{font-size:5px}.roster-bar>.tiny{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.turn-page{display:none}.result-word.show{opacity:1}}

.clubhouse-link{text-decoration:none;display:inline-flex;align-items:center}.header nav{flex-wrap:wrap}@media(max-width:600px){.header{flex-wrap:wrap;gap:14px}.header nav{width:100%;justify-content:flex-start;gap:6px}.header nav .icon-btn{font-size:14px;padding:8px}}

/* Book Cricket's own mark and wordmark, sized for both desktop and mobile. */
.header{height:auto;min-height:100px;padding-block:16px;gap:18px}
.header .book-cricket-brand{gap:12px;flex-shrink:0;letter-spacing:-.7px;line-height:1.1}
.book-cricket-logo{display:block;width:60px;height:60px;object-fit:contain;flex-shrink:0}
.book-cricket-wordmark{font-size:30px;white-space:nowrap}
.book-cricket-wordmark strong{font-weight:750;color:var(--cream)}
.book-cricket-wordmark em{font-family:var(--serif);font-weight:600;color:var(--lime)}
@media(max-width:850px){.header{min-height:88px;padding-block:14px}.book-cricket-logo{width:52px;height:52px}.book-cricket-wordmark{font-size:27px}}
@media(max-width:760px){.header{flex-wrap:wrap;gap:14px}.header nav{width:100%;justify-content:flex-start;gap:6px}.header .book-cricket-brand{gap:10px}.book-cricket-logo{width:48px;height:48px}.book-cricket-wordmark{font-size:27px}}
