:root {
  --bg: #f5f3ed;
  --surface: #ffffff;
  --surface-soft: #f7f6f1;
  --surface-muted: #eef2eb;
  --line: #dfe5dd;
  --text: #10130f;
  --muted: #5e665f;
  --muted-2: #7a817b;
  --green-900: #07382d;
  --green-850: #0b4336;
  --green-800: #0f503f;
  --green-700: #196b54;
  --green-600: #1f8c67;
  --green-500: #31a77b;
  --green-300: #bfe1cf;
  --gold: #c8a768;
  --warning: #f0c05a;
  --warning-2: #faf0d4;
  --danger: #be4d4d;
  --danger-soft: #fdecec;
  --success: #258a54;
  --success-soft: #e9f7ed;
  --info-soft: #edf4ff;
  --shadow-lg: 0 18px 44px rgba(10, 22, 17, .12);
  --shadow-md: 0 10px 24px rgba(10, 22, 17, .08);
  --shadow-sm: 0 4px 12px rgba(10, 22, 17, .06);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1360px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--ui); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body.site-body { min-height: 100vh; }
.page-shell { max-width: 1440px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 0 1px rgba(13, 34, 27, .05); }
.top-browser { height: 74px; background: linear-gradient(#f4f4f4, #ececec); border-bottom: 1px solid #ddd; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.browser-dots { display: flex; gap: 8px; }
.browser-dots span { width: 14px; height: 14px; border-radius: 50%; display: block; }
.browser-dots span:nth-child(1){ background:#f56e63; } .browser-dots span:nth-child(2){ background:#e8b645; } .browser-dots span:nth-child(3){ background:#61c454; }
.browser-bar { flex: 1; height: 44px; border-radius: 28px; background: #f6f6f6; border: 1px solid #d6d6d6; display:flex; align-items:center; padding: 0 24px; color: #737373; font-size: 18px; }
.browser-actions { display:flex; gap: 18px; color:#666; font-size: 26px; }
.site-header { height: 88px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:0 30px; }
.header-left, .header-right { display:flex; align-items:center; gap:28px; }
.brand { display:flex; align-items:center; gap:14px; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.main-nav { display:flex; align-items:center; gap:24px; }
.main-nav a { font-size: 18px; color: #1a1e1b; padding: 10px 8px; }
.main-nav a.active { color: var(--green-800); font-weight: 600; }
.header-divider { width: 1px; height: 40px; background: var(--line); }
.elo { font-size: 19px; }
.elo strong { color: var(--green-700); }
.profile-pill { display:flex; align-items:center; gap:14px; font-size:18px; }
.profile-pill img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.page-content { padding: 0; }
.hero-home { position: relative; min-height: 480px; color: white; display:grid; grid-template-columns: 1.15fr 1fr; gap: 32px; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.08), transparent 22%), linear-gradient(180deg, rgba(5,27,20,.12), rgba(5,27,20,.1)), url('../placeholders/hero-home-background.png') center/cover no-repeat; padding: 44px 56px 34px; overflow:hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: 14px; color: #e6dfbe; font-weight: 600; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: 74px; line-height: .98; margin: 18px 0 24px; letter-spacing: -.04em; }
.hero-copy { font-size: 23px; line-height: 1.25; max-width: 600px; }
.hero-actions { display:flex; gap:18px; margin: 28px 0 24px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; border-radius: 18px; border:1px solid transparent; font-weight: 600; cursor:pointer; }
.btn-lg { min-height: 64px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: linear-gradient(180deg, #168057, #126a48); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-secondary { background: rgba(255,255,255,.03); color: white; border-color: rgba(255,255,255,.88); }
.btn-secondary-dark { background: white; color: var(--green-800); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--green-900); border:1px solid var(--line); }
.btn-danger { background: transparent; color: #fff; border:1px solid #bb5049; }
.btn-block { width:100%; }
.hero-benefits { display:flex; gap:42px; align-items:flex-start; margin-top: 18px; }
.hero-benefit { display:flex; gap:12px; align-items:flex-start; font-size: 16px; line-height:1.35; }
.hero-benefit .icon { width: 26px; height:26px; border-radius:8px; border:1px solid rgba(255,255,255,.18); display:grid; place-items:center; font-size: 16px; }
.hero-art { position: relative; min-height: 430px; }
.note { position: absolute; color: #f4efdc; font-family: 'Brush Script MT', cursive; font-size: 26px; line-height: 1.2; opacity: .98; white-space: pre-line; }
.note.n1 { top: 88px; left: 40px; transform: rotate(-8deg); }
.note.n2 { right: 8px; top: 214px; transform: rotate(5deg); text-align:center; }
.art-deck { position: absolute; right: 170px; top: 92px; width: 240px; height: 170px; background: url('../placeholders/hero-home-deck-stack.png') center/contain no-repeat; }
.art-hand { position: absolute; right: 40px; bottom: -22px; width: 520px; height: 260px; background: url('../placeholders/hero-home-hand.png') center/contain no-repeat; }
.wood-edge { position:absolute; left:-20px; right:-20px; bottom:-32px; height: 76px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #9b6939, #6d4321); box-shadow: inset 0 4px 10px rgba(255,255,255,.14); }
.section { padding: 28px 34px 10px; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: 35px; margin:0; letter-spacing:-.03em; }
.section-subtitle { color: var(--muted); font-size: 17px; }
.cards-grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card, .game-card, .panel-card { background: var(--surface); border:1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.game-card { padding: 20px; display:flex; gap:18px; align-items:flex-start; min-height: 128px; }
.game-card .mini-card { width:60px; height:80px; border-radius:12px; border:1px solid #d8ded8; background:#f5f2e9; display:grid; place-items:center; font-size: 34px; box-shadow: 0 8px 14px rgba(10,22,17,.05); }
.game-card h3, .feature-card h3 { margin:0 0 8px; font-size: 22px; font-family: var(--serif); }
.game-card p, .feature-card p { margin:0; font-size: 16px; color: var(--muted); line-height:1.42; }
.badge { display:inline-flex; align-items:center; gap:8px; height:34px; border-radius:999px; padding:0 14px; font-size:16px; font-weight:600; }
.badge-success { background:#dff4e7; color:#206e47; } .badge-soon { background:#efe7d7; color:#7a6742; } .badge-warning{ background:var(--warning-2); color:#8f6924; }
.feature-card { padding: 26px; min-height: 170px; display:flex; gap:18px; }
.feature-card .icon-round { flex:0 0 70px; width:70px; height:70px; border-radius: 50%; background: #eef2e9; display:grid; place-items:center; color: var(--green-800); font-size: 34px; }
.site-footer { margin-top: 26px; border-top:1px solid var(--line); padding: 18px 32px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.site-footer .foot-right { display:flex; gap:40px; align-items:center; color: var(--muted); font-size: 16px; }
.site-footer .brand-lockup { display:flex; align-items:center; gap:14px; }
.site-footer .brand-lockup img { width: 42px; height: 42px; }
.foot-copy { font-size: 14px; color: var(--muted-2); margin-top: 8px; }
.hero-login { position: relative; min-height: 710px; background: url('../placeholders/login-hero-background.png') center/cover no-repeat; padding: 48px 54px 26px; color: white; overflow:hidden; }
.hero-login h1 { font-family: var(--serif); font-size: 78px; text-align:center; margin: 8px 0 0; line-height:1; }
.hero-login .sub { text-align:center; font-size: 23px; max-width: 760px; margin: 8px auto 0; }
.split-grid { display:grid; grid-template-columns: minmax(460px, 600px) 320px; justify-content:center; gap: 56px; align-items:start; margin-top: 36px; }
.auth-card { background: rgba(255,255,255,.95); color: var(--text); border-radius: 20px; border:1px solid rgba(214, 220, 212, .92); box-shadow: var(--shadow-lg); padding: 30px 36px 28px; }
.segmented { background:#efeee7; border:1px solid #dfdfd6; border-radius: 18px; padding: 6px; display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom: 22px; }
.segmented span, .seg-btn { height: 54px; border-radius: 14px; display:grid; place-items:center; font-weight: 600; font-size: 18px; }
.segmented .active, .seg-btn.active { background: linear-gradient(180deg, #156f4b, #0f5c3d); color:#fff; }
.field { display:flex; flex-direction:column; gap:10px; margin-bottom: 22px; }
.field label { font-size: 16px; font-weight: 600; color: #232722; }
.input, .select, textarea.input { height: 58px; border-radius: 16px; border:1px solid #dce3dc; background:#fff; padding: 0 16px; font-size: 17px; color: #222; width:100%; }
textarea.input { min-height: 130px; padding: 14px 16px; resize: vertical; }
.input-row { display:flex; gap:18px; }
.info-list { display:flex; flex-direction:column; gap: 40px; padding-top: 30px; }
.info-item { display:flex; gap:18px; }
.info-icon { width:74px; height:74px; border-radius:50%; border:1px solid rgba(255,255,255,.24); display:grid; place-items:center; font-size:34px; color:#dce8df; }
.info-item h4 { margin:0 0 8px; font-size: 22px; font-family: var(--serif); }
.info-item p { margin:0; font-size: 18px; line-height:1.4; color:#f7f3e8; }
.note-small { position:absolute; right: 110px; bottom: 82px; color:#efe9d7; font-family:'Brush Script MT', cursive; font-size: 24px; transform: rotate(-12deg); }
.decor-deck-corner { position:absolute; left: 0; bottom: 0; width: 180px; height: 180px; background: url('../placeholders/hero-home-deck-stack.png') left bottom/contain no-repeat; opacity:.95; }
.agent-hero, .subpage-hero { min-height: 200px; background: linear-gradient(180deg, rgba(9,34,27,.12), rgba(9,34,27,.04)), url('../placeholders/hero-home-background.png') center/cover no-repeat; color:#fff; padding: 34px 56px; position:relative; overflow:hidden; }
.agent-hero .mini-eyebrow, .subpage-hero .mini-eyebrow { text-transform: uppercase; letter-spacing: .25em; color:#e4dfc2; font-size: 14px; font-weight: 600; }
.agent-hero h1, .subpage-hero h1 { font-family: var(--serif); font-size: 72px; line-height: .95; margin: 12px 0 8px; }
.agent-hero .sub, .subpage-hero .sub { font-size: 20px; max-width: 780px; }
.banner-deck-right { position:absolute; right: 34px; top: 24px; width: 220px; height: 150px; background: url('../placeholders/agent-banner-cards.png') center/contain no-repeat; }
.banner-note { position:absolute; right: 200px; top: 36px; color:#efe9d7; font-family:'Brush Script MT', cursive; font-size: 24px; transform: rotate(-9deg); }
.two-col { display:grid; grid-template-columns: 1.55fr 1fr; gap: 24px; padding: 24px 32px; }
.panel-card { padding: 24px 26px; }
.panel-title { display:flex; align-items:center; gap:14px; font-family: var(--serif); font-size: 31px; margin: 0 0 8px; }
.panel-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.option-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radio-card { border:1px solid var(--line); border-radius:16px; padding: 18px; display:flex; gap:16px; align-items:flex-start; min-height: 122px; }
.radio-card.active { border-color: #58a887; box-shadow: inset 0 0 0 1px #58a887; }
.radio-card .dot { width: 22px; height: 22px; border-radius: 50%; border:2px solid #20362d; margin-top: 2px; position:relative; }
.radio-card.active .dot::after { content:""; position:absolute; inset:4px; border-radius:50%; background: var(--green-700); }
.radio-card .r-icon { font-size: 38px; width: 52px; text-align:center; }
.radio-card h4 { margin: 0 0 8px; font-size: 20px; }
.radio-card p { margin:0; font-size: 16px; color: var(--muted); }
.card-actions-row { display:flex; gap: 18px; align-items:center; margin-top: 22px; }
.success-inline { flex: 1; min-height: 76px; border-radius: 18px; background: #f6f8f3; border:1px solid var(--line); display:flex; align-items:center; gap:16px; padding: 0 22px; color: var(--green-800); }
.success-inline .big-check { width:44px; height:44px; border-radius:50%; background:#d8f0e0; display:grid; place-items:center; font-size: 28px; }
.info-stack { display:flex; flex-direction:column; gap: 24px; }
.info-row { display:grid; grid-template-columns: 64px 1fr; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .ic { width: 64px; height:64px; border-radius: 50%; background:#eef2e9; display:grid; place-items:center; font-size: 30px; color: var(--green-800); }
.info-row h4 { margin:0 0 8px; font-family: var(--serif); font-size: 22px; }
.info-row p { margin:0; color: var(--muted); line-height:1.45; font-size: 17px; }
.conventions-grid { display:grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 24px 28px; }
.data-table { width:100%; border-collapse: collapse; font-size: 16px; overflow:hidden; border-radius: 14px; }
.data-table th, .data-table td { border-bottom:1px solid var(--line); padding: 18px 14px; text-align:left; vertical-align:top; }
.data-table th { color:#46504a; font-weight:600; background:#fbfbf8; }
.data-table tr:last-child td { border-bottom:0; }
.searchbar { height: 56px; border-radius: 14px; border:1px solid var(--line); display:flex; align-items:center; gap:10px; padding:0 16px; color: var(--muted-2); background:#fff; }
.reminder-box { background: #fff6e7; border:1px solid #efc973; border-radius: 14px; padding: 18px 20px; color:#78521c; font-size: 16px; line-height:1.42; }
.action-links { display:flex; gap:26px; align-items:center; }
.action-links a { color: var(--green-800); font-weight: 600; }
.match-layout { display:grid; grid-template-columns: 1.55fr .8fr; gap: 18px; padding: 24px 28px; }
.choice-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 16px; }
.select-card { border:1px solid var(--line); border-radius: 16px; padding: 16px; display:flex; gap:16px; align-items:flex-start; position:relative; min-height: 126px; }
.select-card.active { border-color: #5aa888; box-shadow: inset 0 0 0 1px #5aa888; }
.select-card .radio { position:absolute; right: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border:2px solid #78817b; }
.select-card.active .radio { border-color:#1c6e56; }
.select-card.active .radio::after { content:""; position:absolute; inset:3px; background:#1c6e56; border-radius:50%; }
.type-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.partner-card { border:1px solid var(--line); border-radius: 16px; padding: 16px 18px; display:grid; grid-template-columns: 78px 1fr 120px 110px; align-items:center; gap: 18px; }
.partner-avatar { width: 74px; height: 74px; border-radius: 50%; background:#eef2e9; display:grid; place-items:center; font-size: 40px; color: var(--green-800); }
.side-stack { display:flex; flex-direction:column; gap: 16px; }
.side-bullet { display:grid; grid-template-columns: 56px 1fr; gap: 18px; align-items:start; }
.side-bullet .round { width: 56px; height: 56px; border-radius: 50%; background:#eef2e9; display:grid; place-items:center; color:var(--green-800); font-size: 28px; }
.stats-layout { display:grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 22px 30px; }
.sidebar { border-right:1px solid var(--line); padding-right: 20px; }
.profile-card { border:1px solid var(--line); border-radius: 18px; padding: 18px; }
.profile-card img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; }
.profile-card .name { font-family: var(--serif); font-size: 24px; font-weight:700; }
.side-nav { margin-top: 22px; display:flex; flex-direction:column; gap: 8px; }
.side-nav a { height: 56px; border-radius: 14px; padding:0 18px; display:flex; align-items:center; gap: 14px; font-size: 18px; color:#20312c; }
.side-nav a.active { background:#eef3ec; color: var(--green-800); }
.stats-grid-4 { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.metric-card { border:1px solid var(--line); border-radius: 18px; padding: 22px; min-height: 144px; }
.metric-card .topline { display:flex; align-items:center; gap: 12px; color:#20312c; font-size: 18px; margin-bottom: 12px; }
.metric-card .big { font-family: var(--serif); font-size: 62px; line-height: .95; margin: 4px 0; }
.metric-card .hint { color: var(--muted); font-size: 16px; }
.chart-card { border:1px solid var(--line); border-radius: 18px; padding: 20px; }
.chart-area { height: 310px; border:1px solid #dce3dc; border-radius: 18px; background: linear-gradient(180deg, rgba(246,251,246,.8), rgba(240,247,240,.95)); position:relative; overflow:hidden; }
.chart-grid { position:absolute; inset:0; background-image: linear-gradient(to right, rgba(150,160,155,.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(150,160,155,.18) 1px, transparent 1px); background-size: 110px 78px; }
.chart-line { position:absolute; inset: 20px 24px 26px 44px; }
.chart-line svg { width:100%; height:100%; }
.table-history { width:100%; border-collapse: collapse; font-size: 16px; }
.table-history th, .table-history td { padding: 12px 10px; border-bottom:1px solid var(--line); text-align:left; }
.badge-row { display:inline-flex; min-width:92px; justify-content:center; }
.admin-layout { display:grid; grid-template-columns: 280px 1fr; min-height: 940px; }
.admin-sidebar { background: linear-gradient(180deg, #09352b, #0c4738); color:#fff; padding: 28px 20px; display:flex; flex-direction:column; }
.admin-badge { border:1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; margin-bottom: 22px; background: rgba(255,255,255,.04); }
.admin-badge h4 { margin:0 0 8px; font-size: 18px; }
.admin-nav { display:flex; flex-direction:column; gap: 12px; }
.admin-nav a { height: 62px; border-radius: 16px; display:flex; align-items:center; gap: 16px; padding:0 18px; color:#eef4f0; }
.admin-nav a.active { background: rgba(71, 169, 119, .24); }
.admin-main { padding: 28px; }
.tab-row { display:flex; gap: 12px; margin: 20px 0 18px; }
.tab-pill { height: 46px; border:1px solid var(--line); border-radius: 14px; padding: 0 18px; display:inline-flex; align-items:center; color:#53605a; background:#fff; }
.tab-pill.active { background: var(--green-800); color:#fff; border-color: var(--green-800); }
.admin-grid { display:grid; grid-template-columns: 1.3fr .8fr; gap: 22px; }
.list-table td:first-child { font-weight: 600; }
.status-pill { display:inline-flex; align-items:center; height:34px; padding:0 14px; border-radius:999px; font-size:15px; font-weight:600; }
.status-pill.todo { background:#f4e7b2; color:#715a1d; } .status-pill.work { background:#dce8fb; color:#335789; } .status-pill.done { background:#dbf2e1; color:#216846; }
.case-panel { border:1px solid var(--line); border-radius: 18px; padding: 18px; }
.case-tabs { display:flex; gap: 26px; padding-bottom: 12px; border-bottom:1px solid var(--line); margin-bottom: 16px; }
.case-tabs .active { color: var(--green-800); font-weight: 700; border-bottom:2px solid var(--green-800); padding-bottom: 10px; margin-bottom: -13px; }
.case-quote { background:#f4f4f4; border-radius: 14px; padding: 18px; color:#5d6260; font-size: 17px; line-height:1.44; }
.actions-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.game-shell { background: #fff; }
.game-topbar { height: 108px; display:grid; grid-template-columns: 290px 1fr 320px; align-items:center; background: linear-gradient(180deg, #09392e, #083527); color: white; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.game-brandline { display:flex; align-items:center; gap: 18px; }
.suit-badge { width: 70px; height: 84px; border-radius: 14px; background:#f7f1e3; color:#06281f; display:grid; place-items:center; font-size: 42px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.game-title-wrap h1 { margin: 0; font-family: var(--serif); font-size: 28px; }
.game-title-wrap p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 16px; }
.scoreband { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align:center; }
.scorebox { position:relative; }
.scorebox::before { content:""; position:absolute; right:-13px; top:10px; bottom:10px; width:1px; background: rgba(255,255,255,.16); }
.scorebox:last-child::before { display:none; }
.scorebox .label { color:#dde9e1; font-size: 18px; }
.scorebox .value { font-size: 58px; font-weight: 700; font-family: var(--ui); color:#f0ebb7; line-height: .95; margin-top: 8px; }
.top-actions { display:flex; justify-content:flex-end; gap: 16px; }
.top-actions .btn { min-width: 150px; height: 60px; border-radius: 16px; font-size: 18px; }
.game-layout { display:grid; grid-template-columns: 1.8fr .62fr; }
.table-stage { position:relative; min-height: 850px; background: linear-gradient(180deg, rgba(3, 26, 20, .08), rgba(3, 26, 20, .03)), url('../placeholders/table-felt-background.png') center/cover no-repeat; overflow:hidden; }
.table-inner-line { position:absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.1); }
.table-seat { position:absolute; min-width: 190px; display:flex; flex-direction:column; gap:12px; color:#fff; }
.seat-chip { align-self:flex-start; height: 72px; min-width: 210px; border-radius: 40px; border:1px solid rgba(255,255,255,.5); background: rgba(7, 36, 27, .42); backdrop-filter: blur(6px); padding: 10px 22px; display:flex; align-items:center; gap:16px; }
.seat-chip .icon { width: 44px; height: 44px; border-radius:50%; background: rgba(255,255,255,.12); display:grid; place-items:center; font-size: 25px; }
.seat-chip .name { font-size: 18px; font-weight: 600; }
.seat-chip .meta { font-size: 15px; color: rgba(255,255,255,.82); }
.hand-back { height: 110px; display:flex; gap: -22px; }
.back-card { width: 68px; height: 100px; border-radius: 12px; background: linear-gradient(180deg, #305743, #1a3026); border: 3px solid rgba(241, 240, 232, .88); box-shadow: var(--shadow-sm); margin-left: -18px; position:relative; }
.back-card:first-child { margin-left: 0; }
.back-card::after { content:"♣"; position:absolute; inset:0; display:grid; place-items:center; color:#dbe2da; font-size: 28px; opacity: .85; }
.trick-card-slot, .trick-card { position:absolute; width: 110px; height: 160px; border-radius: 16px; background:#faf8f2; border:1px solid #e0ded7; box-shadow: var(--shadow-md); }
.trick-card-slot { border:3px dashed rgba(127, 233, 175, .6); background: transparent; }
.trick-card { display:flex; align-items:flex-start; justify-content:space-between; padding: 12px; font-family: var(--serif); }
.trick-card .val { font-size: 44px; line-height:1; font-weight:700; }
.trick-card .suit { font-size: 52px; line-height:1; }
.trick-card.red { color:#b6352d; }
.trick-card.black { color:#101211; }
.pill-banner { position:absolute; background: rgba(255,255,255,.94); color:#122018; border-radius: 18px; padding: 16px 28px; display:flex; align-items:center; gap:20px; font-family: var(--serif); font-size: 28px; box-shadow: var(--shadow-md); }
.pill-banner .timer { font-family: var(--ui); font-size: 22px; font-weight: 700; display:flex; align-items:center; gap: 8px; padding-left: 20px; border-left:1px solid #ced6cf; }
.trick-counter { position:absolute; padding: 10px 22px; border-radius: 999px; border:1px solid rgba(255,255,255,.55); background: rgba(6, 42, 31, .45); color:#fff; font-size: 20px; }
.player-hand { position:absolute; left: 118px; right: 150px; bottom: 16px; height: 250px; }
.hand-fan { display:flex; align-items:flex-end; justify-content:center; gap: 0; height: 100%; }
.play-card { width: 126px; height: 182px; border-radius: 16px; background:#fbf9f4; border:1px solid #dfded8; box-shadow: var(--shadow-md); margin-left: -20px; position:relative; transform-origin: bottom center; overflow: hidden; }
.play-card.first { margin-left: 0; }
.play-card:nth-child(1){ transform: rotate(-12deg) translateY(24px); }
.play-card:nth-child(2){ transform: rotate(-9deg) translateY(12px); }
.play-card:nth-child(3){ transform: rotate(-6deg) translateY(6px); }
.play-card:nth-child(4){ transform: rotate(-3deg); }
.play-card:nth-child(5){ transform: rotate(0deg); }
.play-card:nth-child(6){ transform: rotate(3deg); }
.play-card:nth-child(7){ transform: rotate(6deg) translateY(6px); }
.play-card:nth-child(8){ transform: rotate(9deg) translateY(12px); }
.play-card.selected { transform: rotate(0deg) translateY(-22px); box-shadow: 0 0 0 4px rgba(86, 209, 146, .35), var(--shadow-lg); }
.play-card .corner { position:absolute; left: 11px; top: 10px; font-family: var(--serif); font-size: 36px; font-weight: 700; }
.play-card .suit-big { position:absolute; inset:0; display:grid; place-items:center; font-size: 66px; }
.play-card.red { color:#b6352d; } .play-card.black { color:#111; }
.wood-frame-left, .wood-frame-right { position:absolute; bottom:-40px; width: 210px; height: 350px; background: linear-gradient(180deg, #855126, #613715); border-radius: 80px 80px 0 0; box-shadow: inset 0 8px 14px rgba(255,255,255,.1); }
.wood-frame-left { left:-66px; transform: rotate(14deg); }
.wood-frame-right { right:-66px; transform: rotate(-14deg); }
.game-sidebar { border-left:1px solid var(--line); background:#fff; padding: 24px; display:flex; flex-direction:column; }
.game-tabs { display:flex; gap: 40px; font-size: 22px; margin-bottom: 16px; }
.game-tabs .active { color: var(--green-900); font-weight: 700; border-bottom:3px solid var(--green-800); padding-bottom: 12px; }
.chat-list { display:flex; flex-direction:column; gap: 4px; flex: 1; overflow:auto; }
.chat-item { display:grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items:start; padding: 14px 0; border-bottom:1px solid #ecefea; }
.chat-item .bubble-ico { width: 50px; height: 50px; border-radius: 50%; background:#e9f0e7; display:grid; place-items:center; font-weight: 700; color: var(--green-800); font-size: 28px; }
.chat-item .speaker { font-size: 18px; font-weight: 600; }
.chat-item .message { font-size: 17px; color:#3c413f; margin-top: 6px; line-height:1.38; }
.chat-item .time { color:#79807b; font-size: 15px; }
.info-banner { background:#f3f4f2; border-radius: 16px; padding: 18px; color:#6a726d; display:flex; gap: 16px; margin: 12px 0 18px; font-size: 17px; }
.chat-input { height: 70px; border-radius: 16px; border:1px solid var(--line); padding: 0 18px; font-size: 18px; }
.quick-phrases { display:flex; gap: 10px; flex-wrap:wrap; margin-top: 12px; }
.quick-pill { height: 42px; border-radius: 999px; border:1px solid var(--line); padding: 0 16px; display:inline-flex; align-items:center; font-size: 15px; background:#fff; }
.action-panel { position:absolute; right: 18px; bottom: 90px; display:flex; flex-direction:column; gap: 12px; width: 220px; }
.action-panel .btn { height: 76px; border-radius: 18px; font-size: 22px; }
.bidding-center { position:absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 470px; background: rgba(255,255,255,.96); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px; }
.bidding-center h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 34px; }
.bidding-topline { display:flex; align-items:center; justify-content:space-between; gap:16px; background:#f4f3ef; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 18px; }
.bid-stepper { display:grid; grid-template-columns: 74px 1fr 74px; gap: 12px; margin-bottom: 14px; }
.bid-stepper button, .suit-grid button, .bidding-actions button { height: 56px; border-radius: 12px; border:1px solid #d9e0d9; background:#fff; font-size: 20px; }
.bid-value { height: 56px; border-radius: 12px; border:1px solid #d9e0d9; display:grid; place-items:center; font-family: var(--serif); font-size: 34px; }
.suit-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.suit-grid .active { background:#e7f4ed; border-color:#5da989; }
.mode-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bidding-actions { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.bidding-actions button:last-child { background: linear-gradient(180deg, #168057, #126a48); color:#fff; border-color:transparent; }
.result-hero { min-height: 820px; background: linear-gradient(180deg, rgba(5, 29, 22, .08), rgba(5, 29, 22, .04)), url('../placeholders/hero-home-background.png') center/cover no-repeat; color:#fff; padding: 28px; position:relative; overflow:hidden; }
.result-hero .eyebrow-center { text-align:center; letter-spacing:.28em; text-transform:uppercase; color:#e5ddbe; font-size: 14px; font-weight: 600; margin-top: 4px; }
.result-hero h1 { font-family: var(--serif); font-size: 78px; text-align:center; line-height:1; margin: 14px 0 12px; }
.result-hero .sub { text-align:center; font-family: var(--serif); font-size: 30px; }
.result-panel { width: 720px; margin: 36px auto 0; background: rgba(255,255,255,.95); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-lg); border:1px solid rgba(217,223,217,.95); padding: 24px 26px; }
.score-compare { display:grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items:center; }
.score-box { background:#f4f7f0; border:1px solid var(--line); border-radius: 16px; padding: 16px 22px; text-align:center; }
.score-box .caption { font-size: 16px; font-weight: 600; }
.score-box .number { font-family: var(--serif); font-size: 74px; line-height: 1; color: var(--green-800); margin-top: 10px; }
.score-box.right .number { color:#0e1420; }
.mini-stats-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 18px 0; color:#43504a; }
.summary-table { width:100%; border-collapse: collapse; font-size: 16px; margin: 10px 0 14px; }
.summary-table th, .summary-table td { padding: 10px 8px; border-bottom:1px solid var(--line); text-align:left; }
.summary-box { background:#edf3ea; border:1px solid var(--line); border-radius: 14px; padding: 16px 18px; display:flex; gap: 14px; align-items:flex-start; color:#31513f; }
.result-actions { display:flex; gap: 14px; margin-top: 18px; }
.result-deck-left { position:absolute; left: 10px; bottom: 30px; width: 220px; height: 180px; background: url('../placeholders/result-left-deck.png') center/contain no-repeat; }
.result-hand-right { position:absolute; right: 10px; bottom: 10px; width: 280px; height: 220px; background: url('../placeholders/result-right-hand.png') center/contain no-repeat; }
.handwritten-left, .handwritten-right { position:absolute; color:#efe8d2; font-family:'Brush Script MT', cursive; font-size: 24px; line-height:1.2; }
.handwritten-left { left: 84px; top: 224px; transform: rotate(-12deg); }
.handwritten-right { right: 76px; top: 382px; transform: rotate(-10deg); }
.hide-mobile { display:block; }
@media (max-width: 1280px) {
  .hero-home, .game-layout, .match-layout, .conventions-grid, .two-col, .stats-layout, .admin-grid { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; height:auto; padding:18px 20px; }
  .game-topbar { grid-template-columns:1fr; height:auto; gap:20px; padding:18px; }
  .scoreband { grid-template-columns: repeat(3, 1fr); }
  .table-stage { min-height: 900px; }
}
@media (max-width: 920px) {
  .top-browser, .hide-mobile { display:none; }
  .page-shell { max-width:100%; }
  .site-header, .section, .hero-login, .agent-hero, .subpage-hero, .admin-main { padding-left: 18px; padding-right: 18px; }
  .hero-home { grid-template-columns: 1fr; padding: 24px 18px 30px; min-height:auto; }
  .hero-title { font-size: 52px; }
  .cards-grid-3, .cards-grid-2, .stats-grid-4, .choice-row, .type-grid-2, .option-grid-2 { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; }
  .hero-benefits { flex-direction: column; gap: 16px; }
  .split-grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 22px; }
  .stats-layout { grid-template-columns: 1fr; padding:18px; }
  .sidebar { border-right:0; padding-right:0; }
  .admin-layout { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { border-left:0; border-top:1px solid var(--line); }
}



/* ===== V2 fidelity refinements ===== */
html, body { background: #ececeb; }
body.site-body { padding: 8px; }
.page-shell { border-radius: 18px; overflow: hidden; max-width: 1420px; box-shadow: 0 18px 48px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04); }
.site-header { height: 92px; padding: 0 38px; }
.brand-name { font-size: 44px; }
.main-nav { gap: 34px; }
.main-nav a { font-size: 17px; }
.profile-pill { gap: 12px; }
.profile-pill img { width: 54px; height: 54px; }
.hero-home { min-height: 476px; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 38px 56px 26px; }
.hero-title { font-size: 72px; max-width: 700px; }
.hero-copy { font-size: 25px; max-width: 700px; }
.hero-actions { margin: 26px 0 18px; }
.hero-actions .btn { min-width: 292px; }
.hero-benefits { gap: 30px; margin-top: 18px; }
.hero-benefit { font-size: 14px; }
.hero-benefit .icon { width: 28px; height: 28px; border-radius: 999px; }
.note.n1 { top: 88px; left: 106px; font-size: 27px; }
.note.n2 { right: 14px; top: 246px; font-size: 26px; }
.art-deck { right: 184px; top: 98px; width: 252px; height: 176px; }
.art-hand { right: 34px; bottom: -20px; width: 554px; height: 270px; }
.wood-edge { left: -28px; right: -28px; bottom: -42px; height: 92px; border-radius: 100px 100px 0 0; }
.section { padding: 18px 38px 14px; }
.section-head { margin-bottom: 14px; }
.section-title { font-size: 40px; }
.section-subtitle { font-size: 16px; }
.cards-grid-3 { gap: 20px; }
.game-card { min-height: 102px; padding: 16px 18px; border-radius: 16px; }
.game-card .mini-card { width: 56px; height: 74px; border-radius: 10px; }
.game-card h3 { font-size: 28px; }
.badge { height: 40px; font-size: 14px; padding: 0 18px; }
.feature-card { min-height: 136px; padding: 22px 24px; }
.feature-card .icon-round { width: 74px; height: 74px; }
.feature-card h3 { font-size: 22px; }
.feature-card p, .game-card p { font-size: 15px; }
.site-footer { padding: 14px 38px 14px; align-items: center; }
.site-footer .brand-lockup img { width: 44px; height: 44px; }
.foot-copy { margin-top: 2px; }
.hero-login { min-height: 730px; padding-top: 34px; }
.hero-login h1 { font-size: 76px; }
.hero-login .sub { font-size: 21px; }
.split-grid { gap: 62px; margin-top: 34px; }
.auth-card { padding: 28px 34px 26px; border-radius: 18px; }
.segmented .seg-btn { height: 52px; }
.info-item h4 { font-size: 26px; }
.info-item p { font-size: 17px; }
.agent-hero, .subpage-hero { min-height: 232px; padding: 30px 48px; }
.agent-hero h1, .subpage-hero h1 { font-size: 74px; }
.agent-hero .sub, .subpage-hero .sub { font-size: 22px; }
.banner-note { right: 224px; top: 38px; }
.two-col, .conventions-grid, .match-layout, .stats-layout { padding-left: 24px; padding-right: 24px; }
.panel-card { border-radius: 18px; padding: 24px; }
.panel-title { font-size: 33px; }
.option-grid-2 { gap: 16px; }
.radio-card, .select-card, .partner-card { border-radius: 16px; }
.select-card { min-height: 132px; }
.partner-card { grid-template-columns: 78px 1fr 116px 110px; }
.stats-layout { grid-template-columns: 250px 1fr; }
.section-head .section-title { line-height: .95; }
.stats-grid-4 .metric-card { min-height: 148px; }
.metric-card .big { font-size: 60px; }
.chart-card, .metric-card, .profile-card { border-radius: 18px; }
.admin-layout { min-height: 980px; }
.admin-sidebar { padding: 24px 20px; }
.admin-nav a { height: 58px; }
.game-topbar { height: 104px; grid-template-columns: 320px 1fr 300px; padding: 0 34px; }
.game-title-wrap h1 { font-size: 30px; }
.scorebox .label { font-size: 16px; }
.scorebox .value { font-size: 58px; }
.top-actions .btn { min-width: 136px; height: 56px; border-radius: 16px; }
.game-layout { grid-template-columns: 1.82fr .6fr; }
.table-stage { min-height: 818px; }
.table-seat { min-width: 196px; }
.seat-chip { min-width: 248px; height: 66px; border-radius: 36px; padding: 10px 20px; }
.seat-chip .name { font-size: 16px; }
.seat-chip .meta { font-size: 13px; }
.hand-back { height: 96px; }
.back-card { width: 64px; height: 92px; border-radius: 11px; border-width: 3px; }
.trick-card, .trick-card-slot { width: 96px; height: 142px; border-radius: 14px; }
.trick-card .val { font-size: 40px; }
.trick-card .suit { font-size: 48px; }
.trick-counter { font-size: 18px; padding: 8px 20px; }
.pill-banner { border-radius: 16px; font-size: 24px; padding: 14px 24px; }
.pill-banner .timer { font-size: 20px; }
.player-hand { left: 104px; right: 120px; bottom: 18px; height: 230px; }
.play-card { width: 112px; height: 166px; border-radius: 15px; }
.play-card .corner { font-size: 32px; }
.play-card .suit-big { font-size: 58px; }
.action-panel { width: 200px; right: 20px; bottom: 72px; }
.action-panel .btn { height: 64px; font-size: 18px; }
.game-sidebar { padding: 18px 22px; }
.game-tabs { font-size: 18px; gap: 28px; margin-bottom: 8px; }
.chat-item { grid-template-columns: 50px 1fr auto; }
.chat-item .bubble-ico { width: 42px; height: 42px; font-size: 24px; }
.chat-item .speaker { font-size: 16px; }
.chat-item .message { font-size: 15px; }
.chat-input { height: 62px; }
.quick-pill { height: 40px; font-size: 14px; }
.bidding-center { width: 462px; border-radius: 18px; }
.result-hero { min-height: 820px; padding: 28px 28px 32px; }
.result-hero h1 { font-size: 76px; }
.result-hero .sub { font-size: 28px; }
.result-panel { width: 700px; padding: 22px 24px; }
.score-box .number { font-size: 70px; }
.result-actions .btn { min-width: 160px; }
.handwritten-left { left: 78px; top: 218px; }
.handwritten-right { right: 64px; top: 376px; }

/* finer browser look */
.top-browser { height: 62px; padding: 10px 18px; }
.browser-bar { height: 40px; font-size: 16px; }
.browser-actions { font-size: 22px; }

/* utility */
.mockup-tight { letter-spacing: -.02em; }

@media (max-width: 920px) {
  body.site-body { padding: 0; }
  .page-shell { border-radius: 0; }
  .hero-title, .hero-login h1, .agent-hero h1, .subpage-hero h1, .result-hero h1 { font-size: 50px; }
  .hero-copy, .hero-login .sub, .agent-hero .sub, .subpage-hero .sub { font-size: 18px; }
}




/* ===== V3 pixel-tight refinements ===== */
:root {
  --page-bg: #ecebe8;
  --shell-radius: 20px;
}
html, body { background: var(--page-bg); }
body.site-body { padding: 10px; }
.page-shell {
  border-radius: var(--shell-radius);
  overflow: hidden;
  max-width: 1422px;
  box-shadow:
    0 24px 60px rgba(11, 30, 23, .08),
    0 6px 20px rgba(11, 30, 23, .04),
    0 0 0 1px rgba(11, 30, 23, .05);
}
.top-browser {
  height: 58px;
  padding: 10px 18px;
  gap: 16px;
  background: linear-gradient(180deg,#efefef,#e5e5e5);
}
.browser-dots span { width: 13px; height: 13px; }
.browser-actions { font-size: 18px; gap: 14px; min-width: 88px; }
.browser-bar {
  height: 38px;
  border-radius: 20px;
  font-size: 15px;
  color: #7a7a7a;
  padding: 0 18px;
  background: linear-gradient(180deg,#efefef,#f4f4f4);
}
.site-header {
  height: 86px;
  padding: 0 36px;
  background: #fff;
}
.brand { gap: 16px; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-size: 45px; letter-spacing: -.04em; }
.main-nav { gap: 32px; }
.main-nav a {
  font-size: 16px;
  padding: 8px 6px;
  position: relative;
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -16px;
  height: 2px;
  background: var(--green-700);
  border-radius: 2px;
}
.header-left, .header-right { gap: 22px; }
.elo { font-size: 18px; }
.profile-pill { font-size: 17px; gap: 12px; }
.profile-pill img { width: 52px; height: 52px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(7,56,45,.12); }
.btn {
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 20px rgba(10,65,46,.18); }
.btn-secondary, .btn-secondary-dark, .btn-ghost { box-shadow: 0 4px 12px rgba(10,22,17,.05); }
.hero-home {
  min-height: 478px;
  grid-template-columns: 1.06fr 1fr;
  gap: 0;
  padding: 34px 56px 18px;
}
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 20%, rgba(239,215,163,.08), transparent 19%);
  pointer-events: none;
}
.eyebrow { font-size: 13px; letter-spacing: .32em; }
.hero-title {
  font-size: 61px;
  max-width: 620px;
  margin: 18px 0 14px;
  line-height: .98;
}
.hero-copy {
  font-size: 23px;
  max-width: 680px;
  line-height: 1.12;
}
.hero-actions { gap: 16px; margin: 20px 0 18px; }
.hero-actions .btn { min-width: 286px; }
.hero-benefits { gap: 24px; align-items: flex-start; }
.hero-benefit {
  color: #f4f4ef;
  font-size: 14px;
  min-width: 180px;
}
.hero-benefit .icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}
.hero-art { min-height: 390px; }
.note {
  font-size: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.note.n1 { left: 108px; top: 82px; }
.note.n2 { right: 14px; top: 258px; }
.art-deck {
  right: 178px;
  top: 82px;
  width: 232px;
  height: 170px;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.18));
}
.art-hand {
  right: 18px;
  bottom: -8px;
  width: 560px;
  height: 262px;
}
.wood-edge {
  left: -10px;
  right: -10px;
  bottom: -44px;
  height: 102px;
  background: linear-gradient(180deg, #935b2e 0%, #7f481d 34%, #5a2f13 100%);
}
.section { padding: 16px 38px 14px; }
.section-head { margin: 4px 0 14px; }
.section-title { font-size: 42px; }
.section-subtitle { font-size: 15px; }
.cards-grid-3 { gap: 18px; }
.game-card, .feature-card, .metric-card, .chart-card, .profile-card, .panel-card, .table-card, .admin-card {
  border-radius: 16px;
}
.game-card {
  min-height: 100px;
  padding: 14px 18px;
  border: 1px solid #e4e9e1;
}
.game-card h3 { font-size: 24px; margin: 0 0 2px; }
.game-card p { font-size: 14px; color: #49514c; }
.mini-card {
  width: 54px; height: 74px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(8,44,34,.08), 0 8px 12px rgba(10,22,17,.05);
}
.badge { height: 36px; padding: 0 16px; font-size: 13px; }
.feature-card {
  min-height: 132px;
  padding: 22px 22px;
  border: 1px solid #e4e9e1;
}
.icon-round { width: 74px; height: 74px; background: #eff4ed; border: 1px solid #dde7dd; }
.feature-card h3 { font-size: 21px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; line-height: 1.32; }
.site-footer {
  min-height: 112px;
  padding: 12px 38px 14px;
  border-top: 1px solid var(--line);
}
.foot-right { gap: 24px; flex-wrap: wrap; }
.foot-right a, .foot-right span { font-size: 14px; color: #5f665f; }
.brand-lockup img { width: 42px; height: 42px; }
.foot-copy { font-size: 14px; }
.hero-login {
  min-height: 735px;
  padding: 36px 44px 42px;
}
.hero-login h1 {
  font-size: 64px;
  line-height: 1;
  margin: 8px 0 10px;
}
.hero-login .sub { font-size: 19px; line-height: 1.24; }
.split-grid { gap: 56px; margin-top: 30px; }
.auth-card { max-width: 560px; padding: 26px 30px 28px; }
.segmented .seg-btn { height: 50px; font-size: 16px; }
.input, .select, .chat-input { font-size: 16px; }
.info-item { gap: 18px; }
.info-item h4 { font-size: 24px; }
.info-item p { font-size: 16px; }
.decor-deck-corner { opacity: .98; }
.agent-hero, .subpage-hero {
  min-height: 236px;
  padding: 28px 48px 24px;
}
.mini-eyebrow { font-size: 14px; letter-spacing: .12em; }
.agent-hero h1, .subpage-hero h1 { font-size: 66px; line-height: .95; margin: 10px 0 8px; }
.agent-hero .sub, .subpage-hero .sub { font-size: 20px; line-height: 1.2; }
.banner-note { right: 210px; top: 36px; font-size: 26px; }
.banner-deck-right { right: 36px; bottom: -4px; width: 180px; height: 180px; }
.two-col, .conventions-grid, .match-layout, .stats-layout { gap: 20px; padding: 22px 24px 18px; }
.panel-card { padding: 22px; border: 1px solid #e5ebe4; }
.panel-title { font-size: 32px; margin: 0 0 8px; }
.panel-subtitle { font-size: 15px; margin-bottom: 18px; }
.field label { font-size: 14px; }
.radio-card, .select-card, .partner-card, .rule-tile, .metric-card, .chart-card, .profile-card { border-width: 1px; }
.radio-card { min-height: 116px; padding: 18px 16px; }
.select-card { min-height: 136px; }
.searchbar { font-size: 15px; height: 48px; }
.data-table th { font-size: 14px; }
.data-table td { font-size: 14px; }
.match-layout { grid-template-columns: 1.1fr .9fr; }
.option-grid-2, .type-grid-2, .choice-row, .cards-grid-2 { gap: 14px; }
.select-card h3, .partner-card h3 { font-size: 24px; }
.partner-card { grid-template-columns: 76px 1fr 112px 102px; padding: 16px; }
.partner-card .avatar { width: 58px; height: 58px; }
.stats-layout { grid-template-columns: 250px 1fr; }
.sidebar { padding-right: 12px; }
.metric-card { min-height: 140px; padding: 18px 20px; }
.metric-card .big { font-size: 52px; }
.metric-card h4 { font-size: 17px; }
.chart-card { min-height: 240px; padding: 18px; }
.chart-head h3 { font-size: 22px; }
.chart-placeholder { height: 170px; }
.game-topbar {
  height: 102px;
  grid-template-columns: 360px 1fr 312px;
  padding: 0 28px;
  background: linear-gradient(180deg,#083d30,#06362b);
}
.game-brandline { gap: 16px; }
.game-icon { width: 58px; height: 58px; border-radius: 16px; }
.game-title-wrap h1 { font-size: 32px; }
.game-title-wrap .small { font-size: 17px; }
.scoreband { gap: 24px; }
.scorebox {
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,.22);
  min-height: 52px;
}
.scorebox:first-child { border-left: 0; }
.scorebox .label { font-size: 15px; color: rgba(255,255,255,.82); }
.scorebox .value {
  font-size: 54px;
  font-family: var(--serif);
  color: #f0eedb;
  line-height: .9;
}
.top-actions { gap: 14px; }
.top-actions .btn { min-width: 140px; height: 54px; border-radius: 15px; font-size: 16px; }
.game-layout { grid-template-columns: 1.82fr .6fr; }
.table-stage {
  min-height: 820px;
  background-position: center center;
}
.atout-pill {
  top: 18px; left: 18px; min-height: 58px; padding: 0 22px;
  font-size: 18px; border-radius: 32px; backdrop-filter: blur(4px);
}
.seat-chip {
  min-width: 228px;
  height: 62px;
  border-radius: 34px;
  padding: 10px 18px;
  background: rgba(8,54,42,.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 12px 20px rgba(0,0,0,.10);
}
.seat-chip .name { font-size: 15px; }
.seat-chip .meta { font-size: 13px; color: rgba(255,255,255,.84); }
.hand-back { height: 98px; }
.back-card {
  width: 60px;
  height: 90px;
  margin-left: -18px;
  border-radius: 10px;
  border: 2px solid rgba(245,242,235,.85);
  box-shadow: 0 8px 12px rgba(0,0,0,.12);
}
.table-center { transform: translate(-50%, -50%); }
.trick-counter { top: -34px; font-size: 17px; padding: 8px 18px; }
.trick-card, .trick-card-slot { width: 92px; height: 134px; }
.trick-card { padding: 10px; }
.trick-card .val { font-size: 38px; }
.trick-card .suit { font-size: 44px; }
.pill-banner {
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 23px;
}
.pill-banner .timer { font-size: 18px; padding-left: 16px; }
.player-hand { left: 102px; right: 110px; bottom: 18px; height: 224px; }
.play-card { width: 106px; height: 158px; border-radius: 15px; }
.play-card .corner { font-size: 30px; }
.play-card .suit-big { font-size: 52px; }
.action-panel { width: 180px; right: 20px; bottom: 74px; }
.action-panel .btn { height: 58px; font-size: 18px; border-radius: 16px; }
.wood-frame-left, .wood-frame-right {
  width: 180px; height: 320px; bottom: -38px;
}
.game-sidebar { padding: 18px 18px 16px; }
.game-tabs { gap: 26px; font-size: 17px; margin-bottom: 8px; }
.game-tabs .active { padding-bottom: 10px; }
.chat-item { grid-template-columns: 44px 1fr auto; padding: 12px 0; }
.chat-item .bubble-ico { width: 38px; height: 38px; font-size: 21px; }
.chat-item .speaker { font-size: 15px; }
.chat-item .message { font-size: 14px; margin-top: 4px; }
.chat-item .time { font-size: 13px; }
.info-banner { font-size: 14px; border-radius: 14px; padding: 14px; }
.chat-input { height: 56px; border-radius: 14px; }
.quick-pill { height: 38px; padding: 0 14px; font-size: 13px; }
.bidding-center {
  width: 438px;
  border-radius: 18px;
  padding: 18px;
}
.bidding-center h3 { font-size: 32px; }
.bid-stepper button, .suit-grid button, .bidding-actions button, .bid-value { height: 52px; }
.result-hero { min-height: 812px; padding: 28px 24px 32px; }
.result-hero h1 { font-size: 68px; }
.result-hero .sub { font-size: 24px; }
.result-panel { width: 700px; border-radius: 18px; }
.score-box .caption { font-size: 15px; }
.score-box .number { font-size: 66px; }
.result-actions .btn { min-width: 158px; }
.handwritten-left, .handwritten-right { font-size: 22px; }

/* page-specific small fixes */
.page-home .section .cards-grid-3:last-child .feature-card { min-height: 142px; }
.page-login .profile-pill, .page-login .elo { opacity: .96; }
.page-agent .two-col { grid-template-columns: 1.06fr .94fr; }
.page-conventions .conventions-grid { grid-template-columns: 1.1fr .9fr; }
.page-matchmaking .match-layout { align-items: start; }
.page-statistics .stats-grid-4 { gap: 16px; }
.page-moderation .admin-layout { min-height: 1000px; }
.page-result .result-panel { margin-top: 28px; }
.page-bidding .bidding-center { top: 47%; }
.page-playing .table-center { top: 48%; }

/* refined mobile fallback */
@media (max-width: 920px) {
  body.site-body { padding: 0; }
  .page-shell { border-radius: 0; }
  .main-nav a.active::after { display: none; }
  .hero-title, .hero-login h1, .agent-hero h1, .subpage-hero h1, .result-hero h1 { font-size: 48px; }
  .hero-copy, .hero-login .sub, .agent-hero .sub, .subpage-hero .sub, .result-hero .sub { font-size: 17px; }
}



/* ===== V4 final fidelity pass ===== */
body.site-body { padding: 8px; }
.page-shell { max-width: 1432px; border-radius: 18px; }

/* Browser chrome */
.top-browser { height: 54px; padding: 8px 17px; }
.browser-dots { gap: 7px; }
.browser-dots span { width: 12px; height: 12px; }
.browser-actions { min-width: 78px; font-size: 17px; gap: 12px; color: #777; }
.browser-bar { height: 36px; font-size: 14px; padding: 0 16px; }

/* Shared header */
.site-header { height: 82px; padding: 0 38px; }
.brand img { width: 45px; height: 45px; }
.brand-name { font-size: 41px; }
.main-nav { gap: 31px; }
.main-nav a { font-size: 16px; }
.main-nav a.active::after { bottom: -14px; }
.header-divider { height: 36px; }
.elo { font-size: 17px; }
.profile-pill { font-size: 16px; }
.profile-pill img { width: 47px; height: 47px; }

/* Home */
.page-home .hero-home {
  min-height: 458px;
  padding: 34px 48px 14px;
  grid-template-columns: 1.02fr .98fr;
}
.page-home .hero-title { font-size: 58px; max-width: 620px; margin: 16px 0 14px; }
.page-home .hero-copy { font-size: 21px; line-height: 1.16; max-width: 610px; }
.page-home .hero-actions { margin: 20px 0 16px; }
.page-home .hero-actions .btn { min-width: 280px; min-height: 58px; font-size: 16px; }
.page-home .hero-benefits { gap: 20px; margin-top: 10px; }
.page-home .hero-benefit { min-width: 165px; font-size: 13px; }
.page-home .art-deck { width: 225px; height: 160px; right: 182px; top: 82px; }
.page-home .art-hand { width: 530px; height: 250px; right: 12px; bottom: -2px; }
.page-home .note.n1 { left: 116px; top: 82px; font-size: 22px; }
.page-home .note.n2 { right: 12px; top: 250px; font-size: 22px; }
.page-home .wood-edge { height: 80px; bottom: -34px; }
.page-home .section { padding: 15px 34px 12px; }
.page-home .section-title { font-size: 34px; }
.page-home .game-card { min-height: 90px; padding: 12px 16px; }
.page-home .game-card .mini-card { width: 50px; height: 66px; }
.page-home .game-card h3 { font-size: 22px; }
.page-home .game-card p { font-size: 13px; }
.page-home .badge { height: 32px; font-size: 12px; padding: 0 13px; }
.page-home .feature-card { min-height: 116px !important; padding: 18px 20px; }
.page-home .feature-card .icon-round { width: 62px; height: 62px; flex-basis: 62px; font-size: 28px; }
.page-home .feature-card h3 { font-size: 20px; }
.page-home .feature-card p { font-size: 13px; line-height: 1.30; }
.page-home .site-footer { min-height: 88px; padding-top: 10px; padding-bottom: 10px; }

/* Login */
.page-login .hero-login { min-height: 688px; padding: 34px 50px 20px; }
.page-login .hero-login h1 { font-size: 58px; }
.page-login .hero-login .sub { font-size: 18px; }
.page-login .split-grid { grid-template-columns: 560px 300px; gap: 52px; margin-top: 24px; }
.page-login .auth-card { padding: 24px 28px 24px; }
.page-login .field { margin-bottom: 16px; gap: 8px; }
.page-login .input { height: 52px; }
.page-login .btn-lg { min-height: 54px; }
.page-login .info-list { gap: 30px; padding-top: 28px; }
.page-login .info-icon { width: 60px; height: 60px; font-size: 27px; }
.page-login .info-item h4 { font-size: 22px; }
.page-login .info-item p { font-size: 15px; }
.page-login .site-footer { min-height: 90px; }

/* Internal banners */
.page-agent .agent-hero,
.page-conventions .subpage-hero,
.page-matchmaking .subpage-hero {
  min-height: 174px;
  padding: 22px 42px 16px;
}
.page-agent .agent-hero h1,
.page-conventions .subpage-hero h1,
.page-matchmaking .subpage-hero h1 {
  font-size: 54px;
  margin: 6px 0;
}
.page-agent .agent-hero .sub,
.page-conventions .subpage-hero .sub,
.page-matchmaking .subpage-hero .sub {
  font-size: 18px;
}
.page-agent .banner-deck-right,
.page-conventions .banner-deck-right,
.page-matchmaking .banner-deck-right {
  width: 170px; height: 130px; right: 34px; top: 18px;
}
.page-agent .banner-note,
.page-conventions .banner-note,
.page-matchmaking .banner-note { right: 205px; top: 30px; font-size: 22px; }

/* Agent */
.page-agent .two-col { grid-template-columns: 1.08fr .92fr; gap: 18px; padding: 18px 24px 10px; }
.page-agent .panel-card { padding: 20px; }
.page-agent .panel-title { font-size: 28px; }
.page-agent .panel-subtitle { font-size: 14px; margin-bottom: 14px; }
.page-agent .field { margin-bottom: 14px; gap: 7px; }
.page-agent .input, .page-agent .select { height: 50px; font-size: 15px; }
.page-agent .radio-card { min-height: 96px; padding: 14px; }
.page-agent .radio-card h4 { font-size: 18px; margin-bottom: 4px; }
.page-agent .radio-card p { font-size: 14px; }
.page-agent .r-icon { font-size: 30px; }
.page-agent .searchbar { height: 46px; }
.page-agent .card-actions-row { margin-top: 12px; gap: 14px; }
.page-agent .btn-lg { min-height: 54px; }
.page-agent .success-inline { min-height: 64px; }
.page-agent .info-stack { gap: 14px; }
.page-agent .info-row { grid-template-columns: 54px 1fr; gap: 14px; padding-bottom: 14px; }
.page-agent .info-row .ic { width: 54px; height: 54px; font-size: 25px; }
.page-agent .info-row h4 { font-size: 20px; margin-bottom: 5px; }
.page-agent .info-row p { font-size: 14px; line-height: 1.32; }
.page-agent .site-footer { min-height: 84px; }

/* Conventions */
.page-conventions .conventions-grid { grid-template-columns: 1.08fr .92fr; gap: 18px; padding: 16px 22px 10px; }
.page-conventions .panel-card { padding: 18px; }
.page-conventions .panel-title { font-size: 27px; }
.page-conventions .data-table th, .page-conventions .data-table td { padding: 12px 10px; font-size: 13px; }
.page-conventions .searchbar { height: 44px; }
.page-conventions .field { margin-bottom: 12px; gap: 6px; }
.page-conventions .input, .page-conventions .select { height: 48px; font-size: 14px; }
.page-conventions .reminder-box { padding: 14px 16px; font-size: 14px; }
.page-conventions .btn-lg { min-height: 50px; font-size: 15px; }
.page-conventions .site-footer { min-height: 82px; }

/* Matchmaking */
.page-matchmaking .match-layout { grid-template-columns: 1.13fr .87fr; gap: 16px; padding: 14px 22px 10px; }
.page-matchmaking .panel-title { font-size: 25px !important; margin-bottom: 2px; }
.page-matchmaking .panel-subtitle { font-size: 13px; margin-bottom: 10px; }
.page-matchmaking .choice-row { gap: 10px; margin-bottom: 10px; }
.page-matchmaking .select-card { min-height: 102px; padding: 12px; gap: 10px; }
.page-matchmaking .select-card .mini-card { width: 44px; height: 58px; font-size: 26px; }
.page-matchmaking .select-card h3 { font-size: 19px !important; margin: 0 0 4px !important; }
.page-matchmaking .select-card p { font-size: 13px; margin: 0; }
.page-matchmaking .badge { height: 27px; font-size: 11px; padding: 0 10px; }
.page-matchmaking .type-grid-2 { gap: 10px; }
.page-matchmaking .type-grid-2 .select-card { min-height: 126px !important; }
.page-matchmaking .type-grid-2 .icon-round { width: 66px !important; height: 66px !important; flex-basis: 66px !important; font-size: 28px; }
.page-matchmaking .type-grid-2 h3 { font-size: 22px !important; }
.page-matchmaking .partner-card { padding: 12px; grid-template-columns: 64px 1fr 100px 96px; gap: 12px; }
.page-matchmaking .partner-avatar { width: 60px; height: 60px; font-size: 32px; }
.page-matchmaking .partner-card [style*="font-size:28px"] { font-size: 22px !important; }
.page-matchmaking .partner-card [style*="font-size:34px"] { font-size: 26px !important; }
.page-matchmaking .partner-card [style*="font-size:18px"] { font-size: 14px !important; }
.page-matchmaking .btn-lg { min-height: 50px; }
.page-matchmaking aside.panel-card { padding: 18px; }
.page-matchmaking aside.panel-card p { font-size: 14px !important; }
.page-matchmaking .side-stack { gap: 10px !important; }
.page-matchmaking .side-bullet { grid-template-columns: 46px 1fr; gap: 12px; }
.page-matchmaking .side-bullet .round { width: 46px; height: 46px; font-size: 22px; }
.page-matchmaking .side-bullet [style*="font-size:22px"] { font-size: 18px !important; }
.page-matchmaking .side-bullet [style*="font-size:17px"] { font-size: 13px !important; }
.page-matchmaking .site-footer { display: none; }

/* Statistics */
.page-statistics .stats-layout { grid-template-columns: 235px 1fr; gap: 18px; padding: 16px 24px 8px; min-height: 820px; }
.page-statistics .profile-card { padding: 14px; }
.page-statistics .profile-card img { width: 80px; height: 80px; margin-bottom: 10px; }
.page-statistics .profile-card .name { font-size: 22px; }
.page-statistics .side-nav { margin-top: 14px; gap: 4px; }
.page-statistics .side-nav a { height: 46px; font-size: 15px; }
.page-statistics .section-title { font-size: 48px !important; }
.page-statistics .section-subtitle { font-size: 14px; }
.page-statistics .searchbar { height: 46px; font-size: 13px; }
.page-statistics .stats-grid-4 { gap: 12px; margin-bottom: 12px; }
.page-statistics .metric-card { min-height: 110px; padding: 14px 16px; }
.page-statistics .metric-card .topline { font-size: 15px; margin-bottom: 8px; }
.page-statistics .metric-card .big { font-size: 44px; }
.page-statistics .metric-card .hint { font-size: 13px; }
.page-statistics .chart-card { padding: 14px; }
.page-statistics .chart-area { height: 232px; }
.page-statistics .panel-title { font-size: 24px !important; }
.page-statistics .panel-subtitle { font-size: 14px; }
.page-statistics .summary-box { padding: 12px; font-size: 13px; }
.page-statistics .table-history th, .page-statistics .table-history td { padding: 8px 8px; font-size: 13px; }
.page-statistics .site-footer { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }

/* Moderation */
.page-moderation .admin-layout { grid-template-columns: 270px 1fr; min-height: 944px; height: 944px; }
.page-moderation .admin-sidebar { padding: 22px 18px; }
.page-moderation .admin-badge { padding: 15px; margin-bottom: 16px; }
.page-moderation .admin-nav { gap: 7px; }
.page-moderation .admin-nav a { height: 48px; font-size: 14px; }
.page-moderation .admin-main { padding: 22px; overflow: hidden; }
.page-moderation .section-title { font-size: 52px !important; }
.page-moderation .section-subtitle { font-size: 14px; }
.page-moderation .btn-lg { min-height: 50px; font-size: 14px; }
.page-moderation .tab-row { gap: 8px; margin: 14px 0 12px; }
.page-moderation .tab-pill { height: 40px; padding: 0 14px; font-size: 13px; }
.page-moderation .admin-grid { grid-template-columns: 1.22fr .78fr; gap: 14px; }
.page-moderation .searchbar { height: 44px; font-size: 13px; }
.page-moderation .data-table th, .page-moderation .data-table td { padding: 10px 9px; font-size: 12.5px; }
.page-moderation .case-panel { padding: 14px; }
.page-moderation .case-panel .panel-title { font-size: 32px !important; }
.page-moderation .case-panel .section-subtitle { font-size: 12px; }
.page-moderation .case-tabs { gap: 18px; margin-bottom: 12px; }
.page-moderation .case-quote { padding: 14px; font-size: 14px; }
.page-moderation .actions-grid { gap: 8px; margin-top: 12px; }
.page-moderation .actions-grid .btn { min-height: 44px; font-size: 13px; }

/* Game shared */
.page-game .site-header { height: 80px; }
.page-game .game-topbar { height: 96px; grid-template-columns: 330px 1fr 300px; padding: 0 28px; }
.page-game .suit-badge { width: 58px; height: 64px; border-radius: 12px; font-size: 34px; }
.page-game .game-title-wrap h1 { font-size: 27px; }
.page-game .game-title-wrap p { font-size: 14px; }
.page-game .scorebox .label { font-size: 14px; }
.page-game .scorebox .value { font-size: 48px; }
.page-game .top-actions .btn { min-width: 132px; height: 48px; font-size: 14px; }
.page-game .game-layout { grid-template-columns: 1.80fr .62fr; }
.page-game .table-stage { min-height: 798px; height: 798px; }
.page-game .seat-chip { min-width: 220px; height: 58px; padding: 8px 16px; }
.page-game .seat-chip .icon { width: 38px; height: 38px; font-size: 20px; }
.page-game .seat-chip .name { font-size: 14px; }
.page-game .seat-chip .meta { font-size: 12px; }
.page-game .back-card { width: 55px; height: 82px; margin-left: -17px; }
.page-game .trick-card, .page-game .trick-card-slot { width: 84px; height: 122px; }
.page-game .trick-card .val { font-size: 34px; }
.page-game .trick-card .suit { font-size: 40px; }
.page-game .player-hand { left: 100px; right: 100px; bottom: 4px; height: 198px; }
.page-game .play-card { width: 96px; height: 144px; margin-left: -19px; }
.page-game .play-card .corner { font-size: 27px; }
.page-game .play-card .suit-big { font-size: 48px; }
.page-game .wood-frame-left, .page-game .wood-frame-right { width: 140px; height: 260px; bottom: -25px; }
.page-game .action-panel { width: 176px; bottom: 72px; right: 18px; }
.page-game .action-panel .btn { height: 52px; font-size: 16px; }
.page-game .game-sidebar { padding: 16px 18px 14px; }
.page-game .chat-list { min-height: 0; }
.page-game .chat-item { padding: 10px 0; grid-template-columns: 40px 1fr auto; gap: 10px; }
.page-game .chat-item .bubble-ico { width: 36px; height: 36px; font-size: 18px; }
.page-game .chat-item .speaker { font-size: 14px; }
.page-game .chat-item .message { font-size: 13px; }
.page-game .chat-item .time { font-size: 11px; }
.page-game .info-banner { padding: 12px; font-size: 12px; margin: 8px 0 12px; }
.page-game .chat-input { height: 50px; font-size: 14px; }
.page-game .quick-phrases { gap: 7px; margin-top: 8px; }
.page-game .quick-pill { height: 34px; font-size: 12px; padding: 0 11px; }

/* Playing screen exact placement */
.page-playing .atout-pill {
  position: absolute; top: 24px; left: 28px;
  min-width: 190px; height: 52px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(7,52,40,.65); color: white;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-size: 16px;
}
.page-playing .table-seat:nth-of-type(3) { top: 84px !important; }
.page-playing .trick-counter { top: 198px !important; }
.page-playing .trick-card:nth-of-type(6) { left: 430px !important; top: 320px !important; }
.page-playing .trick-card:nth-of-type(7) { left: 555px !important; top: 254px !important; }
.page-playing .trick-card:nth-of-type(8) { left: 676px !important; top: 320px !important; }
.page-playing .trick-card-slot { left: 558px !important; top: 422px !important; }
.page-playing .pill-banner { left: 395px !important; top: 575px !important; }

/* Bidding */
.page-bidding .table-stage { height: 798px; min-height: 798px; }
.page-bidding .bidding-center { width: 420px; top: 46%; padding: 16px; }
.page-bidding .bidding-center h3 { font-size: 29px; }
.page-bidding .bidding-topline { font-size: 15px; padding: 10px 12px; margin-bottom: 12px; }
.page-bidding .bid-stepper button,
.page-bidding .suit-grid button,
.page-bidding .bidding-actions button,
.page-bidding .bid-value { height: 46px; font-size: 16px; }
.page-bidding .bid-value { font-size: 28px; }

/* Result */
.page-result .result-hero { min-height: 798px; height: 798px; padding: 24px; }
.page-result .result-hero h1 { font-size: 59px; margin: 10px 0 8px; }
.page-result .result-hero .sub { font-size: 22px; }
.page-result .result-panel { width: 690px; margin-top: 24px; padding: 18px 20px; }
.page-result .score-box { padding: 12px 18px; }
.page-result .score-box .number { font-size: 58px; margin-top: 4px; }
.page-result .mini-stats-grid { margin: 14px 0; font-size: 14px; }
.page-result .summary-table { font-size: 13px; margin: 8px 0 10px; }
.page-result .summary-table th, .page-result .summary-table td { padding: 8px 7px; }
.page-result .summary-box { padding: 12px 14px; font-size: 13px; }
.page-result .result-actions { gap: 10px; margin-top: 12px; }
.page-result .result-actions .btn { min-height: 48px; min-width: 150px; font-size: 14px; }
.page-result .result-deck-left { width: 205px; height: 170px; bottom: 34px; }
.page-result .result-hand-right { width: 250px; height: 190px; bottom: 22px; }
.page-result .handwritten-left { left: 90px; top: 205px; font-size: 20px; }
.page-result .handwritten-right { right: 86px; top: 350px; font-size: 20px; }
.page-result .site-footer { min-height: 82px; padding-top: 8px; padding-bottom: 8px; }

@media (max-width: 920px) {
  .page-home .hero-home, .page-login .hero-login,
  .page-agent .agent-hero, .page-conventions .subpage-hero,
  .page-matchmaking .subpage-hero, .page-result .result-hero {
    height: auto; min-height: auto;
  }
}



/* ===== V4.1 final fit corrections ===== */
.page-statistics .stats-layout { min-height: 812px; height: 812px; overflow: hidden; }
.page-statistics .section-head { margin-bottom: 8px !important; }
.page-statistics .stats-grid-4 { margin-bottom: 8px; }
.page-statistics .metric-card { min-height: 96px; padding: 11px 14px; }
.page-statistics .metric-card .topline { font-size: 13px; margin-bottom: 4px; }
.page-statistics .metric-card .big { font-size: 38px; }
.page-statistics .metric-card .hint { font-size: 11px; }
.page-statistics [style*="grid-template-columns:1.4fr .75fr"] { gap: 10px !important; margin-bottom: 8px !important; }
.page-statistics .chart-card { padding: 11px 12px; }
.page-statistics .chart-card .panel-title { font-size: 21px !important; margin-bottom: 6px; }
.page-statistics .chart-area { height: 180px; }
.page-statistics .chart-card .panel-subtitle { font-size: 12px; line-height: 1.25; margin-bottom: 8px; }
.page-statistics .chart-card [style*="width:154px"] { width: 112px !important; height: 112px !important; }
.page-statistics .chart-card [style*="width:108px"] { width: 78px !important; height: 78px !important; font-size: 22px !important; }
.page-statistics .summary-box { margin-top: 8px !important; padding: 8px 10px; font-size: 11px; }
.page-statistics .table-history th, .page-statistics .table-history td { padding: 5px 7px; font-size: 11.5px; }
.page-statistics .status-pill { height: 28px; font-size: 11px; padding: 0 10px; }
.page-statistics .site-footer { min-height: 66px; padding-top: 6px; padding-bottom: 6px; }
.page-statistics .site-footer .brand-lockup img { width: 34px; height: 34px; }
.page-statistics .site-footer .brand-name { font-size: 23px !important; }
.page-statistics .site-footer .foot-copy { font-size: 11px; }
.page-statistics .site-footer .foot-right a,
.page-statistics .site-footer .foot-right span { font-size: 11px; }

.page-moderation .admin-layout { height: 930px; min-height: 930px; }
.page-moderation .admin-main { padding: 18px 22px; }
.page-moderation .section-title { font-size: 48px !important; }
.page-moderation .section-subtitle { font-size: 13px; }
.page-moderation .tab-row { margin: 10px 0 10px; }
.page-moderation .data-table th, .page-moderation .data-table td { padding: 8px 8px; font-size: 11.5px; }
.page-moderation .status-pill { height: 30px; font-size: 11px; padding: 0 10px; }
.page-moderation .case-panel { padding: 12px; }
.page-moderation .case-panel .panel-title { font-size: 29px !important; }
.page-moderation .case-quote { padding: 10px 12px; font-size: 12px; }
.page-moderation .case-tabs { margin-bottom: 8px; }
.page-moderation .case-panel ul { font-size: 13px !important; line-height: 1.45 !important; }
.page-moderation .actions-grid .btn { min-height: 40px; font-size: 11.5px; }


/* ===== V6 polish fixes ===== */
.site-header { padding: 0 42px 0 46px !important; }
.header-left { gap: 34px !important; }
.header-right { gap: 18px !important; }
.brand { gap: 18px !important; }
.main-nav { gap: 34px !important; }
.main-nav a { padding: 8px 4px !important; }

.btn-secondary { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.58) !important; box-shadow: none !important; }
.btn-secondary:hover { background: rgba(255,255,255,.09) !important; }
.page-home .hero-actions .btn { min-width: 308px; min-height: 60px; border-radius: 17px; }
.page-home .btn-primary { box-shadow: 0 10px 26px rgba(10, 65, 46, .18), inset 0 0 0 1px rgba(255,255,255,.17) !important; }
.page-home .btn-secondary { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18) !important; }
.page-home .hero-actions { gap: 16px !important; }

.page-home .game-card,
.page-home .feature-card,
.panel-card,
.chart-card,
.metric-card,
.profile-card,
.auth-card,
.case-panel {
  border-color: #e4e9e1 !important;
  box-shadow: 0 10px 20px rgba(10,22,17,.035) !important;
}

.vector-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 62% 62%;
}
.vector-team { background-image: url('../icons/team.svg'); }
.vector-lock { background-image: url('../icons/lock.svg'); }
.vector-community { background-image: url('../icons/community.svg'); }
.vector-bot { background-image: url('../icons/bot.svg'); }
.vector-chat { background-image: url('../icons/chat.svg'); }
.vector-chart { background-image: url('../icons/chart.svg'); }
.vector-user { background-image: url('../icons/user.svg'); }
.vector-shield { background-image: url('../icons/shield.svg'); }
.vector-clock { background-image: url('../icons/clock.svg'); }
.vector-settings { background-image: url('../icons/settings.svg'); }
.vector-mic { background-image: url('../icons/mic.svg'); }
.inline-svg-icon { display:inline-block; width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.text-icon { margin-right: .58em; vertical-align: -0.15em; }

.hero-benefit .icon,
.feature-card .icon-round,
.info-icon,
.info-row .ic,
.seat-chip .icon,
.bubble-ico,
.partner-avatar { font-size: 0 !important; color: transparent !important; }
.hero-benefit .icon { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.08) !important; }
.feature-card .icon-round,
.info-icon,
.info-row .ic,
.partner-avatar,
.bubble-ico,
.seat-chip .icon { background-color: #eef3ec !important; border: 1px solid #dde6dc; color: var(--green-800); }
.seat-chip .icon { background-color: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.2) !important; }
.bubble-ico { background-color:#eef2eb !important; }
.info-row .ic { width: 48px; height: 48px; border-radius: 14px; display:grid; place-items:center; }
.side-nav a .text-icon,
.admin-nav a .text-icon,
.metric-card .topline .text-icon,
.summary-box .text-icon,
.info-banner .text-icon,
.btn .text-icon,
.searchbar .text-icon { width: 18px; height: 18px; }
.side-nav a, .admin-nav a, .metric-card .topline, .summary-box, .info-banner, .btn, .searchbar { display:flex; align-items:center; }
.metric-card .topline { gap:0; }
.searchbar { gap:10px; }
.summary-box { gap:10px; }
.info-banner { gap: 12px !important; }

.page-home .wood-edge {
  left: 154px !important;
  right: -18px !important;
  bottom: -18px !important;
  height: 56px !important;
  border-radius: 72px 72px 0 0 !important;
  background: linear-gradient(180deg, rgba(149,95,55,.96), rgba(97,60,33,.99)) !important;
  box-shadow: inset 0 2px 6px rgba(255,255,255,.12), inset 0 -10px 16px rgba(0,0,0,.12) !important;
}
.wood-frame-left, .wood-frame-right {
  width: 150px !important;
  height: 272px !important;
  bottom: -52px !important;
  background: linear-gradient(180deg, rgba(139,90,51,.96), rgba(90,57,31,.99)) !important;
  box-shadow: inset 0 2px 8px rgba(255,255,255,.11), inset 0 -14px 20px rgba(0,0,0,.18) !important;
  opacity: .88;
}
.wood-frame-left { left: -74px !important; }
.wood-frame-right { right: -74px !important; }

.site-footer {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: start !important;
  gap: 18px 28px !important;
  padding: 18px 40px 16px !important;
}
.site-footer .foot-right {
  display: grid !important;
  grid-template-columns: repeat(4, max-content) !important;
  gap: 12px 28px !important;
  justify-content: end !important;
  align-content: start !important;
}
.site-footer .foot-right > * { white-space: nowrap; }
.site-footer .foot-right > :nth-child(5),
.site-footer .foot-right > :nth-child(6) { grid-row: 2; }
.site-footer .brand-lockup { align-items: center !important; }
.foot-copy { margin-top: 4px !important; }

.page-home .feature-card h3 { margin-bottom: 6px; }
.page-home .section-head { margin-bottom: 14px; }
.page-home .game-card .mini-card { box-shadow: 0 6px 14px rgba(10,22,17,.04); }
