@font-face{font-family:Atkinson Hyperlegible Next;src:url(/games/sunroom-dominoes/play/fonts/atkinson-hyperlegible-next.woff2)format("woff2");font-weight:200 800;font-display:swap}:root{--font:"Atkinson Hyperlegible Next", system-ui, sans-serif;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--gap:8px}html[data-text=standard]{font-size:20px}html[data-text=large]{font-size:23px}html[data-text=xl]{font-size:26px}*{box-sizing:border-box}html,body{overscroll-behavior:none;height:100%;margin:0;overflow:hidden}body{background:linear-gradient(180deg, var(--page) 60%, var(--page-2));background-color:var(--page);color:var(--ink);font:1rem/1.4 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}#app{max-width:960px;height:100%;margin:0 auto;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer}:focus-visible{outline:4px solid var(--focus);outline-offset:3px}h1,h2,h3{margin:0;font-weight:800;line-height:1.2}a{color:inherit;text-underline-offset:4px}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tile{width:100%;height:100%;display:block;overflow:visible}.tile__body{fill:var(--tile);stroke:var(--tile-shape);stroke-width:3px}.tile__line{stroke:var(--tile-line);stroke-width:4px;stroke-linecap:round}.pip{fill:var(--pip)}.num{fill:var(--pip);font:800 76px var(--font)}.btn{border:2px solid var(--btn-edge);background:var(--btn);width:100%;min-height:64px;color:var(--btn-ink);text-align:center;border-radius:16px;gap:2px;padding:10px 18px;font-size:1.05rem;font-weight:700;display:grid}.btn__title{font-size:1.1rem;font-weight:800}.btn__sub{font-size:.9rem;font-weight:500}.btn--apart{margin-top:28px}.btn--primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}.btn--quiet{text-underline-offset:5px;background:0 0;border-color:#0000;min-height:56px;text-decoration:underline}.btn:active,.tool:active,.bar-btn:active{transform:scale(.97)}.bar-btn{border:2px solid var(--btn-edge);background:var(--btn);min-width:56px;min-height:56px;color:var(--btn-ink);border-radius:14px;justify-content:center;align-items:center;gap:4px;padding:4px 12px 4px 6px;font-size:.9rem;font-weight:700;display:flex}.bar-btn svg{flex:none;width:26px;height:26px}.home{height:100%;padding:calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));flex-direction:column;justify-content:flex-start;gap:20px;display:flex;overflow-y:auto}.home__brand{text-align:center;margin-top:auto}.home__art{width:150px;height:130px;margin:0 auto 8px;position:relative}.home__sun{width:96px;height:96px;position:absolute;inset:0 0 auto auto}.home__sun svg,.won__sun svg{width:100%;height:100%}.sun__rays rect,.sun__disc{fill:var(--ok)}.home__tile{filter:drop-shadow(0 4px 4px #0000004d);width:62px;height:120px;position:absolute;top:10px;left:22px;transform:rotate(-12deg)}.logo{letter-spacing:.02em;font-size:1.4rem;font-weight:700;display:grid}.logo span{font-size:2.6rem;font-weight:800;line-height:1.05}.home__tag{max-width:22em;color:var(--muted);margin:10px auto 0}.home__menu{gap:12px;width:100%;max-width:480px;margin:0 auto;display:grid}.home__row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.play{gap:var(--gap);height:100%;padding:calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom));flex-direction:column;display:flex;position:relative}.bar{flex:none;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;display:grid}.bar__title{text-align:center;min-width:0;line-height:1.2;display:grid}.bar__main{font-size:.95rem;font-weight:800}.bar__sub{color:var(--muted);font-size:.9rem}.bar h2{text-align:center;font-size:1.15rem}.bar__spacer{width:56px}.seats{flex:none;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px;display:grid}.seat{border:2px solid var(--seat-edge);background:var(--seat);color:var(--ink);border-radius:14px;justify-items:start;padding:4px 8px 5px;font-size:.9rem;line-height:1.25;display:grid;container-type:inline-size}.seat--turn{border:4px solid var(--turn);padding:2px 6px 3px}.seat__name{white-space:nowrap;align-items:center;gap:5px;max-width:100%;font-size:.9rem;font-weight:800;display:flex;overflow:hidden}.seat__line{white-space:nowrap}.seats--one .seat{grid-auto-flow:column;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px}.seats--one .seat--turn{padding:6px 10px}.badge{flex:none;width:22px;height:22px}.badge__shape{fill:var(--ink)}.badge text{fill:var(--seat);font:800 22px var(--font)}.ends{flex:none;align-items:center;gap:10px;min-height:52px;padding:0 4px;display:flex}.ends__halves{flex:none;gap:4px;display:flex}.ends__halves .tile{width:44px;height:44px}.ends__words{flex-wrap:wrap;flex:1;align-items:baseline;column-gap:14px;line-height:1.2;display:flex}.ends__words b{font-size:1.15rem}.ends__count{color:var(--muted);font-size:.9rem}.ends__bone{text-align:right;flex:none;max-width:6em;font-size:.9rem;line-height:1.2}.board{border:2px solid var(--felt-edge);background:var(--felt);border-radius:18px;flex:1 1 0;min-height:52px;position:relative;overflow:hidden}.btile{filter:drop-shadow(var(--tile-shadow));position:absolute}[data-theme=contrast] .btile,[data-theme=contrast] .htile svg{filter:none}.btile--last:after{content:"";border:4px solid var(--last);border-radius:12px;position:absolute;inset:-6px}.endring{border:4px dashed var(--end);pointer-events:none;border-radius:12px;position:absolute}.turnbar{background:var(--felt-edge);border-radius:3px;width:6px;position:absolute}.endlabel{z-index:3;background:var(--chip);color:var(--chip-ink);white-space:nowrap;border-radius:10px;padding:3px 10px;font-size:.95rem;font-weight:800;position:absolute;transform:translate(-50%);box-shadow:0 2px 4px #00000059}.endlabel[data-above=true]{transform:translate(-50%,-100%)}.status{text-align:center;flex:none;min-height:2.7em;margin:0;padding:0 6px;font-size:1rem;line-height:1.35}.status--you{font-weight:700}.hand{flex:none;position:relative}.htile{background:0 0;border:0;border-radius:14px;padding:0;transition:transform .18s ease-out;position:absolute;top:0;left:0}.htile svg{filter:drop-shadow(var(--tile-shadow))}.htile--ok{outline:5px solid var(--ok);outline-offset:3px;top:-8px}.htile--ok:focus-visible{outline:5px solid var(--focus)}.htile--hint{outline:5px dashed var(--hint);outline-offset:3px}.htile__tag{background:var(--hint);color:var(--page);border-radius:8px;padding:1px 8px;font-size:.9rem;font-weight:800;display:none;position:absolute;top:-14px;left:50%;transform:translate(-50%,-50%)}[data-theme=periwinkle] .htile__tag{color:#1d2350}.htile--hint .htile__tag{display:none}.htile--nope{animation:.32s nope}.htile--new svg{animation:.4s ease-out arrive}@keyframes nope{25%{translate:-6px}75%{translate:6px}}@keyframes arrive{0%{opacity:.4;transform:scale(.8)}}.tools{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.tool{border:2px solid var(--btn-edge);background:var(--btn);min-height:64px;color:var(--btn-ink);text-align:center;border-radius:14px;align-content:center;justify-items:center;gap:2px;padding:6px 2px;font-size:.9rem;font-weight:700;line-height:1.1;display:grid;position:relative}.tool svg{width:26px;height:26px}.tool__tag{background:var(--primary);color:var(--primary-ink);white-space:nowrap;border-radius:8px;padding:0 6px;font-size:.9rem;font-weight:800;line-height:1.25;display:none}.tool--tagged .tool__tag{display:block}.tool--needed{background:var(--primary);border:4px solid var(--ok);color:var(--primary-ink)}.tool--hinted{outline:5px dashed var(--hint);outline-offset:3px}.choose{left:8px;right:8px;bottom:calc(8px + var(--safe-bottom));z-index:5;border:4px solid var(--ok);background:var(--page-2);border-radius:18px;gap:10px;padding:12px;display:grid;position:absolute;box-shadow:0 -4px 16px #00000059}.choose[hidden]{display:none}.choose__title{text-align:center;font-size:1.1rem}.choose__row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.side-btn{background:var(--primary);border:3px solid var(--primary);min-height:92px;color:var(--primary-ink);position:relative}.side-btn--hint{outline:5px dashed var(--hint);outline-offset:3px}.side-btn__tag{background:var(--hint);color:var(--page);border-radius:8px;padding:0 8px;font-size:.9rem;font-weight:800;position:absolute;top:-12px;left:50%;transform:translate(-50%)}[data-theme=periwinkle] .side-btn__tag{color:#1d2350}.sheet{z-index:20;padding:calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));background:#0000008c;place-items:center;display:grid;position:fixed;inset:0}.sheet__card{background:var(--sheet);width:100%;max-width:540px;max-height:100%;color:var(--sheet-ink);-webkit-user-select:text;user-select:text;border-radius:20px;gap:12px;padding:20px 18px;display:grid;overflow-y:auto}[data-theme=contrast] .sheet__card{border:3px solid #fff}.sheet__card:focus{outline:none}.sheet__card:focus-visible{outline:4px solid var(--focus)}.sheet__card h2{text-align:center;font-size:1.3rem}.sheet__card h3{margin-top:4px;font-size:1.05rem}.sheet__card p{margin:0}.sheet__card .btn{background:var(--sheet-btn);color:var(--sheet-ink);border-color:var(--sheet-muted)}.sheet__card .btn--primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}[data-theme=periwinkle] .sheet__card .btn--primary{color:#fff;background:#2b3a9e;border-color:#2b3a9e}.sheet__card .btn--quiet{background:0 0;border-color:#0000}.sheet__big{font-size:1.05rem}.quote{color:var(--sheet-muted);text-align:center;font-style:italic}.won{gap:12px;display:grid}.won__sun{width:90px;height:90px;margin:0 auto}.won__sun--other{width:60px;height:60px}.won__sun .sun__rays rect,.won__sun .sun__disc{fill:#e8a400}.score{border-collapse:collapse;width:100%;font-size:1rem}.score caption{text-align:left;color:var(--sheet-muted);padding-bottom:4px;font-size:.9rem}.score th,.score td{border-bottom:2px solid var(--sheet-btn);text-align:left;padding:6px 4px}.score td:last-child,.score th:last-child{text-align:right}.score thead th{color:var(--sheet-muted);font-size:.85rem}.history{margin:0;padding-left:1.2em}.howto{grid-template-columns:minmax(0,1fr);gap:14px;display:grid}.howto__aim{justify-items:center;gap:10px;display:grid}.howto__aim p,.howto__step>p{color:var(--sheet-ink);font-size:1.05rem;line-height:1.3}.howto__steps{gap:14px;margin:0;padding:0;list-style:none;display:grid}.howto__step{border-top:2px solid var(--sheet-btn);grid-template-columns:auto 1fr;grid-template-areas:"pic pic""num text";align-items:center;gap:10px 12px;padding-top:14px;display:grid}.howto__step>p{grid-area:text}.howto__num{background:var(--sheet-ink);width:44px;height:44px;color:var(--sheet);border-radius:50%;grid-area:num;place-items:center;font-size:24px;font-weight:800;display:grid}.howto__step>.howto__pic{grid-area:pic}.howto__pic{justify-content:center;justify-self:center;align-items:center;gap:10px;max-width:100%;display:flex}.howto__pic--col{flex-direction:column}.howto__pic--col .howto__arrow{transform:rotate(90deg)}.howto__arrow{flex:none;width:32px;height:32px}.howto__arrow path{fill:none;stroke:var(--sheet-ink);stroke-width:6px;stroke-linecap:round;stroke-linejoin:round}.howto [data-act=more]{min-height:56px}.howto__more ul{color:var(--sheet-ink);gap:8px;margin:0;padding-left:1.2em;display:grid}.hp-felt{border:2px solid var(--felt-edge);background:var(--felt);border-radius:18px;gap:3px;padding:14px 12px;display:flex}.hp-bt{width:124px;height:62px;display:block;position:relative}.hp-ring{width:74px;height:74px;top:-6px}.hp-ring--l{left:-6px}.hp-ring--r{right:-6px}.hp-hand{gap:12px;display:flex}.hp-page{background:var(--page);color:var(--ink);border-radius:18px;align-items:center;gap:8px;padding:14px 10px;display:flex}.hp-pagefull{width:100%}.hp-page .howto__arrow path{stroke:var(--ink)}.hp-ht{width:60px;height:120px;transition:none;display:block;position:relative}.hp-ht.htile--ok{top:0}.hp-tool{width:96px;min-height:80px;font-size:20px}.hp-tool svg{width:30px;height:30px}.hp-empty{border:3px dashed var(--ink);width:100%;min-height:72px;color:var(--ink);border-radius:14px;place-items:center;font-size:22px;font-weight:800;display:grid}.about{text-align:center;gap:12px;display:grid}.about__tile{width:50px;height:98px;margin:0 auto}.note{color:var(--muted);margin:4px 0 0;font-size:.95rem}.sheet__card .note{color:var(--sheet-muted)}.page{height:100%;padding:calc(8px + var(--safe-top)) 12px calc(24px + var(--safe-bottom));align-content:start;gap:12px;display:grid;overflow-y:auto}.page h3{margin-top:14px;font-size:1.1rem}.statset dl{grid-template-columns:1fr 1fr;gap:10px;margin:0;display:grid}.statset dl div{border:2px solid var(--seat-edge);background:var(--seat);border-radius:14px;padding:10px 12px}.statset dt{color:var(--muted);font-size:.9rem}.statset dd{margin:0;font-size:1.5rem;font-weight:800}.statset small{font-size:.85rem;font-weight:600}.label{margin:6px 0 0;font-weight:700}.choice{flex-wrap:wrap;gap:8px;display:flex}.choice__opt{border:2px solid var(--btn-edge);background:var(--btn);min-height:56px;color:var(--btn-ink);border-radius:14px;flex:auto;padding:8px 14px;font-weight:700}.choice__opt--on{border:4px solid var(--ok);background:var(--primary);color:var(--primary-ink)}.choice__opt--on:before{content:"✓ "}.toggle{border:2px solid var(--btn-edge);background:var(--btn);min-height:64px;color:var(--btn-ink);cursor:pointer;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;font-weight:700;display:flex}.toggle span{display:grid}.toggle small{font-size:.85rem;font-weight:500}.toggle input{opacity:0;width:1px;height:1px;position:absolute}.toggle i{border:3px solid var(--btn-ink);border-radius:18px;flex:none;width:64px;height:36px;position:relative}.toggle i:after{content:"";background:var(--btn-ink);border-radius:50%;width:24px;height:24px;transition:left .15s;position:absolute;top:3px;left:3px}.toggle input:checked+i{background:var(--ok);border-color:var(--ok)}.toggle input:checked+i:after{background:var(--page);left:31px}.toggle:has(input:focus-visible){outline:4px solid var(--focus);outline-offset:3px}.looks{gap:8px;display:grid}.look{border:2px solid var(--btn-edge);background:var(--btn);min-height:64px;color:var(--btn-ink);text-align:left;border-radius:14px;grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;padding:8px 12px;display:grid}.look--on{border:4px solid var(--ok)}.look__sw{grid-row:span 2;display:flex}.look__sw i{border:1px solid #888;width:18px;height:36px}.look__name{font-weight:800}.look--on .look__name:after{content:" ✓"}.look__blurb{font-size:.85rem}.settings__end{grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;display:grid}@media (height<=720px){.tool svg{display:none}.tool{min-height:58px}.bar-btn svg{width:22px;height:22px}.ends__halves .tile{width:38px;height:38px}.ends{min-height:44px}}@container (width<=112px){.seat .badge{display:none}}.bar__main,.ends__words b{white-space:nowrap}@media (height<=760px){html[data-text=xl] .ends__halves,html[data-text=large] .ends__halves,.play .bar-btn svg{display:none}.play .bar-btn{padding:4px 10px}html[data-text=xl] .play,html[data-text=large] .play{--gap:6px}html[data-text=xl] .play .seat,html[data-text=large] .play .seat{line-height:1.15}html[data-text=xl] .play .status,html[data-text=large] .play .status{font-size:22px}html[data-text=xl] .play .bar__main,html[data-text=xl] .play .bar__sub{font-size:19px}html[data-text=xl] .play .bar,html[data-text=xl] .play .seats,html[data-text=xl] .play .tools,html[data-text=xl] .play .ends__bone,html[data-text=xl] .play .ends__count{font-size:21px}html[data-text=xl] .play .bar-btn,html[data-text=xl] .play .tool,html[data-text=xl] .play .seat,html[data-text=xl] .play .seat__name{font-size:inherit}html[data-text=large] .play .bar,html[data-text=large] .play .seats,html[data-text=large] .play .tools{font-size:21px}html[data-text=large] .play .bar-btn,html[data-text=large] .play .tool,html[data-text=large] .play .seat,html[data-text=large] .play .seat__name{font-size:inherit}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}*{overflow-anchor:none}:root,[data-theme=periwinkle]{--page:#3a4690;--page-2:#313c7e;--ink:#fff;--muted:#e8eaff;--felt:#5b6bbf;--felt-edge:#8f9ce0;--tile:#fffaf0;--tile-shape:#fffaf0;--tile-line:#6b6458;--pip:#111;--tile-shadow:0 2px 3px #0a0e2873;--ok:#ffd75e;--hint:#fff;--end:#ffd75e;--last:#fff;--chip:#fffaf0;--chip-ink:#1d2350;--seat:#2e3878;--seat-edge:#a9b3ec;--turn:#ffd75e;--turn-ink:#1d2350;--btn:#2a3373;--btn-ink:#fff;--btn-edge:#b9c2f2;--primary:#ffd75e;--primary-ink:#1d2350;--sheet:#fbfaf6;--sheet-ink:#161a33;--sheet-muted:#3c4266;--sheet-btn:#e6e9f8;--focus:#fff}[data-theme=daylight]{--page:#eef0fa;--page-2:#e1e5f6;--ink:#161a33;--muted:#3c4266;--felt:#c3cbef;--felt-edge:#4a55a0;--tile:#fff;--tile-shape:#2b2f45;--tile-line:#6b6f85;--pip:#111;--tile-shadow:0 2px 3px #1e23504d;--ok:#2b3a9e;--hint:#a8361a;--end:#2b3a9e;--last:#a8361a;--chip:#2b3a9e;--chip-ink:#fff;--seat:#fff;--seat-edge:#4a55a0;--turn:#2b3a9e;--turn-ink:#fff;--btn:#fff;--btn-ink:#161a33;--btn-edge:#4a55a0;--primary:#2b3a9e;--primary-ink:#fff;--sheet:#fff;--sheet-ink:#161a33;--sheet-muted:#3c4266;--sheet-btn:#e6e9f8;--focus:#a8361a}[data-theme=contrast]{--page:#000;--page-2:#000;--ink:#fff;--muted:#f2f2f2;--felt:#000;--felt-edge:#fff;--tile:#fff;--tile-shape:#fff;--tile-line:#000;--pip:#000;--tile-shadow:none;--ok:#ffd23f;--hint:#38d1ff;--end:#ffd23f;--last:#38d1ff;--chip:#ffd23f;--chip-ink:#000;--seat:#000;--seat-edge:#fff;--turn:#ffd23f;--turn-ink:#000;--btn:#000;--btn-ink:#fff;--btn-edge:#fff;--primary:#ffd23f;--primary-ink:#000;--sheet:#000;--sheet-ink:#fff;--sheet-muted:#f2f2f2;--sheet-btn:#1f1f1f;--focus:#38d1ff}
