/* hoplobby.com chrome for the card game pages (scripts/seo/cardroom.ts): the same header and footer as the game
   landing pages (scripts/seo/games.css), breadcrumbs, the card tiles, the HopLobby band, and fitting the table to
   the screen. Loaded last, after the games' own styles. */
.wrap{width:min(1160px,100% - 32px);margin-inline:auto}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;z-index:9;background:var(--lime);color:var(--ink);padding:8px 14px;border-radius:10px}
body.cardroom{background:var(--ink)}
body.cardroom::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(900px 600px at 80% 0%,rgba(43,63,140,.3),transparent 65%),radial-gradient(700px 500px at 0% 100%,rgba(171,167,248,.06),transparent 60%)}

/* Header (games.css .top) */
.top{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;background:rgba(20,24,34,.9);backdrop-filter:blur(10px)}
.top-row{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.top .brand{display:inline-flex;align-items:center;text-decoration:none}
.top .lockup{display:block}
.top nav{display:flex;align-items:center;gap:18px;font-size:15px}
.top nav a:not(.btn){color:var(--muted);text-decoration:none;font-weight:600}
.top nav a:not(.btn):hover{color:var(--paper)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border-radius:999px;background:var(--lime);color:var(--ink);font:700 15px/1 var(--body);text-decoration:none;white-space:nowrap}
.btn:hover{filter:brightness(1.05);color:var(--ink)}
.account-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border:1px solid var(--line-strong);border-radius:999px}
.top nav a.account-chip{color:var(--paper)}
.account-chip[hidden]{display:none}
.account-chip img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.account-chip span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu{display:none;position:relative}
.menu summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;border:1px solid var(--line-strong);color:var(--paper);cursor:pointer}
.menu summary::-webkit-details-marker{display:none}
.menu[open] .i-bars,.menu:not([open]) .i-x{display:none}
.menu-panel{position:absolute;right:0;top:calc(100% + 14px);width:min(260px,calc(100vw - 32px));display:grid;padding:8px;background:var(--surface);border:1px solid var(--line-strong);border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.45)}
.top nav .menu-panel a{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:10px;color:var(--paper);font-size:17px}
.top nav .menu-panel a:hover{background:var(--surface-2)}
@media (max-width:640px){.top nav{gap:10px}.top nav>a:not(.btn):not(.account-chip){display:none}.menu{display:block}.top .create.when-wide{display:none}.account-chip span{display:none}.account-chip{padding:4px}}
@media (max-width:370px){.top .lockup{width:112px;height:auto}}

/* Footer (games.css .foot) */
.foot{border-top:1px solid var(--line);padding:28px 0 40px;color:var(--faint);font-size:15px;margin-top:24px}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.foot .brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--paper);font-weight:700}
.foot nav{display:flex;flex-wrap:wrap;gap:18px}.foot nav a{color:var(--muted);text-decoration:none}

/* Breadcrumbs in the intro */
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 14px;padding:0;font-size:14px;color:var(--faint)}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--line-strong)}
.crumbs a{color:var(--faint);text-decoration:none}.crumbs a:hover{color:var(--paper)}
.intro .updated{margin-top:4px}

/* More card games, and the hub */
.more-cards{padding:56px 0 8px}
.more-cards h2{font-size:32px;letter-spacing:-.03em;margin-bottom:20px}
.card-tiles{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.card-tile{display:grid;gap:6px;height:100%;padding:18px 20px;border:1px solid var(--line-strong);border-radius:18px;background:var(--surface);text-decoration:none;transition:border-color .15s,transform .15s}
.card-tile:hover{border-color:var(--lime);transform:translateY(-2px);color:inherit}
.card-tile strong{font:800 20px/1.2 var(--display);letter-spacing:-.02em}
.card-tile span{color:var(--muted);font-size:14px;line-height:1.45}
.card-tile small{color:var(--lime);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.hub-intro{border-bottom:0}
.cardroom-hub .more-cards{padding-top:24px}

/* HopLobby band */
.hl-band{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:40px;align-items:center;margin:56px 0 24px;padding:40px;border:1px solid var(--line-strong);border-radius:28px;background:linear-gradient(135deg,var(--surface),var(--ink-soft))}
.hl-band h2{font-size:40px;letter-spacing:-.04em;margin:8px 0 12px}
.hl-band p{color:var(--muted)}
.hl-band .button{display:inline-flex;margin-top:24px;text-decoration:none;font-weight:700}
.hl-featured{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hl-featured a{display:grid;gap:2px;text-decoration:none}
.hl-featured img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px;margin-bottom:6px}
.hl-featured strong{font:800 16px/1.2 var(--display)}
.hl-featured span{color:var(--muted);font-size:13px;line-height:1.4}
@media (max-width:860px){.hl-band{grid-template-columns:1fr;padding:28px 20px}.hl-band h2{font-size:32px}}

/* The table on the page: never hidden behind the sticky header, and the felt logo stays off the controls on phones. */
.cardroom .game{scroll-margin-top:72px}
@media (max-width:767px){.cardroom .table-brand{display:none}.cardroom .top{position:relative}.cardroom .game{scroll-margin-top:8px}}
/* Your cards and their buttons stick to the bottom of the window while the table is taller than it (src/cardroom/entry.ts). */
.hand-dock{position:sticky;bottom:0;z-index:6;padding-bottom:max(6px,env(safe-area-inset-bottom));border-radius:0 0 24px 24px}
.hand-dock.stuck{background:linear-gradient(to top,var(--felt-deep) 72%,rgba(11,40,31,0))}
