@charset "UTF-8";
:root{--bg:#15251f;--surface:#1d3028;--surface-high:#263d32;--ink:#f6f6ed;--muted:#b0bdb3;--line:#3a4b40;--lime:#dded91;--orange:#f18a62;--red:#bd3e3b;--card:#fbf7eb;--dark:#193127;--radius:1rem;color-scheme:dark;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}button,input,a{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:4px}button{transition:background .18s,transform .18s,border-color .18s}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.app-shell{max-width:1440px;margin:auto;padding:0 56px}.topbar{height:106px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;font-weight:800;font-size:21px;letter-spacing:2px}.brand-symbol{font-size:45px;line-height:1;color:var(--lime);font-family:Georgia,serif}.brand small{display:block;font-size:10px;letter-spacing:2.3px;font-weight:500;margin-top:5px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:12px}.phone-note{font-size:14px;letter-spacing:1px;margin-right:16px;color:var(--muted)}.icon-button{width:44px;height:44px;background:transparent;border:1px solid var(--line);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:20px}.icon-button:hover{background:var(--surface-high)}.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.game-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:60px;padding:48px 0 44px}.eyebrow{font-size:10px;color:var(--muted);letter-spacing:1.5px;display:flex;gap:8px;align-items:center}.tiny-star{font-size:20px;color:var(--orange)}h1{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-weight:600;font-size:64px;letter-spacing:1px;line-height:1.26;margin:23px 0 22px}.accent-word{color:var(--lime);position:relative;white-space:nowrap}.accent-word svg{position:absolute;width:95%;left:0;bottom:-16px;fill:none;stroke:var(--orange);stroke-linecap:round;stroke-width:2}.intro{font-size:15px;line-height:1.9;color:var(--muted)}.mode-section{margin-top:36px}.section-label{font-size:14px;font-weight:600;letter-spacing:1px;display:flex;align-items:center;gap:10px}.section-label>span{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:400}.mode-list{display:grid;gap:8px;margin-top:16px}.mode-option{width:100%;text-align:left;border:1px solid var(--line);background:transparent;border-radius:10px;display:flex;gap:14px;align-items:center;padding:13px 16px;min-height:77px}.mode-option:hover:not(:disabled){border-color:var(--muted);background:var(--surface)}.mode-option[aria-pressed=true]{background:var(--lime);border-color:var(--lime);color:var(--dark)}.mode-icon{font-size:34px;font-family:Georgia,serif;width:31px;text-align:center;line-height:1}.number-icon{font-size:32px;font-style:italic}.red-suit{color:var(--orange)}.mode-option[aria-pressed=true] .red-suit{color:var(--red)}.mode-option strong{font-size:16px;display:block;font-weight:700}.mode-option small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.mode-option[aria-pressed=true] small{color:#4c5d3d}.mode-check{margin-left:auto;visibility:hidden;font-size:17px}.mode-option[aria-pressed=true] .mode-check{visibility:visible}.mode-option:disabled:not([aria-pressed=true]){opacity:.5}.mode-lock{font-size:12px;color:var(--muted);margin-top:9px}.players-section{margin-top:32px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.section-heading .section-label>span{font-size:13px;letter-spacing:0}.text-button{background:none;border:0;padding:5px 0;color:var(--lime);font-size:13px;white-space:nowrap}.text-button:hover{text-decoration:underline}.text-button>span{font-size:18px;vertical-align:-1px}.player-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.player-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;background:var(--surface-high);border:1px solid var(--line);border-radius:5px;font-size:13px;max-width:100%;overflow-wrap:anywhere}.player-chip::before{content:'♣';color:var(--muted);font-family:Georgia,serif;font-size:15px}.muted-small{color:var(--muted);font-size:12px;margin-top:12px;line-height:1.7}.sidebar-foot{display:flex;align-items:center;gap:16px;margin-top:32px;border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--muted)}.foot-suits{font-family:Georgia,serif;letter-spacing:4px;font-size:19px;color:var(--ink);white-space:nowrap}.foot-suits i{color:var(--orange);font-style:normal}.table{background:var(--surface);border:1px solid var(--line);border-radius:20px;position:relative;min-height:650px;display:flex;flex-direction:column;overflow:hidden}.table::before{content:'';position:absolute;inset:7px;border:1px solid #34473a;border-radius:14px;pointer-events:none}.table-top{display:flex;justify-content:space-between;align-items:center;margin:30px 34px 0;position:relative}.table-kicker{font-size:10px;letter-spacing:2px;color:var(--muted);display:block}.table-top h2{font-size:21px;font-weight:500;letter-spacing:2px;margin-top:9px}.round-badge{font-size:12px;letter-spacing:1px;padding:8px 12px;border:1px solid #51654f;border-radius:5px;color:var(--lime)}.lobby{display:flex;flex:1;flex-direction:column;align-items:center;text-align:center;padding:30px 24px 24px}.hero-cards{position:relative;width:330px;height:290px;margin:0 auto 22px}.hero-card{position:absolute;top:20px;width:145px;height:208px;border-radius:10px;box-shadow:0 12px 15px #091a1530}.hero-back{left:39px;top:43px;transform:rotate(-17deg);background:var(--orange);color:#6d2e20;border:5px solid var(--orange);outline:1px solid #773b28;outline-offset:-11px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px}.hero-back::before{content:'';position:absolute;inset:12px;border:1px solid #6e362b80}.hero-back span{font-size:16px;font-weight:900;letter-spacing:2px;line-height:1.15;z-index:1}.hero-back b{font-size:37px;line-height:1;font-family:Georgia,serif}.hero-front{left:145px;transform:rotate(13deg);background:var(--card);color:var(--red);display:flex;align-items:center;justify-content:center}.card-corner{font-family:Georgia,serif;font-size:25px;position:absolute;top:10px;left:10px;line-height:1}.card-corner small{font-size:22px;display:block;margin-top:3px}.card-corner-bottom{top:auto;left:auto;bottom:10px;right:10px;transform:rotate(180deg)}.hero-heart{font-family:Georgia,serif;font-size:83px}.card-sticker{position:absolute;right:0;bottom:22px;background:var(--lime);color:var(--dark);border-radius:50%;width:84px;height:84px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;line-height:1.45;letter-spacing:1px;transform:rotate(-13deg);border:1px dashed var(--dark);outline:5px solid var(--lime)}.spark{position:absolute;color:var(--orange);font-size:42px}.spark-one{left:6px;top:16px}.spark-two{right:8px;top:9px;font-size:30px}.lobby h3{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:29px;font-weight:600;letter-spacing:1px}.lobby>p{font-size:15px;color:var(--muted);line-height:1.7;margin-top:14px;max-width:100%}.primary-button{border:1px solid var(--lime);border-radius:8px;color:var(--dark);background:var(--lime);font-weight:700;font-size:16px;min-height:52px;padding:14px 24px;display:flex;align-items:center;justify-content:center;gap:22px;letter-spacing:1px}.primary-button:hover{background:#e7f3b0;border-color:#e7f3b0}.primary-button:disabled{opacity:.45}.lobby .primary-button{width:280px;margin-top:30px}.primary-button>span{font-size:22px;font-family:Georgia,serif;line-height:1}.lobby-caption{font-size:12px;color:var(--muted);margin-top:16px;letter-spacing:1px}.table-bottom{border-top:1px solid var(--line);padding:18px 32px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;font-size:12px;color:var(--muted);position:relative}.table-bottom>span{line-height:1.7}.footer{border-top:1px solid var(--line);padding:22px 0 28px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted);line-height:1.7;letter-spacing:.5px}
/* The shared-phone table */
#play-area{padding:25px 32px 28px;flex:1;display:flex;flex-direction:column}.seat-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.seat-list.many-seats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.seat{padding:13px 8px;border:1px solid var(--line);border-radius:8px;text-align:center;min-width:0;position:relative;transition:border-color .2s,background .2s}.seat.active{border-color:var(--lime);background:#35472d}.seat-name{display:block;font-size:14px;overflow-wrap:anywhere;font-weight:500}.seat-label{font-size:12px;color:var(--muted);margin-top:7px;display:block;line-height:1.5}.active .seat-label{color:var(--lime)}.seat .mini-card{margin:10px auto 0;width:47px;height:66px;border:1px solid #758169;border-radius:4px;background:#263d32;display:flex;align-items:center;justify-content:center;color:#728169;font-size:29px;font-family:Georgia,serif}.seat .mini-card.picked{background:var(--orange);border-color:var(--orange);color:#723b2b;outline:1px solid #80432d;outline-offset:-5px}.seat.waiting .mini-card{opacity:.4}.many-seats .seat{padding:9px 5px}.many-seats .mini-card{display:none}.turn-area{text-align:center;margin:28px 0 22px;min-height:72px}.turn-eyebrow{display:block;font-size:11px;color:var(--muted);letter-spacing:1.5px;margin-bottom:9px}.turn-area h3{font-size:23px;letter-spacing:1px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}.turn-area h3 em{font-style:normal;color:var(--lime)}.turn-area p{font-size:13px;color:var(--muted);line-height:1.7;margin-top:9px}.turn-area .primary-button{margin:21px auto 0;max-width:100%;min-width:240px}.handoff-panel{padding:20px 0 6px}.handoff-symbol{font-size:36px;color:var(--orange);display:block;margin-bottom:14px}.guess-area{display:flex;gap:12px;justify-content:center;margin:0 0 22px}.guess-button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:120px;background:transparent;border:1px solid var(--line);border-radius:8px;padding:12px 16px;font-size:15px}.guess-button small{color:var(--muted);font-size:12px}.guess-button[aria-pressed=true]{background:var(--lime);border-color:var(--lime);color:var(--dark)}.guess-button[aria-pressed=true] small{color:#4c5c38}.guess-suit{font-size:23px;font-family:Georgia,serif}.guess-suit.red{color:var(--orange)}.guess-button[aria-pressed=true] .guess-suit.red{color:var(--red)}.card-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;max-width:580px;width:100%;margin:0 auto}.pick-card{aspect-ratio:5/7;min-width:0;position:relative;border:1px solid #f7aa86;border-radius:6px;background:var(--orange);overflow:hidden;display:flex;align-items:center;justify-content:center;color:#6f3928}.pick-card::before{content:'';position:absolute;inset:6px;border:1px solid #7e3b2880;border-radius:2px}.pick-card::after{content:'';position:absolute;inset:11px;border:1px solid #7e3b2840;background:repeating-linear-gradient(45deg,transparent,transparent 5px,#763a2920 5px,#763a2920 6px)}.pick-card b{font-size:33px;font-family:Georgia,serif;z-index:1;font-weight:400;background:var(--orange);border-radius:50%;width:43px;height:43px;display:flex;align-items:center;justify-content:center}.pick-card:hover:not(:disabled){transform:translateY(-5px);box-shadow:0 5px 0 #10271c;border-color:var(--lime)}.pick-card.taken{background:#2c4034;border:1px dashed #5a6c58;color:var(--muted);font-size:12px;padding:8px;overflow-wrap:anywhere;line-height:1.5}.pick-card.taken::before,.pick-card.taken::after{display:none}.pick-card:disabled:not(.taken){opacity:.4}.round-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px}.secondary-button{min-height:48px;border:1px solid #6b7a62;background:transparent;border-radius:8px;padding:12px 18px;font-size:14px}.secondary-button:hover{background:var(--surface-high)}.reveal-button{min-width:250px}.result-seat{background:#263c30}.result-seat.sip{border-color:var(--orange);background:#3c3e2e}.result-seat .seat-label{color:var(--lime);font-weight:600}.result-seat.sip .seat-label{color:#ffc49f}.result-card{position:relative;border-radius:6px;width:79px;height:110px;background:var(--card);color:#243c31;display:flex;align-items:center;justify-content:center;margin:12px auto 2px;box-shadow:0 4px 8px #091f1520;animation:flip-in .45s both}.result-card.red{color:var(--red)}.result-card .face-suit{font-family:Georgia,serif;font-size:40px}.result-card .card-corner{font-size:18px;top:6px;left:6px}.result-card .card-corner small{font-size:14px;margin-top:0}.result-card .card-corner-bottom{top:auto;left:auto;bottom:6px;right:6px}.result-guess{font-size:11px;color:var(--muted);display:block;margin-top:7px}.many-seats .result-card{width:57px;height:80px}.many-seats .result-card .face-suit{font-size:29px}.many-seats .result-card .card-corner{font-size:14px}.many-seats .result-card .card-corner small{font-size:11px}.result-summary{margin-top:30px}.result-summary h3{font-family:"Songti TC","PMingLiU",serif;font-size:26px}.result-summary p{max-width:430px;margin-left:auto;margin-right:auto;overflow-wrap:anywhere}.result-star{color:var(--orange);font-size:33px;display:block;margin-bottom:12px}.ready-symbol{color:var(--lime);font-size:43px;display:block;margin-bottom:12px}.round-ready .turn-area{margin-top:36px}.round-ready .round-actions{margin-top:12px}.saved-note{font-size:12px;color:var(--muted);text-align:center;line-height:1.7;margin-top:20px}
/* Native dialogs and editable player list */
dialog{background:var(--surface);color:var(--ink);border:1px solid #617058;border-radius:18px;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px);padding:28px;box-shadow:0 28px 90px #0007}dialog::backdrop{background:#091812c9;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-family:"Songti TC","PMingLiU",serif;font-size:29px;font-weight:500;margin-top:9px}.dialog-description{font-size:14px;line-height:1.8;color:var(--muted);margin:20px 0}.name-fields{display:grid;gap:8px;max-height:39dvh;overflow-y:auto;padding:4px 5px 4px 0}.name-field{display:flex;gap:10px;align-items:center}.name-field label{font-size:12px;color:var(--muted);min-width:45px}.name-field input{min-width:0;flex:1;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:11px 12px;min-height:44px;font-size:16px}.remove-player{width:40px;height:44px;border:1px solid var(--line);border-radius:6px;background:transparent;font-size:22px;color:var(--muted)}.remove-player:hover:not(:disabled){color:var(--orange);border-color:var(--orange)}.remove-player:disabled{opacity:.25}.add-player{background:transparent;border:1px dashed #6c7d60;border-radius:6px;width:100%;min-height:45px;color:var(--lime);margin-top:13px;font-size:14px}.add-player:disabled{opacity:.5}.form-error{font-size:13px;color:#ffc09d;min-height:20px;margin:12px 0 9px;line-height:1.6}.reset-note{font-size:12px;color:var(--muted);margin-bottom:15px;line-height:1.6}form .primary-button{width:100%}.how-to{list-style:none;padding:0;margin:26px 0;display:grid;gap:20px}.how-to li{display:flex;gap:15px}.how-to li>span{color:var(--orange);font-size:14px;padding-top:2px;font-family:Georgia,serif}.how-to strong{font-size:15px;font-weight:500}.how-to p{font-size:13px;line-height:1.7;color:var(--muted);margin-top:5px}.mode-rules{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0}.mode-rules strong{font-size:15px;color:var(--lime);font-weight:500}.mode-rules p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:8px}.rule-note{font-size:12px;color:var(--muted);line-height:1.8;margin:18px 0}#rules-dialog>.primary-button{width:100%}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:5;background:var(--lime);color:var(--dark);padding:12px 20px;border-radius:8px;font-size:14px;box-shadow:0 8px 30px #0004;max-width:calc(100% - 32px);line-height:1.6;text-align:center}
@keyframes flip-in{from{opacity:0;transform:rotateY(90deg) translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:1500px){.app-shell{max-width:1500px;padding:0 72px}.game-layout{grid-template-columns:330px minmax(0,1fr);gap:76px;padding-top:64px}.table{min-height:728px}.lobby{padding-top:42px}.hero-cards{margin-bottom:32px;margin-top:10px}}
@media(max-width:1150px){.app-shell{padding:0 32px}.game-layout{grid-template-columns:270px minmax(0,1fr);gap:30px;padding-top:36px}h1{font-size:57px}.mode-option{padding:11px 12px}.mode-option small{font-size:11px}.table-top{margin:26px 25px 0}.table-bottom{padding:16px 24px}#play-area{padding:24px}.card-grid{gap:9px}.hero-cards{transform:scale(.92);margin-top:-8px;margin-bottom:0}.lobby h3{font-size:25px}.lobby>p{font-size:14px}.sidebar-foot{gap:8px;font-size:11px}.section-heading .text-button{font-size:12px}.section-label{font-size:13px}.table{min-height:645px}.many-seats .seat-name{font-size:12px}}
@media(max-width:850px){.app-shell{padding:0 24px}.topbar{height:86px}.game-layout{grid-template-columns:235px minmax(0,1fr);gap:24px}.eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:50px}.intro{font-size:13px}.mode-section{margin-top:28px}.mode-option{min-height:67px;gap:10px;padding:11px}.mode-icon{font-size:27px;width:25px}.mode-option strong{font-size:14px}.mode-option small{font-size:10px}.table-top{margin:25px 23px 0}.table-kicker{font-size:9px;letter-spacing:1.5px}.round-badge{font-size:11px;padding:7px}.hero-cards{width:290px;transform:scale(.82);transform-origin:center center;margin-left:-8px;margin-top:-16px;margin-bottom:-17px}.hero-back{left:17px}.hero-front{left:120px}.card-sticker{right:-3px}.lobby{padding-left:15px;padding-right:15px}.lobby h3{font-size:22px}.lobby>p{font-size:13px}.lobby .primary-button{width:90%}.table{min-height:620px}.table-bottom{padding:15px 22px;font-size:11px}.table-bottom .text-button{font-size:11px}.phone-note{font-size:12px;margin-right:3px}.footer{font-size:11px}.seat-list{gap:6px}.seat{padding:11px 4px}.seat-name{font-size:13px}.seat-label{font-size:11px}.card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pick-card b{font-size:28px;width:33px;height:33px}.pick-card::after{inset:9px}.many-seats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.turn-area h3{font-size:20px}.result-card{width:63px;height:90px}.turn-area{margin:22px 0 18px}.turn-area p{font-size:12px}.reveal-button{min-width:180px}.round-actions{gap:9px;flex-wrap:wrap}#play-area{padding:23px 20px}.secondary-button{font-size:13px;padding:12px}.section-label>span{font-size:8px}.players-section{margin-top:26px}}
@media(max-width:700px){.app-shell{padding:0 20px}.topbar{height:78px}.brand{font-size:18px;gap:10px}.brand-symbol{font-size:39px}.brand small{font-size:8px;letter-spacing:2px;margin-top:4px}.phone-note{display:none}.top-actions{gap:8px}.icon-button{width:39px;height:39px}.game-layout{display:flex;flex-direction:column;gap:24px;padding-top:27px;padding-bottom:26px}.sidebar{display:grid;grid-template-columns:1fr;min-width:0}.eyebrow{font-size:9px;letter-spacing:1.2px}.tiny-star{font-size:17px}h1{font-size:42px;line-height:1.2;margin:16px 0 14px;letter-spacing:1px}h1 br{display:none}.accent-word svg{bottom:-9px}.intro{font-size:13px;line-height:1.7}.intro br{display:none}.mode-section{margin-top:24px}.section-label{font-size:13px}.section-label>span{font-size:9px}.mode-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.mode-option{display:flex;flex-direction:column;text-align:center;gap:6px;padding:12px 4px;min-height:84px;border-radius:7px}.mode-option .mode-icon{font-size:23px;width:auto;height:23px}.mode-option strong{font-size:14px}.mode-option small{display:none}.mode-check{position:absolute;visibility:hidden!important}.mode-lock{font-size:11px}.players-section{margin-top:22px}.section-heading .text-button{font-size:13px}.player-chips{gap:6px;margin-top:10px}.player-chip{font-size:12px;padding:5px 9px}.muted-small{font-size:11px;margin-top:8px}.sidebar-foot{display:none}.table{min-height:0;border-radius:14px}.table::before{inset:5px;border-radius:10px}.table-top{margin:22px 23px 0}.table-top h2{font-size:18px;margin-top:7px}.table-kicker{font-size:8px;letter-spacing:1.5px}.lobby{padding:16px 20px 27px}.hero-cards{transform:scale(.86);margin:0 auto -13px;width:300px;height:260px}.hero-back{left:18px;top:38px}.hero-front{left:120px;top:16px}.card-sticker{bottom:9px;right:0}.spark-one{left:-4px}.spark-two{right:0}.lobby h3{font-size:24px;margin-top:7px}.lobby>p{font-size:13px;margin-top:11px}.lobby .primary-button{width:100%;margin-top:24px;min-height:52px}.lobby-caption{font-size:11px;margin-top:13px}.table-bottom{padding:15px 22px;font-size:11px}.table-bottom .text-button{font-size:12px}.footer{display:flex;flex-direction:column;gap:6px;padding:19px 0 24px;font-size:10px;letter-spacing:.25px}#play-area{padding:20px 20px 24px}.seat-list{gap:7px}.seat-name{font-size:13px}.seat .mini-card{width:40px;height:57px;margin-top:8px;font-size:25px}.seat-label{font-size:11px;margin-top:6px}.seat{padding:11px 4px}.card-grid{max-width:390px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pick-card{border-radius:5px}.pick-card b{font-size:28px;width:35px;height:35px}.pick-card.taken{font-size:10px;padding:5px}.turn-area{margin-top:22px;margin-bottom:20px;min-height:0}.turn-eyebrow{font-size:10px}.turn-area h3{font-size:21px}.turn-area p{font-size:12px}.handoff-panel{padding:20px 0 10px}.handoff-symbol{font-size:35px;margin-bottom:13px}.turn-area .primary-button{font-size:14px;min-width:0;width:100%;margin-top:23px;line-height:1.5}.result-card{width:70px;height:100px}.result-card .face-suit{font-size:35px}.result-card .card-corner{font-size:17px}.result-card .card-corner small{font-size:13px}.seat-list.many-seats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.many-seats .result-card{width:61px;height:86px}.many-seats .seat-name{font-size:12px}.many-seats .seat-label{font-size:10px}.many-seats .result-guess{font-size:10px}.result-summary{margin:24px 0 16px}.result-summary h3{font-size:24px}.round-actions{margin-top:18px}.round-actions .primary-button{flex:1;min-width:0;font-size:15px;padding:14px 18px}.round-actions .secondary-button{font-size:13px}.round-ready .turn-area{margin-top:30px}.round-ready .round-actions{margin-top:8px}.guess-button{min-width:0;flex:1;max-width:150px;padding:10px}.guess-area{gap:10px;margin-bottom:20px}.saved-note{font-size:11px;margin-top:17px}dialog{padding:24px 21px;border-radius:14px}.dialog-heading h2{font-size:27px}.dialog-description{font-size:13px;margin:18px 0}.dialog-heading .table-kicker{font-size:9px}.how-to strong{font-size:14px}.name-field{gap:7px}.name-field label{min-width:42px}.name-fields{max-height:43dvh}.mode-rules p{font-size:13px}}
@media(max-width:360px){.app-shell{padding:0 15px}.topbar{height:74px}h1{font-size:37px}.mode-list{gap:6px}.game-layout{gap:21px}.table-top{margin:20px 20px 0}.round-badge{font-size:10px;padding:6px}.lobby{padding-left:17px;padding-right:17px}.hero-cards{transform:scale(.76);width:280px;margin-left:-12px;margin-top:-17px;margin-bottom:-27px}.hero-back{left:16px}.hero-front{left:113px}.card-sticker{right:-10px}.lobby h3{font-size:21px}.lobby>p{font-size:12px}.table-bottom{padding-left:18px;padding-right:18px;gap:8px}.table-bottom>span{max-width:170px}.table-bottom .text-button{font-size:11px}#play-area{padding:18px 15px 22px}.seat-list{gap:5px}.seat-name{font-size:12px}.seat-label{font-size:10px}.card-grid{gap:7px}.pick-card::before{inset:4px}.pick-card::after{inset:8px}.pick-card b{font-size:25px;width:30px;height:30px}.result-card{width:58px;height:84px}.result-card .face-suit{font-size:30px}.many-seats .result-card{width:51px;height:74px}.turn-area h3{font-size:19px}.result-summary h3{font-size:21px}.guess-button{font-size:14px}.guess-button small{font-size:11px}.primary-button{padding-left:16px;padding-right:16px}.round-actions{gap:8px}.round-actions .primary-button{font-size:14px}.secondary-button{font-size:12px!important;padding-left:13px;padding-right:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep names, choices and outcomes readable on a phone. */
.intro,.lobby>p{font-size:16px}.section-label,.text-button,.player-chip,.seat-name,.seat-label,.guess-button,.secondary-button{font-size:14px}.mode-option small,.muted-small,.lobby-caption,.table-bottom,.footer,.turn-area p,.saved-note,.how-to p,.rule-note,.result-guess,.pick-card.taken{font-size:13px}.mode-lock,.form-error,.dialog-description,.mode-rules p,.how-to strong{font-size:14px}.table-bottom .text-button{font-size:14px}.seat-name,.seat-label{line-height:1.6}.round-badge{font-size:13px}
@media(max-width:850px){.intro,.lobby>p{font-size:16px}.section-label,.text-button,.player-chip,.seat-name,.seat-label,.guess-button,.secondary-button,.many-seats .seat-name{font-size:14px}.mode-option small{font-size:12px}.mode-option{gap:10px}.table-bottom{padding-left:20px;padding-right:20px}.table-bottom>span{font-size:12px}.table-bottom .text-button{font-size:13px}.turn-area p,.result-guess,.pick-card.taken,.many-seats .result-guess{font-size:12px}}
@media(max-width:700px){.intro,.lobby>p{font-size:16px}.section-heading .text-button{font-size:14px}.player-chip{font-size:13px}.seat-name,.seat-label,.many-seats .seat-name,.many-seats .seat-label{font-size:14px}.turn-area p,.lobby-caption,.muted-small,.footer,.result-guess,.many-seats .result-guess{font-size:12px}.turn-area p{font-size:14px}.result-card{margin-top:10px}.has-round .sidebar .eyebrow,.has-round .sidebar h1,.has-round .sidebar .intro,.has-round .sidebar .mode-section>h2,.has-round .sidebar .player-chips,.has-round .sidebar .muted-small{display:none}.has-round .mode-section{margin-top:0}.has-round .mode-list{margin-top:0}.has-round .mode-option{flex-direction:row;justify-content:center;min-height:48px;gap:8px}.has-round .mode-option .mode-icon{font-size:22px}.has-round .players-section{margin-top:14px}.has-round .game-layout{padding-top:20px;gap:20px}.has-round .mode-lock{font-size:12px}.many-seats .seat{padding:8px 4px}.many-seats .seat-label{font-size:12px}.seat-label{font-size:13px}.round-actions .secondary-button{font-size:14px!important}}
