/* 4 Princes — the game hubs (/play/<game>/, 4p-game-hub-v1). Palette and buttons: 4p-platform.css. */
.hub{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.hub-head{display:flex;align-items:center;gap:14px;margin-bottom:4px}
.hub-head .gicon{width:52px;height:52px;border-radius:22%;flex:none}
.hub-back{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-8px;border-radius:50%;color:var(--text);flex:none}
.hub-back:hover,.hub-back:focus-visible{background:rgba(255,255,255,.07);color:var(--gold-soft)}
.hub-title{min-width:0}
.hub-title h1{font-size:28px;line-height:1.15;margin:0}
.hub-title p{margin:2px 0 0;color:var(--muted);font-size:15px;line-height:1.35}
.hub-card{display:flex;gap:14px;align-items:flex-start;background:var(--panel-2);border:1px solid var(--line);border-radius:18px;padding:18px}
.hub-card h2{font-size:20px;line-height:1.2;margin:0}
.hub-card p{margin:0}
.hub-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hub-ic{width:30px;height:30px;flex:none;color:var(--gold-soft);margin-top:1px}
.hub-sub{color:var(--muted);font-size:15px}
.hub-facts{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:15px;color:var(--muted)}
.hub-facts b{color:var(--text);font-weight:700;white-space:nowrap}
.hub-facts i{font-style:normal;opacity:.6}
.hub-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.hub-btns form{display:contents}
.hub .btn{margin-top:0;min-height:48px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.hub-btns .btn{flex:1 1 150px}
.hub-link{font-weight:600;padding:8px 4px}
/* Play again: the first card, one big button */
.hub-top{align-items:center;border-color:rgba(226,176,74,.5);background:radial-gradient(420px 200px at 100% 0%,rgba(226,176,74,.16),transparent 60%),var(--panel-2)}
.hub-top .hub-ic{width:36px;height:36px;margin:0}
.hub-top .hub-what{color:var(--gold-soft);font-weight:700;font-size:16px}
.hub-top>.btn,.hub-top>form .btn{min-width:108px;font-size:17px}
.hub-top>form{display:contents}
.hub-daily{border-color:rgba(226,176,74,.3)}
.hub-solo{background:transparent}
/* the entry choice: one compact row (Duel and Group) */
.hub-stakes{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:2px 0;scroll-margin-top:90px}
.hub-stakes span{color:var(--muted);font-weight:700;font-size:14px;margin-right:2px}
.hub-stakes .hub-unit{margin:0 0 0 2px;font-weight:600}
.hub-stakes a{min-width:52px;min-height:40px;padding:8px 12px;border-radius:999px;border:1px solid var(--line);color:var(--text);text-decoration:none;font-weight:700;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.hub-stakes a.on{background:var(--gold);border-color:var(--gold);color:#1b2130}
.hub-stakes a:not(.on):hover{border-color:var(--gold)}
.hub-more{text-align:center;color:var(--muted);font-size:14px;margin-top:6px}
/* the sign-up / confirm prompt */
.hub-gate{position:fixed;inset:0;z-index:60;background:rgba(10,13,20,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.hub-gate[hidden]{display:none}
.hub-gate-box{position:relative;width:100%;max-width:460px;max-height:calc(100vh - 32px);overflow:auto}
.hub-gate-box .card{margin:0}
.hub-gate-x{position:absolute;top:8px;right:10px;width:40px;height:40px;border:0;background:none;color:var(--text);font-size:28px;line-height:1;cursor:pointer;z-index:1}
body.hub-noscroll{overflow:hidden}
@media (max-width:599px){
  .hub-card{padding:16px 14px;gap:12px}
  .hub-title h1{font-size:24px}
  .hub-head .gicon{width:44px;height:44px}
  .hub-top{flex-wrap:wrap}
  .hub-top>.btn,.hub-top>form .btn{flex:1 1 100%}
}
