/*
 * Adria Summer — shared design tokens for every Adria Island site.
 * Source of truth: /root/projects/infra/brand/ (see README.md there).
 * Copy this block into a product stylesheet and map the product's own
 * variables onto it; keep the values identical across products.
 */
:root{
  /* Surfaces: Dalmatian limestone, sand and shallow water */
  --adria-paper: #fbf7ef;
  --adria-sand: #f5ecdd;
  --adria-sand-deep: #ecdfc8;
  --adria-card: #fffdf8;
  --adria-shallow: #e6f1f4;
  --adria-line: #e5dac7;
  --adria-line-strong: #d3c4ab;

  /* Text: deep Adriatic ink */
  --adria-ink: #13314a;
  --adria-muted: #5a6672;

  /* Sea, sun and the island palette */
  --adria-sea: #1b5e8c;          /* primary buttons and links */
  --adria-sea-strong: #144b72;   /* hover / pressed */
  --adria-sea-bright: #2e8cbf;   /* waves, focus ring, decoration */
  --adria-sea-light: #86c0dd;
  --adria-sun: #f2b33d;          /* highlights, underline marker */
  --adria-sun-soft: #fbe7b5;
  --adria-terracotta: #a8442d;   /* text-safe terracotta */
  --adria-terracotta-soft: #f6e1d6;
  --adria-seaplane: #c9302c;     /* small red accents */
  --adria-olive: #5f6f3a;
  --adria-olive-soft: #e9ecd9;
  --adria-pine: #2f5d4a;
  --adria-pine-soft: #e2ece5;
  --adria-lavender: #6e5ba8;
  --adria-lavender-soft: #ece8f5;
  --adria-lagoon: #17707a;
  --adria-lagoon-soft: #ddeeee;
  --adria-bougainvillea: #b23a75;

  /* Shape */
  --adria-radius-card: 20px;
  --adria-radius-control: 12px;
  --adria-radius-pill: 999px;
  --adria-shadow: 0 1px 2px rgba(19, 49, 74, .06), 0 14px 34px -16px rgba(19, 49, 74, .24);
  --adria-shadow-lift: 0 2px 4px rgba(19, 49, 74, .06), 0 24px 48px -20px rgba(19, 49, 74, .3);

  /* Type */
  --adria-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --adria-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;

  /* Each product sets its own accent from the table in README.md */
  --adria-accent: var(--adria-sea);
  --adria-accent-strong: var(--adria-sea-strong);
  --adria-accent-soft: var(--adria-shallow);
}
/* Headings: Chinese stays in the sans stack, English uses the display serif. */
:lang(en) :is(h1, h2, .adria-display){
  font-family: var(--adria-font-display);
  font-weight: 600;
  letter-spacing: -.01em;
}
:lang(zh) :is(h1, h2, h3){
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
/* Buttons */
.adria-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--adria-radius-pill);
  font: 650 15px/1.4 var(--adria-font-sans);
  text-decoration: none;
  transition: background .16s, border-color .16s, transform .16s;
}
.adria-button.is-primary{ color: #fff; background: var(--adria-accent); }
.adria-button.is-primary:hover{ background: var(--adria-accent-strong); }
.adria-button.is-secondary{ color: var(--adria-ink); background: var(--adria-card); border-color: var(--adria-line-strong); }
.adria-button.is-secondary:hover{ border-color: var(--adria-ink); }
:is(a, button, summary, input, select, textarea):focus-visible{
  outline: 3px solid var(--adria-sea-bright);
  outline-offset: 3px;
}
/* Cards and tinted panels */
.adria-card{
  background: var(--adria-card);
  border: 1px solid var(--adria-line);
  border-radius: var(--adria-radius-card);
  box-shadow: var(--adria-shadow);
}
/* Postcard frame for paintings */
.adria-postcard{
  background: #fff;
  padding: 10px 10px 30px;
  border-radius: 6px;
  box-shadow: var(--adria-shadow-lift);
  transform: rotate(-2deg);
}
.adria-postcard img{ display: block; width: 100%; border-radius: 3px; }
/* Wave divider: <svg class="adria-wave" viewBox="0 0 1440 40" preserveAspectRatio="none" aria-hidden="true"><path d="M0 22c120-16 240-16 360 0s240 16 360 0 240-16 360 0 240 16 360 0V40H0z"/></svg> */
.adria-wave{ display: block; width: 100%; height: 28px; fill: currentColor; }
/* "Back to Adria Island" footer badge used by every product */
.adria-home{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--adria-ink);
  font: 600 13px/1.4 var(--adria-font-sans);
  text-decoration: none;
}
.adria-home img,.adria-home svg{ width: 22px; height: 22px; border-radius: 6px; }
.adria-home:hover{ color: var(--adria-sea); }
/* Poker Club: ink accent; table green stays inside the table illustrations. */
:root{--adria-accent:var(--adria-ink);--adria-accent-strong:var(--adria-ink);--adria-accent-soft:var(--adria-pine-soft)}
/* Product variables map onto the shared tokens; --wrap is the content width of public pages. */
:root{color-scheme:light;--wrap:1184px;--ink:var(--adria-ink);--muted:var(--adria-muted);--paper:var(--adria-paper);--panel:var(--adria-card);--line:var(--adria-line);--gold:#e8cc85;--felt:#164c3d;--red:var(--adria-seaplane);font-family:var(--adria-font-sans);font-synthesis:none}
:lang(zh) :is(h1,h2,h3){letter-spacing:-.01em}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-underline-offset:4px}
button,.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:46px;padding:11px 20px;border:1px solid var(--ink);border-radius:var(--adria-radius-pill);background:var(--ink);color:white;font-weight:650;cursor:pointer;text-decoration:none;line-height:1.4}
button:hover,.button:hover{filter:brightness(1.12)}
button:disabled{opacity:.52;cursor:not-allowed}
button.secondary{background:var(--adria-card);color:var(--ink);border-color:var(--adria-line-strong)}
button.secondary:hover{filter:none;border-color:var(--ink)}
button.quiet{background:transparent;color:var(--ink);border-color:transparent;padding:8px 10px;min-height:40px}
.wide{width:100%}
button.fold{background:var(--adria-terracotta-soft);border-color:var(--adria-line-strong);color:var(--adria-terracotta)}
button.all-in{background:var(--adria-sun-soft);border-color:var(--adria-sun);color:var(--ink)}
input,select{width:100%;min-width:0;min-height:48px;padding:10px 14px;border:1px solid var(--adria-line-strong);border-radius:var(--adria-radius-control);background:var(--adria-card);color:var(--ink)}
input:hover,select:hover{border-color:var(--muted)}
input::placeholder{color:var(--muted)}
label{display:block;font-size:.9rem;font-weight:650}
label input,label select{display:block;margin-top:7px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.2;letter-spacing:-.035em}
h1{font-size:clamp(2.7rem,5.2vw,5rem);font-weight:700}
h2{font-size:1.6rem}
h3{font-size:1.25rem}
p{overflow-wrap:anywhere}
small,.hint{font-size:.8rem;line-height:1.55;color:var(--muted)}
[hidden]{display:none!important}
svg{display:block;width:24px;height:24px;flex:none}
.eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.16em;color:var(--muted);line-height:1.6}
.lead{font-size:1.12rem;line-height:1.85;color:var(--muted)}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px max(24px,calc((100% - var(--wrap)) / 2));border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:var(--adria-accent);color:var(--adria-sun-soft)}
.brand-mark svg{width:20px;height:20px}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-kicker{font-size:11px;letter-spacing:.22em;font-weight:700;color:var(--adria-accent)}
.brand-sub{font-size:18px;font-weight:700;margin-top:3px}
:lang(en) .brand-sub{font-family:var(--adria-font-display);font-weight:600;font-size:19px}
.site-header nav{display:flex;align-items:center;gap:22px;font-size:14px}
.site-header nav a{text-decoration:none;display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
.site-header nav a:not(.language):hover{text-decoration:underline}
.language{justify-content:center;border:1px solid var(--adria-line-strong);border-radius:var(--adria-radius-pill);background:var(--adria-card);padding:0 16px;min-width:46px;font-weight:650;font-size:13px}
.language:hover{border-color:var(--ink)}
main{max-width:1232px;margin:auto;padding:0 24px}
main.public-main{max-width:none;padding:0}
.wrap{max-width:calc(var(--wrap) + 48px);margin-inline:auto;padding-inline:24px}
.hero{display:grid;grid-template-columns:1.06fr 1fr;gap:58px;padding-top:65px;padding-bottom:64px;align-items:center}
.hero h1{margin:18px 0 25px}
.hero-actions{display:flex;align-items:center;gap:28px;margin-top:30px}
.hero-actions>a:last-child{font-size:.9rem;font-weight:650}
.hero-facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px;font-size:.8rem;font-weight:650}
.hero-facts span{padding:6px 13px;border-radius:var(--adria-radius-pill);background:var(--adria-accent-soft);color:var(--ink);line-height:1.4}
.hero-table{position:relative;min-width:0;min-height:408px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 22px;border:10px solid #234536;border-radius:130px;background:radial-gradient(ellipse at top,#28674e,#123b30);box-shadow:0 0 0 2px #b5a377,0 22px 38px -28px #142e29;color:#eedfb8}
.table-caption{font-size:.61rem;letter-spacing:.2em}
.hero-pot{text-align:center;margin:24px 0}
.hero-pot>span{font-size:.55rem;letter-spacing:.14em}
.hero-pot>b{display:block;font:500 3.3rem/.95 Georgia,serif;letter-spacing:.07em;margin-top:13px;color:#eedba7}
.hero-table .cards{transform:rotate(-7deg);gap:8px}
.hero-table .card{width:60px;height:87px;box-shadow:0 3px 6px #07271b4d}
.hero-chips{display:flex;gap:8px;margin-top:25px}
.hero-chips i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:750;font-size:.67rem;background:#ede1bc;border:4px dashed #987d47;color:#34402c}
.hero-chips i:nth-child(2){background:#b94842;border-color:#efb4a0;color:white}
.hero-chips i:nth-child(3){background:#192d28;border-color:#a4b6a3;color:white}
.hero-chips i:nth-child(4){background:#f9f5e7;border:1px solid #d3caae;color:#1a352b}
.play-section{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.play-section form{padding:32px 36px 34px;display:flex;flex-direction:column;gap:17px;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--adria-radius-card);box-shadow:var(--adria-shadow)}
.play-section h2{font-size:1.55rem;max-width:400px;min-height:2.4em}
.play-section button{margin-top:5px}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:38px;padding-top:56px;padding-bottom:56px}
.features article>span{font:italic 1.2rem var(--adria-font-display);color:var(--adria-terracotta)}
.features h2{font-size:1.1rem;letter-spacing:-.01em;margin:14px 0}
.features p{font-size:.9rem;color:var(--muted)}
.home-rules{padding-bottom:36px}
.home-rules::before{content:"";display:block;border-top:1px solid var(--line);margin-bottom:48px}
.home-rules>*{max-width:740px}
.home-rules h2{font-size:1.7rem;margin-bottom:20px}
.home-rules p{color:var(--muted);margin-bottom:20px}
.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 28px;padding:28px max(24px,calc((100% - var(--wrap)) / 2)) 40px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.footer-name{font-weight:650;color:var(--ink)}
.footer-name small{display:block;font-size:12px;font-weight:400;letter-spacing:.04em;color:var(--muted);margin-top:2px}
.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px}
.footer-links a{min-height:44px;display:inline-flex;align-items:center}
.footer-links a:not(.adria-home){color:var(--ink);text-decoration-color:var(--adria-line-strong)}
.rules-page{--wrap:872px}
.rules-intro{padding-top:55px;padding-bottom:44px}
.rules-page h1{font-size:clamp(2.5rem,5vw,4rem);margin:20px 0}
.rules-intro>.button{margin-top:24px}
.rules-list{display:grid;gap:14px;padding-top:24px;padding-bottom:36px}
.rules-list>section{display:flex;gap:24px;padding:26px 30px;background:var(--panel);border:1px solid var(--line);border-radius:var(--adria-radius-card)}
.rule-number{font:italic 1.25rem var(--adria-font-display);color:var(--adria-terracotta)}
.rules-list h2{font-size:1.3rem;margin-bottom:12px}
.rules-list p{color:var(--muted);line-height:1.9}
.cards{display:flex;gap:8px;justify-content:center}
.card{width:55px;height:78px;flex:none;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:6px;background:#fffdf5;border:1px solid #d9d0b4;border-radius:6px;color:var(--adria-ink);line-height:1;font-family:Georgia,serif;box-shadow:0 2px 3px #00000014}
.card b{font-size:1.4rem;font-weight:600;letter-spacing:-.06em}
.card svg{width:22px;height:23px;align-self:flex-end}
.card.red{color:var(--red)}
.card-back{border:2px solid #81a18b;background:repeating-linear-gradient(45deg,#265344,#265344 5px,#285948 5px,#285948 6px);padding:5px;align-items:center;justify-content:center;color:#b6cbb6}
.card-back span{font-family:Georgia,serif;font-size:1.4rem}
.display-entry{max-width:600px;padding-top:50px}
.display-entry h1{font-size:clamp(2.2rem,5vw,2.8rem);margin:18px 0 12px}
.display-entry .lead{font-size:1rem;margin-bottom:24px}
.display-entry form{display:grid;gap:18px}
.display-entry button{margin-top:10px}
dialog{width:min(510px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:var(--adria-radius-card);background:var(--panel);color:var(--ink);overflow:hidden;box-shadow:var(--adria-shadow-lift)}
dialog::backdrop{background:rgba(19,49,74,.5);backdrop-filter:blur(3px)}
.modal-body{padding:26px;max-height:calc(100dvh - 36px);overflow:auto}
.modal-body h2{font-size:1.5rem;margin-bottom:16px}
.modal-body p{font-size:.89rem;margin:12px 0}
.modal-body input{font-size:.8rem}
.modal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.modal-actions button{flex-grow:1}
.qr{width:200px;max-width:100%;height:auto;display:block;margin:20px auto;border-radius:10px}
.screen-code{text-align:center;font-size:1.55rem!important;letter-spacing:.15em;font-weight:750}
#toast{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);padding:13px 18px;border-radius:14px;background:var(--adria-ink);color:white;box-shadow:var(--adria-shadow-lift);z-index:50;font-size:.85rem}
@media(max-width:1000px){
.hero{gap:30px}
.hero-table{min-height:355px;border-radius:95px}
.hero-table .card{width:48px;height:70px}
.play-section form{padding:30px}
}
@media(max-width:760px){
.site-header{padding:12px 22px}
.brand{gap:10px}
.brand-mark{width:32px;height:32px}
.brand-mark svg{width:18px;height:18px}
.brand-sub,:lang(en) .brand-sub{font-size:16px}
.site-header nav{gap:14px;font-size:13px}
.language{padding:0 14px}
.wrap{padding-inline:22px}
.site-header nav a:nth-child(2){display:none}
.hero{grid-template-columns:1fr;padding-top:36px;padding-bottom:40px;gap:35px}
.hero h1{font-size:3.7rem}
.hero-table{max-width:510px;width:100%;margin:auto;min-height:325px;border-radius:110px}
.hero-pot{margin:14px 0}
.hero-pot>b{font-size:2.8rem}
.hero-table .card{width:53px;height:75px}
.hero-facts{font-size:.75rem;gap:6px}
.play-section{grid-template-columns:1fr;gap:16px}
.play-section form{padding:26px 22px 28px}
.play-section h2{min-height:0;margin-bottom:5px}
.features{grid-template-columns:1fr;gap:30px;padding-top:40px;padding-bottom:40px}
.features h2{margin:8px 0}
.site-footer{padding:24px 22px 32px;flex-direction:column;align-items:flex-start;gap:6px}
.footer-links{flex-direction:column;align-items:flex-start;gap:0}
.rules-intro{padding-top:30px;padding-bottom:28px}
.rules-list{gap:12px;padding-top:12px;padding-bottom:20px}
.rules-list>section{gap:14px;padding:22px 20px}
}
@media(max-width:360px){
main{padding-left:14px;padding-right:14px}
main.public-main{padding:0}
.wrap{padding-inline:16px}
.site-header{padding:12px 16px}
.site-header nav{gap:10px}
.hero h1{font-size:3.1rem}
.hero-table{min-height:300px;border-radius:85px;padding:27px 12px}
.hero-table .card{width:43px;height:66px}
.hero-table .cards{gap:6px}
.hero-facts{gap:6px;font-size:.72rem}
.play-section form{padding:24px}
.hero-actions{gap:18px}
.hero-actions>a:last-child{font-size:.8rem}
.modal-body{padding:22px}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*{animation:none!important;transition:none!important}
}
/* Public guides share the same copy in server HTML and the browser. */
.home-guide{padding-top:48px;padding-bottom:64px}
.home-guide>h2{font-size:28px;margin-bottom:22px}
.home-guide .rule-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:44px;padding:24px 0;border-top:1px solid var(--line)}
.home-guide h3{font-size:19px;line-height:1.5}
.home-guide p{line-height:1.85;color:var(--muted)}
.guide-links{margin-top:24px;padding-top:22px;border-top:1px solid var(--line);line-height:2}
.hero h1,.rules-page h1{font-size:clamp(36px,4.6vw,62px);overflow-wrap:break-word}
@media(max-width:760px){
.home-guide{padding-top:40px;padding-bottom:44px}
.home-guide .rule-row{grid-template-columns:1fr;gap:10px}
.home-guide>h2{font-size:24px}
.hero h1,.rules-page h1{font-size:38px}
}
/* Adria Summer: sand band with wave edges (max two waves per page), numbered steps and room header alignment. */
.band{color:var(--adria-sand)}
.band .adria-wave{height:28px}
.band .adria-wave.is-flipped{transform:scaleY(-1)}
.band-inner{background:var(--adria-sand);color:var(--ink);padding:28px 0 32px}
.noscript-note{color:var(--ink)}
.eyebrow .step{display:inline-grid;place-items:center;min-width:26px;height:26px;margin-right:10px;padding:0 8px;border-radius:var(--adria-radius-pill);background:var(--adria-accent);color:#fff;letter-spacing:.04em}
.public-main:has(>.band:last-child)+.site-footer{border-top:0}
@media(max-width:760px){
.band .adria-wave{height:18px}
.band-inner{padding:18px 0 22px}
}
/* Chinese body copy follows its column (English keeps the measure); avoid one-character last lines. */
p,li,dd,small{text-wrap:pretty}
:lang(zh) .home-rules>*{max-width:none}

/* ---------- Room stage (2.0) ----------
 * One full-screen table, as in Island Tycoon and Trade Isles: a slim top bar, the table in the
 * middle and a panel holding the turn card, its one main action and three tabs. Everything else
 * lives in the menu. Phones keep the panel at the bottom; from 900px it moves right, and from
 * 1280px a chip-count column joins on the left. The felt keeps the table green of the homepage
 * illustration; everything around it uses the shared sand and paper tokens. */
html.stage-active,html.stage-active body{height:100%;overflow:hidden;overscroll-behavior:none}
html.stage-active #app{height:100%}
.stage{position:fixed;inset:0;max-width:none;margin:0;padding:0;overflow:hidden;color:var(--ink);font-size:15px;--top-h:62px;--panel-w:0px;--roster-w:0px;
  background:radial-gradient(ellipse 80% 70% at 50% 45%,#fbf5e9 0%,var(--adria-sand) 60%,var(--adria-sand-deep) 100%)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ui-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
button.secondary.is-active{background:var(--adria-sand);border-color:var(--ink)}
.stage .hint{font-size:.8rem;color:#4a5662}

/* Glass surfaces float over the room; small text on them uses the darker #4a5662. */
.chip,button.glass,.hud-panel,.hud-roster,.hud-turn,.side-card{background:rgba(255,253,248,.88);-webkit-backdrop-filter:saturate(1.5) blur(18px);backdrop-filter:saturate(1.5) blur(18px);border:1px solid rgba(211,196,171,.75);box-shadow:var(--adria-shadow)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.chip,button.glass,.hud-panel,.hud-roster,.hud-turn,.side-card{background:var(--adria-card)}}

/* Top bar */
.hud-top{position:absolute;z-index:9;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px;pointer-events:none}
.hud-top>*{pointer-events:auto}
.hud-brand img{display:block;width:42px;height:42px;border-radius:12px;box-shadow:var(--adria-shadow)}
.chip{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:var(--adria-radius-pill);font-size:.82rem;font-weight:650;white-space:nowrap}
.chip .ui-icon{width:18px;height:18px}
.chip b{font-variant-numeric:tabular-nums}
.room-chip b{letter-spacing:.08em}
.dot{width:9px;height:9px;border-radius:50%;flex:none}
.dot.is-on{background:#3e9b5f;box-shadow:0 0 0 3px rgba(62,155,95,.18)}
.dot.is-off{background:var(--adria-seaplane)}
.chip.is-screen{color:var(--adria-pine)}
.hud-spacer{flex:1}
button.glass{color:var(--ink)}
button.glass:hover{filter:none;border-color:var(--ink)}
button.icon-only{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;flex:none}
button.pill{min-height:42px;padding:0 14px;gap:6px;font-size:.82rem}
.reconnecting{position:absolute;top:52px;left:0;right:0;margin:auto;width:max-content;max-width:100%;padding:6px 14px;border-radius:var(--adria-radius-pill);background:var(--adria-seaplane);color:#fff;font-size:.8rem;font-weight:650}

/* The table */
.stage-world{position:absolute;left:var(--roster-w);right:var(--panel-w);top:var(--top-h);bottom:var(--panel-h,250px)}
.stage[data-table=hidden] .stage-world{display:none}
.table-wrap{position:absolute;inset:4px 6px 2px;--s:1;--board-w:44px}
.felt{position:absolute;left:var(--felt-x,30px);right:var(--felt-x,30px);top:var(--felt-y,30px);bottom:var(--felt-y,30px);border-radius:999px;
  background:radial-gradient(ellipse at 50% 32%,#2d6c52 0%,#1f5442 52%,#143e31 100%);
  border:calc(7px*var(--s)) solid #234536;box-shadow:0 0 0 2px #b5a377,0 26px 50px -24px rgba(19,49,74,.6),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 14px 40px rgba(0,0,0,.28)}
.felt-inner{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--board-w)*.17);padding:6%;color:#eedfb8;text-align:center}
.table-wrap[data-compact=true] :is(.felt-mark,.felt-note){display:none}
.felt-mark{font-size:max(8px,calc(var(--board-w)*.17));letter-spacing:.26em;font-weight:650;color:rgba(238,223,184,.5);white-space:nowrap}
.board{display:flex;gap:calc(var(--board-w)*.12);--cw:var(--board-w)}
.card-slot{width:var(--cw);height:calc(var(--cw)*1.4);border-radius:calc(var(--cw)*.12);border:1.5px dashed rgba(238,223,184,.3)}
.felt-note{font-size:max(12px,calc(var(--board-w)*.27));font-weight:650;color:#f4ead0;max-width:92%;min-height:1.4em;line-height:1.35}
.pot{display:flex;align-items:center;gap:calc(var(--board-w)*.18);padding:calc(var(--board-w)*.08) calc(var(--board-w)*.3) calc(var(--board-w)*.08) calc(var(--board-w)*.14);border-radius:var(--adria-radius-pill);background:rgba(8,28,21,.4);color:#fbe7b5;--cs:calc(var(--board-w)/40)}
.pot-text{display:grid;line-height:1.05;text-align:left}
.pot-text small{font-size:max(9px,calc(var(--board-w)*.2));letter-spacing:.12em;color:rgba(251,231,181,.8)}
.pot-text b{font-size:max(15px,calc(var(--board-w)*.4));font-variant-numeric:tabular-nums}
.pot-label{font-size:max(11px,calc(var(--board-w)*.24));font-weight:650;padding:0 calc(var(--board-w)*.12)}
.pot-total{font-size:max(10px,calc(var(--board-w)*.2));color:rgba(251,231,181,.8)}
.chip-stack{position:relative;display:inline-block;flex:none;width:calc(16px*var(--cs,1));height:calc(16px*var(--cs,1) + 6px)}
.chip-stack i{position:absolute;left:0;bottom:0;width:calc(16px*var(--cs,1));height:calc(16px*var(--cs,1));border-radius:50%;background:var(--adria-seaplane);border:calc(2px*var(--cs,1)) dashed #fbe7b5;box-shadow:0 1px 0 rgba(0,0,0,.35)}
.chip-stack i:nth-child(2){bottom:3px}.chip-stack i:nth-child(3){bottom:6px}
.chip-stack i.tint-1,.fly-chip.tint-1{background:var(--adria-sea)}
.chip-stack i.tint-2,.fly-chip.tint-2{background:var(--adria-sun);border-color:var(--ink)}
.chip-stack i.tint-3,.fly-chip.tint-3{background:#fffdf8;border-color:var(--adria-sea)}

/* Cards scale with --cw wherever they sit. */
.stage .card,.modal-body .card{width:var(--cw,46px);height:calc(var(--cw,46px)*1.4);padding:calc(var(--cw,46px)*.09);border-radius:calc(var(--cw,46px)*.12)}
.stage .card b,.modal-body .card b{font-size:calc(var(--cw,46px)*.42)}
.stage .card svg,.modal-body .card svg{width:calc(var(--cw,46px)*.42);height:calc(var(--cw,46px)*.42)}
.stage .card-back span{font-size:calc(var(--cw,46px)*.42)}
@keyframes card-flip{0%{transform:perspective(500px) rotateY(90deg) scale(.92);opacity:.2}100%{transform:none;opacity:1}}
.card.is-new{animation:card-flip .5s cubic-bezier(.3,.7,.3,1) both}
.board .card.is-new{animation-delay:.3s}.board .card.is-new.d1{animation-delay:.42s}.board .card.is-new.d2{animation-delay:.54s}
@keyframes deal-in{0%,60%{opacity:0;transform:translateY(-4px) scale(.9)}100%{opacity:1;transform:none}}
.seat-cards.is-dealt{animation:deal-in 1.25s ease-out both}

/* Seats round the rim */
.seat{position:absolute;z-index:2;width:var(--seat-w,80px);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;font-size:max(11px,calc(12px*var(--s)));line-height:1.2}
.seat-cards{display:flex;justify-content:center;height:calc(var(--cw)*1.4*.62);--cw:calc(25px*var(--s))}
.seat-cards .card{box-shadow:0 2px 5px rgba(8,28,21,.35)}
.seat-cards.is-shown{height:auto;margin-bottom:calc(-6px*var(--s));--cw:calc(34px*var(--s));gap:2px}
.seat-cards.is-shown .card{transform:none}
.seat-cards .card:first-child{transform:rotate(-7deg) translateX(3px)}.seat-cards .card:nth-child(2){transform:rotate(7deg) translateX(-3px)}
.seat-main{position:relative;z-index:1;display:flex;align-items:center;gap:calc(6px*var(--s));width:100%;padding:calc(4px*var(--s)) calc(9px*var(--s)) calc(4px*var(--s)) calc(4px*var(--s));border-radius:var(--adria-radius-pill);background:rgba(255,253,248,.96);border:1px solid var(--adria-line-strong);box-shadow:0 6px 16px -8px rgba(19,49,74,.5)}
.seat .avatar{width:calc(26px*var(--s));height:calc(26px*var(--s));font-size:calc(12px*var(--s))}
.seat-text{display:grid;min-width:0;flex:1}
.seat-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.seat-name small{margin-left:4px;font-size:.8em;color:var(--adria-terracotta)}
.seat-stack{font-weight:650;color:#4a5662;font-variant-numeric:tabular-nums}
.seat-tag{position:relative;z-index:2;margin-top:calc(-3px*var(--s));max-width:100%;padding:0 calc(8px*var(--s));border-radius:var(--adria-radius-pill);background:var(--ink);color:#fff;font-size:.86em;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}
.seat-ring{display:none}
.seat.is-current .seat-main{border-color:var(--adria-sun);box-shadow:0 0 0 calc(3px*var(--s)) rgba(242,179,61,.6),0 10px 24px -10px rgba(19,49,74,.6)}
.seat.is-current .seat-ring{display:block;position:absolute;z-index:3;left:18%;right:18%;bottom:calc(-5px*var(--s));height:calc(4px*var(--s));border-radius:3px;background:linear-gradient(90deg,var(--adria-sun) calc(var(--t,1)*100%),rgba(19,49,74,.25) 0)}
.seat.is-current.is-low .seat-ring{background:linear-gradient(90deg,var(--adria-seaplane) calc(var(--t,1)*100%),rgba(19,49,74,.25) 0)}
.seat.is-me .seat-main{border-color:var(--ink)}
.seat.is-folded,.seat.is-out{opacity:.5}
.seat.is-offline .avatar{filter:grayscale(1);opacity:.65}
.seat.is-allin .seat-tag{background:var(--adria-seaplane)}
.seat.is-winner .seat-main{border-color:var(--adria-sun);box-shadow:0 0 0 calc(4px*var(--s)) var(--adria-sun-soft),0 0 26px rgba(242,179,61,.7)}
.seat.is-winner .seat-tag{background:var(--adria-sun);color:var(--ink)}
.seat-bet{position:absolute;z-index:1;transform:translate(-50%,-50%);display:flex;align-items:center;gap:calc(4px*var(--s));min-width:22px;min-height:20px;padding:calc(2px*var(--s)) calc(8px*var(--s)) calc(2px*var(--s)) calc(3px*var(--s));border-radius:var(--adria-radius-pill);background:rgba(8,28,21,.55);color:#fbe7b5;font-size:max(11px,calc(12px*var(--s)));font-weight:700;font-variant-numeric:tabular-nums;--cs:calc(var(--s)*.85)}
.seat-bet.is-empty{visibility:hidden}
.dealer-chip{position:absolute;z-index:2;right:calc(-6px*var(--s));top:calc(-9px*var(--s));display:grid;place-items:center;width:max(18px,calc(20px*var(--s)));height:max(18px,calc(20px*var(--s)));border-radius:50%;background:#fffdf8;border:2px solid #b5a377;color:var(--ink);font-size:max(10px,calc(10px*var(--s)));font-weight:800;line-height:1;box-shadow:0 2px 4px rgba(0,0,0,.35)}
.avatar{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;color:#fff;font-weight:750;font-size:.85rem;line-height:1;background:var(--ink)}
.color-0 .avatar,.avatar.color-0{background:#1b5e8c}.color-1 .avatar,.avatar.color-1{background:#a8442d}.color-2 .avatar,.avatar.color-2{background:#6e5ba8}.color-3 .avatar,.avatar.color-3{background:#5f6f3a}
.color-4 .avatar,.avatar.color-4{background:#17707a}.color-5 .avatar,.avatar.color-5{background:#b23a75}.color-6 .avatar,.avatar.color-6{background:#8a5a00}.color-7 .avatar,.avatar.color-7{background:#13314a}
.avatar.is-brand{background:var(--ink);color:var(--adria-sun-soft)}.avatar.is-brand svg{width:55%;height:55%}

/* Panel: turn card, its main action and tabs */
.hud-panel{position:absolute;z-index:5;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));max-height:calc(100% - var(--top-h) - 6px);display:flex;flex-direction:column;border-radius:24px;overflow:hidden}
.turn-card{flex:none;max-height:min(62dvh,560px);overflow:auto;padding:14px 16px 12px}
.stage[data-table=hidden] .turn-card,.stage[data-sheet=open] .turn-card{max-height:none;overflow:visible}
.turn-head{display:flex;align-items:center;gap:12px}
.turn-head>.avatar{width:42px;height:42px;font-size:1.05rem}
.turn-title{flex:1;min-width:0}
.turn-title .eyebrow{font-size:.68rem;letter-spacing:.12em;color:#4a5662}
.phase-status{font-size:1.22rem;line-height:1.25;letter-spacing:-.01em}
.turn-sub{font-size:.84rem;color:#4a5662;line-height:1.45}
.turn-card.is-turn .phase-status{color:var(--adria-terracotta)}
.pot-badge{display:grid;justify-items:end;flex:none;line-height:1.15;padding:6px 12px;border-radius:14px;background:var(--adria-pine-soft)}
.pot-badge small{font-size:.66rem;letter-spacing:.1em;color:var(--adria-pine);font-weight:700}
.pot-badge b{font-size:1.05rem;font-variant-numeric:tabular-nums}
.timer{height:5px;border-radius:3px;background:rgba(19,49,74,.12);margin-top:10px;overflow:hidden}
.timer i{display:block;height:100%;transform-origin:left;transform:scaleX(var(--t,1));background:var(--ink);transition:transform .25s linear}
.timer i.is-low{background:var(--adria-seaplane)}
.turn-body{display:grid;gap:10px;margin-top:12px}
.turn-body:empty{display:none}
.row{display:flex;gap:8px;flex-wrap:wrap}
.row>button,.row>a{flex:1 1 0;min-width:0}
.turn-body button,.hud-turn button{min-height:46px}
.stage button small{color:inherit;font-size:.78em;font-weight:600}
.my-hand{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:18px;background:var(--adria-sand);--cw:40px}
@media (min-width:900px) and (min-height:560px){.my-hand{--cw:46px;padding:10px 12px}}
.my-hand .hole{display:flex;flex:none}
.my-hand .hole .card:first-child{transform:rotate(-5deg)}.my-hand .hole .card:nth-child(2){transform:rotate(5deg);margin-left:-6px}
.my-hand.is-folded .hole{opacity:.45}
.hand-info{display:grid;gap:1px;min-width:0}
.hand-info small{font-size:.72rem;color:#4a5662}
.hand-now{font-size:.92rem}
.hand-stack{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.92rem;font-variant-numeric:tabular-nums}
.hand-stack .ui-icon{width:16px;height:16px;color:var(--adria-pine)}
.hand-stack small{color:#4a5662}
.decide{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:8px}
.decide:has(> :nth-child(2):last-child){grid-template-columns:1fr 1.4fr}
.decide button{min-height:54px;padding:6px 8px;flex-direction:column;gap:0;line-height:1.2;font-size:1rem}
.decide button b{font-size:.92rem;font-variant-numeric:tabular-nums}
.raise-drawer{display:grid;gap:8px;padding:12px;border-radius:18px;background:var(--adria-card);border:1px solid var(--adria-line)}
.raise-top{display:flex;align-items:center;gap:8px}
.raise-top label{flex:1;text-align:right;font-size:.85rem;color:#4a5662}
.raise-top output{font-size:1.45rem;font-weight:750;font-variant-numeric:tabular-nums;min-width:3.5ch;text-align:right}
button.back{min-height:40px;padding:4px 10px;background:var(--adria-sand);border-radius:var(--adria-radius-pill)}
.raise-drawer input[type=range]{min-height:0;height:32px;padding:0;border:0;background:transparent;accent-color:var(--ink)}
.raise-row{display:flex;gap:8px;align-items:center}
.raise-row button{flex:1;min-height:48px}
.presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.presets button{min-height:40px;padding:4px 6px;font-size:.82rem;background:var(--adria-sand);border-radius:var(--adria-radius-pill)}
#raise-to{width:96px;flex:none;min-height:48px;padding:6px 10px;font-variant-numeric:tabular-nums}
.raise-drawer.is-all-in button[type=submit]{background:var(--adria-sun);border-color:var(--adria-sun);color:var(--ink)}
.reactions{display:flex;justify-content:space-between;gap:2px}
button.react{width:auto;flex:1;min-height:40px;padding:0;font-size:1.3rem;background:transparent;border-color:transparent;border-radius:12px}
button.react:hover{background:var(--adria-sand);filter:none}
.result-rows{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.result-rows li{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:14px;background:var(--adria-card);border:1px solid var(--adria-line)}
.result-rows li.is-winner{background:var(--adria-sun-soft);border-color:var(--adria-sun)}
.who{flex:1;min-width:0;display:grid;line-height:1.25}
.who b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who small{color:#4a5662}
.best-five{display:flex;gap:2px;--cw:21px}
.result-rows strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.pot-split{font-size:.78rem;color:#4a5662}
.lobby-code{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:10px 14px;border-radius:16px;background:var(--adria-sand)}
.lobby-code span{font-size:.8rem;color:#4a5662}
.lobby-code strong{font-size:1.55rem;letter-spacing:.14em}
.lobby-code small{color:#4a5662}
.panel-body{display:none;flex:1;min-height:0;overflow:auto;padding:6px 16px 12px;border-top:1px solid var(--adria-line)}
.stage[data-sheet=open] .panel-body{display:block}
.panel-tabs{flex:none;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 8px 8px;padding:5px;border-radius:18px;background:rgba(236,223,200,.6)}
button.tab{min-height:48px;padding:4px;flex-direction:column;gap:2px;border:0;border-radius:14px;background:transparent;color:#4a5662;font-size:.74rem}
button.tab:hover{filter:none;color:var(--ink)}
button.tab.is-active{background:var(--adria-card);color:var(--ink);box-shadow:var(--adria-shadow)}
.player-list,.rankings,.journal{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.player-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;border:1px solid var(--adria-line);background:var(--adria-card)}
.player-row>div{flex:1;min-width:0;display:grid;line-height:1.3}
.player-row strong small{font-weight:600}
.player-row>div>small{color:#4a5662}
.player-row>b{font-variant-numeric:tabular-nums}
.player-row.is-current{border-color:var(--adria-sun);box-shadow:0 0 0 2px var(--adria-sun-soft)}
.rankings li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;border-radius:12px}
.rankings li.is-now{background:var(--adria-sun-soft)}
.rank-name{display:grid;line-height:1.3}
.rank-name small{color:var(--adria-terracotta);font-weight:700}
.mini-cards{display:flex;gap:2px;--cw:23px}
.journal li{font-size:.85rem;padding:6px 2px;border-bottom:1px dashed var(--adria-line)}

/* Feed, overlays and the results ceremony */
.hud-feed{position:absolute;z-index:4;top:calc(var(--top-h) + 4px);left:calc(var(--roster-w) + (100% - var(--roster-w) - var(--panel-w)) / 2);transform:translateX(-50%);display:grid;justify-items:center;gap:6px;width:max-content;max-width:calc(100% - 24px);pointer-events:none}
.feed-item{padding:6px 14px;border-radius:var(--adria-radius-pill);background:rgba(19,49,74,.88);color:#fff;font-size:.8rem;font-weight:600}
.hud-overlay{position:absolute;inset:0;z-index:8;/* below the top bar, which stays usable */display:grid;place-items:center;padding:calc(var(--top-h) + 4px) 16px 16px;background:rgba(19,49,74,.3);overflow:auto}
.hud-overlay:empty{display:none}
.results,.join-card{width:min(580px,100%);max-height:100%;overflow:auto;padding:22px;border-radius:24px;background:var(--adria-card);border:1px solid var(--adria-line);box-shadow:var(--adria-shadow-lift);text-align:center}
.results h2,.join-card h2{font-size:1.5rem;margin:4px 0}
.trophy svg{width:92px;height:92px;margin:0 auto 4px}
.trophy-sun{fill:var(--adria-sun-soft)}.trophy-cup{fill:var(--adria-sun)}.trophy-handle{fill:none;stroke:var(--adria-sun);stroke-width:5}.trophy-base{fill:var(--adria-terracotta)}.trophy-star{fill:#fff}
.ranking{list-style:none;padding:0;margin:14px 0 6px;display:grid;gap:6px;text-align:left}
.ranking li{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:14px;border:1px solid var(--adria-line)}
.ranking li.is-winner{background:var(--adria-sun-soft);border-color:var(--adria-sun)}
.ranking .rank{width:18px;font-weight:750;color:#4a5662;text-align:center}
.ranking strong{display:grid;justify-items:end;line-height:1.15;font-variant-numeric:tabular-nums}
small.is-up{color:var(--adria-pine);font-weight:700}small.is-down{color:var(--adria-terracotta);font-weight:700}
.awards-title{margin-top:12px;font-weight:750;letter-spacing:.08em;font-size:.8rem;color:#4a5662}
.awards{list-style:none;padding:0;margin:8px 0 16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:8px;text-align:left}
.awards li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:var(--adria-sand)}
.award-icon{font-size:1.5rem;line-height:1.2}
.awards span{display:grid;line-height:1.3;min-width:0}
.awards small{color:#4a5662;font-weight:700}
.awards em{font-style:normal;font-size:.8rem;color:#4a5662}
.join-card .qr{width:min(240px,60%);margin:12px auto}
.join-card .lobby-code{justify-content:center}
.join-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.join-list li{display:flex;align-items:center;gap:6px;padding:4px 12px 4px 4px;border-radius:var(--adria-radius-pill);background:var(--adria-sand)}
.join-list small{color:#4a5662}

/* Wide screens and the chip-count column */
.hud-roster{display:none}
.roster-title{font-size:.72rem;letter-spacing:.14em;font-weight:750;color:#4a5662;margin:0 4px 8px}
.roster-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.player-chip{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:16px;background:rgba(255,253,248,.7);border:1px solid var(--adria-line)}
.player-chip.is-current{border-color:var(--adria-sun);box-shadow:0 0 0 2px var(--adria-sun-soft)}
.player-chip.is-me{border-color:var(--ink)}
.player-chip.is-folded{opacity:.6}
.player-chip .score{display:grid;justify-items:end;line-height:1.15;font-weight:750;font-variant-numeric:tabular-nums}
@media (min-width:900px) and (min-height:560px){
  .stage[data-role=player]{--panel-w:calc(clamp(360px,30vw,430px) + 24px);--top-h:68px}
  .stage[data-role=player] .stage-world{bottom:12px}
  .stage[data-role=player] .hud-panel{left:auto;right:16px;top:calc(var(--top-h) + 4px);bottom:16px;width:calc(var(--panel-w) - 24px);max-height:none}
  .stage[data-role=player] .turn-card{max-height:none;overflow:visible}
  .stage[data-role=player] .panel-body{display:block}
  .stage[data-role=player][data-table=hidden] .hud-panel{right:auto;left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 32px))}
}
@media (min-width:1280px) and (min-height:560px){
  .stage{--roster-w:clamp(250px,18vw,330px)}
  .stage[data-table=hidden]{--roster-w:0px}
  .stage:not([data-table=hidden]) .hud-roster{display:block;position:absolute;z-index:5;left:16px;top:calc(var(--top-h) + 4px);width:calc(var(--roster-w) - 24px);max-height:calc(100% - var(--top-h) - 20px);overflow:auto;padding:14px 12px;border-radius:24px}
}
@media (max-width:899px),(max-height:559px){
  .stage[data-role=player][data-table=hidden] .hud-panel{top:calc(var(--top-h) + 2px)}
  /* Keep at least ~230px of table above the panel; the turn card scrolls instead (not while betting). */
  .stage[data-role=player][data-table=shown][data-sheet=closed] .turn-card:not(.is-raising){max-height:calc(100vh - var(--top-h) - 300px);max-height:calc(100dvh - var(--top-h) - 300px);overflow:auto}
  .lobby-code{padding:8px 12px}
  .lobby-code strong{font-size:1.3rem}
  .turn-body .row>button{font-size:.92rem}
}
@media (max-height:700px) and (max-width:899px){.stage[data-phase=lobby] .turn-sub{display:none}.my-hand{--cw:34px;padding:6px 10px}.turn-head>.avatar{width:36px;height:36px}.phase-status{font-size:1.05rem}}
.status-short{display:none}
@media (max-width:440px){
  .room-word,.chip.is-screen span,button.pill span{display:none}
  .chip{padding:0 12px}
  button.pill{width:42px;padding:0}
  .phase-status{font-size:1.1rem}
}
@media (max-width:400px){
  .hud-top{gap:6px}
  .hud-brand,.stage[data-role=player] .chip.is-screen{display:none}
  .chip{padding:0 10px}
  .status-long{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .status-short{display:inline}
}

/* Shared screen: the table fills the window, chip count left, turn and latest moves right. */
body.is-display .stage{font-size:clamp(15px,1.1vw,30px);--top-h:clamp(66px,7vh,120px)}
.stage[data-role=display]{--panel-w:calc(clamp(320px,24vw,600px) + 32px)}
.stage[data-role=display] .stage-world{bottom:14px}
.stage[data-role=display] .hud-top{top:16px;left:16px;right:16px}
.stage[data-role=display] .chip{min-height:2.8em;font-size:.9em;padding:0 1.1em}
.stage[data-role=display] .hud-brand img{width:2.8em;height:2.8em}
.stage[data-role=display] button.icon-only{width:2.9em;height:2.9em;min-height:0}
.hud-right{position:absolute;z-index:5;right:16px;top:calc(var(--top-h) + 4px);bottom:16px;width:calc(var(--panel-w) - 32px);display:flex;flex-direction:column;gap:12px;overflow:auto}
.hud-turn{border-radius:24px}
.hud-turn .turn-card{max-height:none;padding:1em 1.1em}
.hud-turn .phase-status{font-size:1.5em}
.hud-turn .turn-head>.avatar{width:2.6em;height:2.6em}
.hud-turn .result-rows{margin-top:.8em}
.hud-turn .best-five{--cw:clamp(20px,1.5vw,40px)}
.hud-side{display:grid;gap:12px}
.side-card{padding:1em 1.1em;border-radius:24px}
.side-card .eyebrow{font-size:.72em;color:#4a5662}
.side-card ol,.pot-list{list-style:none;padding:0;margin:.4em 0 0;display:grid;gap:.3em}
.side-card li{font-size:.9em;padding:.3em 0;border-bottom:1px dashed var(--adria-line)}
.pot-list li{display:flex;justify-content:space-between}
.stage[data-role=display] .results,.stage[data-role=display] .join-card{width:min(860px,94%);font-size:1.05em;padding:1.6em}
.stage[data-role=display] .join-card .qr{width:min(320px,34vh)}
@media (max-width:1100px){.stage[data-role=display]{--panel-w:calc(clamp(280px,32vw,380px) + 32px)}}

/* Floating layer: announcements, flying cards and chips, bubbles, confetti (public/fx.js). */
.fx-layer{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden}
.fly-card{position:fixed;z-index:2;border-radius:5px;border:2px solid #fffdf8;box-shadow:0 2px 6px rgba(19,49,74,.3);background:repeating-linear-gradient(45deg,#265344,#265344 5px,#285948 5px,#285948 6px)}
.fly-chip{position:fixed;z-index:2;border-radius:50%;background:var(--adria-seaplane);border:2px dashed #fbe7b5;box-shadow:0 1px 2px rgba(0,0,0,.35)}
.confetti{position:fixed;inset:0;width:100vw;height:100vh}
.announce{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 76px);transform:translate(-50%,0);width:max-content;max-width:min(460px,calc(100vw - 32px));padding:12px 24px 14px;border-radius:18px;background:var(--adria-ink);color:#fff;text-align:center;box-shadow:var(--adria-shadow-lift);z-index:3}
.announce .kicker{display:block;font-size:.75rem;font-weight:700;letter-spacing:.1em;color:var(--adria-sun-soft)}
.announce .title{display:block;font-size:1.3rem;line-height:1.35;margin-top:2px}
.announce .sub{display:block;font-size:.875rem;margin-top:2px;color:#eef3ef}
.announce.tone-win{background:var(--adria-pine)}
.announce.tone-allin{background:var(--adria-terracotta)}
.announce.big{top:16%;padding:1.2vw 3vw 1.4vw;max-width:min(70vw,1100px);border-radius:1.4vw}
.announce.big .kicker{font-size:clamp(14px,1.2vw,28px)}.announce.big .title{font-size:clamp(28px,3.2vw,72px)}.announce.big .sub{font-size:clamp(16px,1.5vw,34px)}
.bubble{position:fixed;z-index:4;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,0)}
.bubble-face{display:block;min-width:1.9em;padding:.12em .45em;border-radius:var(--adria-radius-pill);background:var(--adria-card);border:1px solid var(--adria-line);color:var(--ink);font-size:1.5rem;font-weight:700;line-height:1.35;text-align:center;box-shadow:var(--adria-shadow)}
.bubble.is-tag .bubble-face{font-size:.85rem;padding:.2em .8em;background:var(--ink);color:#fff;border-color:var(--ink)}
.bubble-name{margin-top:4px;padding:2px 9px;border-radius:var(--adria-radius-pill);background:var(--adria-ink);color:#fff;font-size:.7rem;font-weight:650}

/* Home: take a seat back on a new phone; dialogs used by the room */
.transfer-entry{max-width:calc(var(--wrap) + 48px);margin:-34px auto 56px;padding:0 24px}
.transfer-entry summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-weight:650;font-size:.92rem}
.transfer-entry form{display:grid;gap:14px;margin-top:10px;padding:20px;border-radius:var(--adria-radius-card);background:var(--adria-card);border:1px solid var(--line);max-width:620px}
.transfer-entry p{font-size:.9rem;color:var(--muted)}
.join-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
dialog.is-menu{width:min(380px,calc(100% - 24px))}
.menu-list{display:grid;gap:2px}
.menu-item{display:flex;justify-content:flex-start;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 14px;border:0;border-radius:14px;background:transparent;color:var(--ink);font-weight:600;text-decoration:none}
button.menu-item:hover,a.menu-item:hover{background:var(--adria-sand);filter:none}
.choice{display:flex;gap:12px;align-items:flex-start;padding:8px 0;font-weight:400}
.choice input{width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0;flex:none;accent-color:var(--ink)}
.choice span{display:grid}
.modal-body input[type=range]{min-height:0;padding:0;border:0;background:transparent;accent-color:var(--ink)}
.share-preview{display:block;width:100%;border-radius:12px;border:1px solid var(--line)}
#share-text{width:100%;margin-top:8px;padding:10px;border:1px solid var(--adria-line-strong);border-radius:12px;font:inherit;font-size:.85rem;resize:vertical;background:var(--adria-card);color:var(--ink)}
.modal-actions .button{flex-grow:1}
@media (max-width:520px){.join-fields{grid-template-columns:1fr}.transfer-entry{margin-top:-20px}}

/* Guide pages (hand rankings, side pots) and the guide links under the rules page and each guide. */
.guide-page .band-inner{padding-top:24px;padding-bottom:30px}
.guide{max-width:872px;background:var(--panel);border:1px solid var(--line);border-radius:var(--adria-radius-card);padding:30px 34px;line-height:1.85}
.guide h2{font-size:1.35rem;margin:34px 0 12px}
.guide h2:first-child{margin-top:0}
.guide p+p,.guide ul+p,.guide ol+p,.guide .cards+p,.guide p+.cards{margin-top:14px}
.guide :is(ul,ol){margin:12px 0 0;padding-left:1.4em;display:grid;gap:8px}
.guide>.cards{justify-content:flex-start;margin-top:12px}
.guide .card{width:46px;height:65px;padding:5px}
.guide .card b{font-size:1.15rem}
.guide .card svg{width:18px;height:19px}
.guide-cta{margin-top:30px}
.hand-chart{list-style:none;padding:0!important;gap:0!important;border-top:1px solid var(--line)}
.hand-chart li{display:grid;grid-template-columns:2.2em minmax(0,1fr) auto;gap:6px 18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.hand-rank{font:italic 1.25rem var(--adria-font-display);color:var(--adria-terracotta)}
.hand-text h3{font-size:1.05rem;line-height:1.4}
.hand-text p{margin:2px 0 0;color:var(--muted);font-size:.95rem;line-height:1.6}
.hand-text .hand-count{font-size:.82rem}
.hand-chart .cards{gap:6px}
.table-scroll{overflow-x:auto;margin:14px 0 6px;border:1px solid var(--line);border-radius:var(--adria-radius-control)}
.table-scroll table{border-collapse:collapse;width:100%;font-size:.95rem;line-height:1.6}
.table-scroll th,.table-scroll td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.table-scroll thead th{background:var(--adria-sand);font-size:.85rem}
.table-scroll tbody tr:last-child>*{border-bottom:0}
.guide-nav{padding-top:30px;padding-bottom:10px}
.guide-nav ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:0 24px}
.guide-nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
@media (max-width:640px){
  .guide{padding:22px 18px}
  .hand-chart li{grid-template-columns:2em minmax(0,1fr)}
  .hand-chart .cards{grid-column:2;justify-content:flex-start}
  .guide .card{width:42px;height:59px}
  .table-scroll{border:0;overflow:visible}
  .table-scroll thead{display:none}
  .table-scroll :is(tbody,tr,th,td){display:block}
  .table-scroll tr{border:1px solid var(--line);border-radius:var(--adria-radius-control);margin-bottom:10px;overflow:hidden}
  .table-scroll tbody th{background:var(--adria-sand)}
  .table-scroll td::before{content:attr(data-label);display:block;font-size:.75rem;font-weight:650;color:var(--muted)}
  .table-scroll tbody tr:last-child>*{border-bottom:1px solid var(--line)}
  .table-scroll tr>:last-child{border-bottom:0}
}
