@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900;1000&family=Nunito+Sans:wght@400;600;700;800&display=swap');
:root{--bg:#0c1029;--panel:#1b233e;--panel2:#25324b;--text:#faf9ff;--muted:#c7c9de;--line:#43516e;--accent:#ffac43;--blue:#8cdedb;--danger:#ff9da9}
body{background:radial-gradient(ellipse at 75% 12%,#37205e50,transparent 43%),radial-gradient(ellipse at 25% 70%,#20265635,transparent 45%),var(--bg);font-family:'Nunito Sans',system-ui,sans-serif}
h1,h2,h3,button,.brand,.mg-brand{font-family:Nunito,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:1000}h1,h2,h3{letter-spacing:-.5px}
.mg-header{max-width:1080px;margin:auto;padding:16px 28px;min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #78719d35}
.mg-brand{display:flex;align-items:center;gap:9px;font-size:26px;letter-spacing:-.9px;line-height:1;color:#faf9ff;text-decoration:none}.mg-brand img{width:48px;height:46px;object-fit:contain}.mg-brand span span{color:#ff8c17}.mg-brand:hover{text-decoration:none}
.mg-back{font:800 13px Nunito,system-ui,sans-serif;color:#e2d9f3;border:1px solid #5b477c;padding:9px 12px;border-radius:12px;white-space:nowrap}.mg-back:hover{border-color:#ffac43;color:#ffbd6f;text-decoration:none}
.site-header{max-width:1080px;padding:18px 28px;flex-wrap:wrap}.site-header .brand{font-size:18px;letter-spacing:-.4px;line-height:1.3}.header-actions{gap:10px}.online-badge i{background:#65dcc1}.online-badge b{color:#8ce6cf}.icon-button{border-color:#59617e;background:#20243d}
main{margin-top:26px}#home{gap:35px 40px;grid-template-columns:minmax(0,1fr) minmax(0,440px)}
.hero{padding:0;overflow:hidden;border:1px solid #26717c;border-radius:25px;background:linear-gradient(140deg,#153c48,#1b233e 75%);box-shadow:0 16px 44px #03051850;align-self:start}
.bulls-art{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;object-position:center;mask-image:linear-gradient(#000 82%,transparent)}
.hero-copy{padding:0 25px 26px}.hero h1{font-size:clamp(30px,3.5vw,43px);letter-spacing:-1px;line-height:1.12;margin:4px 0 12px}.hero p{font-size:14px;line-height:1.6;margin:6px 0;color:#d2dbee}.hero .hero-tagline{font-size:20px;font-weight:800;color:#ffb85c}.example{margin-top:25px;gap:8px}.example>span{background:#fff0ce;border:1px solid #ffc274;color:#18505c;box-shadow:0 3px 0 #b7804833;font-family:Nunito,system-ui,sans-serif;font-size:29px;font-weight:1000;border-radius:10px}.example b{color:#ffbc63}.example small{color:#97e6e1}
.panel{background:linear-gradient(140deg,#26354c,#1b203c);border:1px solid #485574;border-radius:23px;box-shadow:0 12px 30px #03051835}.play-panel{padding:27px}.eyebrow{color:#ffbc63;letter-spacing:1.4px}.section-heading h2{font-size:29px;line-height:1.2;margin-top:8px}label{color:#e2ddef;font-size:13px}
input,select{background:#131b32;border-color:#59617e;border-radius:12px;min-height:48px}input:focus,select:focus{border-color:#ffad46}.segmented button{border:1px solid #4b5872;border-radius:13px;color:#eff2ff;background:#25304a;font-size:23px}.segmented .selected{border-color:#ffae45;background:#4b3631;color:#ffca82;box-shadow:inset 0 0 0 1px #ffae4525}.segmented small{font-size:12px}.queue-count{color:#c4cbdf}
.primary{background:linear-gradient(180deg,#ff9a19,#ff7408);border:1px solid #ffb146;box-shadow:inset 0 1px 1px #ffdb8060,0 6px 18px #ff780018;color:white;text-shadow:0 1px 1px #bf580055;border-radius:15px;font-size:16px;min-height:52px}.primary:hover:not(:disabled){filter:brightness(1.08)}.secondary{background:#292742;border:1px solid #6b5c8c;color:#f7f0ff;border-radius:14px;font-size:14px;min-height:49px}.back-button{background:#31435c;border:2px solid #88cfdd;color:#edfdff;border-radius:13px}.install-button{background:linear-gradient(115deg,#213d49,#292742);border:1px solid #6ba0a7;color:#d9ffff;border-radius:15px;min-height:54px}.install-icon{background:#86dbd81a;border-radius:11px}.install-arrow{color:#ffbc63}
.how h2{font-size:30px}.how-icon{border-radius:13px;background:#223f48;color:#99e9db}.how-icon.bull{color:#ffc272}.how p{color:#c7c9de}.how-grid article{border-color:#43516e}.local-stats h2{font-size:25px}.local-stats strong{font-family:Nunito,system-ui,sans-serif}
.keypad button{background:#27344d;color:#fff5e6;border:1px solid #576580;border-radius:13px;font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:25px;min-height:54px}.keypad button:hover:not(:disabled){background:#3b4d64;border-color:#ffc272}.digit{background:#131c32;border:2px solid #526580;border-radius:13px;color:#fff0d2;font-family:Nunito,system-ui,sans-serif;font-weight:1000}.digit.active{border-color:#ffb146;box-shadow:0 0 0 3px #ffae4520}.timer{border-color:#667289;background:#17233a}.timer span{color:#ffc272}.time-track{background:#111a2d}.time-track>div{background:linear-gradient(90deg,#ff8c17,#ffd07b)}.turn-header h2{font-size:26px}.notebook{background:#1b263e}.revealed-number>span{background:#fff0ce;color:#17515b}.result h1{font-size:36px}.result-numbers{margin-block:24px}.leave-button{background:#552638;color:#ffe7ed;border-color:#fa90a4;border-radius:13px}.text-button{color:#a9ddd9}.history li b{color:#ffc272}.room-code{color:#ffc272}.orbit{border-color:#57828b}.orbit span{color:#ffd08a}
dialog{background:linear-gradient(145deg,#2e2845,#141c32);border-color:#77608e;border-radius:24px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#05081dbb;backdrop-filter:blur(7px)}dialog .dialog-close.back-button{background:#31435c;color:#edfdff;font-size:14px}.ad-placeholder{border-color:#414360;background:#181d3440}.ad-placeholder-content{color:#a7acc5}.content-page{padding:28px}.content-page>a{color:#ffd08a}.content-page h1{font-size:34px}.content-page h2{margin-top:30px}footer{border-color:#39355e}footer>span{font-family:Nunito,system-ui,sans-serif;font-size:15px;font-weight:900;letter-spacing:0}
body.light{--bg:#f5f1eb;--panel:#fffaf4;--panel2:#e8eff0;--text:#20283c;--muted:#556077;--line:#bfcbd0;--accent:#a95108;--blue:#246875;--danger:#a52d49;background:#f5f1eb}.light .mg-brand{color:#22263d}.light .mg-back{color:#55516d}.light .panel{background:linear-gradient(140deg,#fffaf4,#edf3f2);border-color:#bfcbd0}.light label{color:#343f54}.light input,.light select,.light .digit{background:#fff;color:#20283c;border-color:#9aabb9}.light .segmented button,.light .keypad button,.light .icon-button{background:#e6eff0;color:#224454;border-color:#a4b8c0}.light .segmented .selected{background:#fff0d9;color:#884414;border-color:#b86a21}.light .queue-count,.light .how p{color:#556077}.light .eyebrow{color:#9a5013}.light .notebook{background:#f6f5ec}.light .online-badge b{color:#16705f}.light .timer{background:#fff0d9;border-color:#bb9a6c}.light .timer span{color:#884414}.light .text-button{color:#246875}.light .ad-placeholder{background:#eee8df}.light .ad-placeholder-content{color:#62657c}.light dialog{background:#fffaf4;color:#20283c}.light .revealed-number>span{background:#ffe4ad}.light .how-icon{background:#d5e9e8;color:#246875}
@media(max-width:850px){#home{grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:28px 24px}.hero-copy{padding:0 20px 22px}.hero h1{font-size:34px}.example>span{width:40px;height:49px}.example>div{padding-left:3px}.play-panel{padding:23px}}
@media(max-width:700px){.mg-header{padding:12px 18px;min-height:72px}.mg-brand{font-size:22px;gap:6px}.mg-brand img{width:40px;height:40px}.mg-back{font-size:12px;padding:8px 10px}.site-header{padding:16px 18px;gap:12px}.site-header .brand{font-size:18px}.header-actions{justify-content:flex-start;width:100%;gap:10px}#home{grid-template-columns:1fr;gap:23px}main{margin-top:16px}.hero{padding:0;border-radius:22px}.bulls-art{aspect-ratio:1.8;object-position:center 45%}.hero-copy{padding:0 21px 23px}.hero h1{font-size:36px;margin-top:2px;letter-spacing:-.8px}.hero .hero-tagline{font-size:19px}.hero p{font-size:14px}.example{margin-top:18px}.example>span{width:40px;height:46px;font-size:26px}.hero .example>div{padding-left:12px}.how h2{font-size:27px}.turn-header h2{font-size:22px}.game-heading{gap:13px}.game-panel{padding:20px 16px}.keypad button{min-height:52px}.result h1{font-size:32px}.in-match .mg-header{min-height:60px;padding-block:8px}.in-match .site-header{padding-block:12px}.in-match main{margin-top:8px}.content-page{padding:20px 16px}.content-page h1{font-size:30px}}
@media(max-width:360px){.mg-brand{font-size:18px;gap:4px}.mg-brand img{width:32px;height:34px}.mg-back{font-size:10px;padding:8px}.hero h1{font-size:31px}.play-panel{padding:20px}.primary{font-size:15px}.mode-pair .secondary{font-size:13px;padding-inline:8px}}
.digit.chosen{border-color:#ffb146;box-shadow:0 0 0 3px #ffae4520}.keypad button.used{color:#8f99b3;background:#182038}.light .digit.chosen{border-color:#b86a21}.light .keypad button.used{color:#829299;background:#dae2e3}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* A dedicated, thumb-sized delete action beneath the number. */
.erase-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:12px 0 16px;padding:10px 18px;border:1px solid #e7ad6b;border-radius:13px;background:#49372f;color:#ffe3bd;font-size:16px;font-weight:900}.erase-button:hover:not(:disabled){background:#604535;border-color:#ffd092}.erase-button:disabled{opacity:.45}.light .erase-button{background:#fff0d9;color:#7d4014;border-color:#b86a21}

/* Personal notebook marks follow their digits while guessing. */
.keypad button.note-no,.digit.note-no{color:#ffc2cb;background:#572b3e;border-color:#ff8ba0;text-decoration:line-through;text-decoration-thickness:2px}
.keypad button.note-yes,.digit.note-yes{color:#b8f7d9;background:#183f36;border-color:#74dfae}
.keypad button.note-no:hover:not(:disabled){background:#6c3348}.keypad button.note-yes:hover:not(:disabled){background:#225344}
.light .keypad button.note-no,.light .digit.note-no{color:#9a1938;background:#ffe1e7;border-color:#b52f4e}
.light .keypad button.note-yes,.light .digit.note-yes{color:#135a3d;background:#d4f4e3;border-color:#287b56}

.keypad button.used.note-no:not(:disabled),.keypad button.used.note-yes:not(:disabled){opacity:1}
#notes button.yes{color:#b8f7d9;background:#183f36;border-color:#74dfae}.light #notes button.yes{color:#135a3d;background:#d4f4e3;border-color:#287b56}
