:root { --ice:#8bc7d5; --deep:#10242c; --night:#071014; --stone:#202728; --silver:#d7e4e5; --gold:#d6ad58; --ember:#b6633d; --line:rgba(158,207,216,.28); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; color:var(--silver); background:#071014 url("assets/tavern-table-wide.png") center/cover fixed; font-family:Cinzel,serif; }
body::before { content:""; position:fixed; inset:0; z-index:-1; background:linear-gradient(120deg,rgba(5,14,18,.66),rgba(16,38,47,.46) 50%,rgba(5,11,14,.63)),radial-gradient(circle at 50% 0,rgba(142,211,225,.08),transparent 46%); }
.snow { display:none; }
button,input { font:inherit; }
button { cursor:pointer; }
.masthead { position:relative; display:flex; justify-content:space-between; align-items:center; gap:30px; padding:26px clamp(22px,5vw,70px); border-bottom:1px solid var(--line); background:rgba(5,13,16,.72); }
h1 { margin:-5px 0 -4px; color:#f0eadc; font:900 clamp(44px,7vw,78px)/1 "Cinzel Decorative",serif; text-shadow:0 3px 0 #000,0 0 28px rgba(125,198,213,.22); }
h2 { margin:3px 0 14px; color:#f0eadc; font:700 clamp(25px,3vw,38px)/1.15 "Cinzel Decorative",serif; }
.eyebrow { margin:0; color:var(--ice); text-transform:uppercase; letter-spacing:.22em; font-size:12px; font-weight:800; }
.subtitle { margin:4px 0 0; color:var(--gold); letter-spacing:.18em; text-transform:uppercase; }
.title-byline { margin:4px 0 0; color:#aabcc0; font:600 12px/1.2 Cinzel,serif; letter-spacing:.16em; }
.brand-lockup { display:flex; align-items:center; gap:28px; }
.topbar-symbol { width:112px; height:112px; object-fit:contain; opacity:.92; filter:drop-shadow(0 3px 8px rgba(0,0,0,.65)); }
.masthead-tools { display:flex; align-items:flex-end; gap:24px; }
.pass-play-link { display:inline-flex; align-items:center; min-height:40px; border:1px solid #7097a0; padding:0 15px; color:#dce9e9; background:rgba(5,16,20,.68); text-decoration:none; text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:800; }
.pass-play-link:hover { color:#fff; border-color:var(--ice); background:rgba(38,88,99,.56); }
.masthead-button { font-family:inherit; }
.identity .quiet-button { min-height:40px; }
.identity { display:grid; grid-template-columns:auto auto; gap:1px 12px; text-align:right; }
.identity span { color:#86a5aa; font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.identity strong { color:var(--ice); }
.identity button { grid-column:1/-1; margin-top:7px; }
main { width:min(1220px,calc(100% - 32px)); margin:34px auto 60px; }
.gatehouse { display:grid; grid-template-columns:1.08fr .92fr; gap:24px; max-width:920px; margin:7vh auto; }
.stone-panel,.view-panel,.stone-dialog { border:1px solid rgba(154,209,220,.36); background:linear-gradient(145deg,rgba(34,44,46,.97),rgba(13,22,25,.98)); box-shadow:0 20px 60px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06); }
.stone-panel { min-height:410px; padding:42px; }
.welcome { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:center; }
.welcome p:not(.eyebrow) { max-width:510px; color:#bac9ca; font:500 16px/1.8 Georgia,serif; }
.ice-rune { position:absolute; right:-15px; bottom:-68px; color:rgba(133,202,216,.08); font-size:260px; }
.tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:28px; }
.tab { border:0; border-bottom:2px solid transparent; padding:12px 15px; color:#82999d; background:none; }
.tab.active { color:var(--ice); border-color:var(--ice); }
.auth-form { display:grid; gap:18px; }
label { display:grid; gap:7px; color:#bcd0d2; font-size:13px; }
input { width:100%; border:1px solid #53676a; border-radius:3px; padding:12px 13px; color:#f3f0e8; background:#091317; outline:none; }
input:focus { border-color:var(--ice); box-shadow:0 0 0 3px rgba(139,199,213,.12); }
.field-note { margin:-7px 0 0; color:#82999d; font:13px/1.5 Georgia,serif; }
.primary-button,.small-button { border:1px solid #91c9d4; color:#071014; background:linear-gradient(#a8dce5,#6baabb); font-weight:800; text-transform:uppercase; letter-spacing:.06em; box-shadow:0 2px 0 #25454c; }
.primary-button { padding:13px 19px; border-radius:3px; }
.primary-button:hover,.small-button:hover { filter:brightness(1.1); }
button:disabled { cursor:not-allowed; filter:grayscale(.8); opacity:.55; }
.quiet-button { border:1px solid #506468; padding:7px 11px; color:#b8cdcf; background:rgba(5,12,15,.45); }
.quiet-button.danger { color:#d99b82; border-color:#70483b; }
.message { min-height:20px; margin:14px 0 0; color:var(--gold); font:14px/1.45 Georgia,serif; }
.message.error { color:#ef997a; }
.hall { display:grid; grid-template-columns:215px 1fr; gap:22px; }
.hall-nav { display:flex; flex-direction:column; gap:8px; }
.nav-button { padding:18px; border:1px solid var(--line); text-align:left; color:#a9bdbf; background:rgba(7,18,22,.88); }
.nav-button small { display:block; margin-top:4px; color:#6e8e94; font-family:Georgia,serif; }
.nav-button.active { color:#eaf3f3; border-color:#71a9b5; background:linear-gradient(90deg,rgba(83,144,157,.33),rgba(8,19,23,.92)); box-shadow:inset 3px 0 var(--ice); }
.view-panel { min-height:520px; padding:30px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.board-table-wrap { position:relative; overflow-x:auto; border:1px solid rgba(124,173,181,.25); background:rgba(4,12,15,.55); }
.board-table { width:100%; border-collapse:collapse; }
.board-table th { padding:12px 15px; text-align:left; color:#78999f; font-size:10px; text-transform:uppercase; letter-spacing:.14em; border-bottom:1px solid var(--line); }
.board-table td { padding:14px 15px; color:#c8d4d5; border-bottom:1px solid rgba(120,164,171,.14); }
.board-table td small { display:block; margin-top:3px; color:#71898d; }
.action-cell { text-align:right; }
.small-button { padding:7px 11px; font-size:11px; }
.status { display:inline-block; padding:4px 8px; border:1px solid; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.status.open { color:#9bd2c2; border-color:#416d61; }
.status.active { color:#e3bc6a; border-color:#79612e; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:260px; padding:35px; text-align:center; color:#7e999e; }
.empty-state strong { color:#b8cccf; font-size:18px; }
.empty-state span { font:14px Georgia,serif; }
.score-table td:not(:first-child),.score-table th:not(:first-child) { text-align:center; }
.rank { display:inline-grid; place-items:center; width:26px; height:26px; margin-right:10px; border:1px solid #496a70; color:var(--ice); border-radius:50%; font-size:11px; }
.stone-dialog { width:min(520px,calc(100% - 30px)); padding:34px; color:var(--silver); }
.stone-dialog::backdrop { background:rgba(2,8,10,.78); backdrop-filter:blur(3px); }
.stone-dialog form { position:relative; }
.dialog-close { position:absolute; right:-18px; top:-22px; border:0; color:#a7bec2; background:none; font-size:28px; }
fieldset { display:grid; gap:11px; margin:24px 0; padding:0; border:0; }
legend { margin-bottom:12px; color:#9eb5b8; font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.choice { grid-template-columns:auto 1fr; align-items:start; padding:13px; border:1px solid var(--line); background:#091417; }
.choice input { width:auto; margin-top:4px; accent-color:#79b5c1; }
.choice strong,.choice small { display:block; }
.choice small { margin-top:4px; color:#7f969a; font:13px/1.4 Georgia,serif; }
footer { padding:20px; border-top:1px solid var(--line); text-align:center; color:#617d82; font-size:11px; letter-spacing:.1em; }
.ledger-color { text-transform:capitalize; font-weight:800; }.ledger-color.bronze{color:#d79552}.ledger-color.iron{color:#aebfc2}
#admin-view h3{margin:28px 0 10px;color:var(--ice);font-size:14px;text-transform:uppercase;letter-spacing:.1em}
.invitation-notice{grid-column:1/-1;display:flex;align-items:center;gap:18px;padding:14px 18px;border:1px solid #d6ad58;background:linear-gradient(90deg,rgba(123,82,31,.78),rgba(17,42,48,.95));box-shadow:0 8px 28px #0007}.invitation-notice strong{color:#ffe1a0}.invitation-notice span{font:14px Georgia,serif;color:#e2d5bd}
label small{color:#7f969a;font:12px/1.4 Georgia,serif}
.confirmation-dialog h2{margin-top:0}.confirmation-dialog p{color:#b8c9cb;font:15px/1.65 Georgia,serif}.confirmation-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.confirmation-actions button{padding:11px 15px}
.rules-main-dialog{position:relative;width:min(760px,calc(100% - 30px));max-height:min(84vh,900px);overflow:auto}.rules-main-dialog h2{margin-top:5px}.main-rules-content{display:grid;gap:20px}.main-rules-content section{padding-bottom:18px;border-bottom:1px solid var(--line)}.main-rules-content section:last-child{border-bottom:0}.main-rules-content h3{margin:0 0 8px;color:var(--ice);font-size:15px;text-transform:uppercase;letter-spacing:.1em}.main-rules-content p{margin:7px 0;color:#c5d1d2;font:15px/1.65 Georgia,serif}.main-rules-content strong{color:#e5c97f}
.rules-main-dialog #close-main-rules{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #7097a0;border-radius:50%;color:#eef8f8;background:#10242c;font-size:30px;line-height:1;box-shadow:0 4px 14px #0008;z-index:2}.rules-main-dialog #close-main-rules:hover{border-color:var(--ice);background:#214550}
@media (max-width:800px) { .gatehouse,.hall { grid-template-columns:1fr; } .hall-nav { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); } .nav-button { padding:12px; } .masthead { align-items:flex-end; } .brand-lockup { gap:16px; } .topbar-symbol { width:82px; height:82px; } .masthead-tools { flex-direction:column; align-items:flex-end; } .view-panel{padding:22px}.board-table th,.board-table td{padding:10px;white-space:nowrap} }
@media (max-width:560px) { body{background-attachment:scroll}.masthead { align-items:flex-start; flex-direction:column;padding:18px; } h1{font-size:42px}.brand-lockup { width:100%; justify-content:space-between; } .topbar-symbol { width:66px; height:66px; } .masthead-tools { width:100%;align-items:stretch;gap:10px; } .pass-play-link{justify-content:center}.identity { text-align:left;grid-template-columns:1fr auto } main{width:calc(100% - 16px);margin:18px auto 40px}.gatehouse { margin-top:8px; } .stone-panel,.view-panel { padding:16px;min-height:0 } .hall-nav { grid-template-columns:1fr 1fr; } .section-heading { align-items:stretch; flex-direction:column; }.section-heading .primary-button{width:100%}.board-table-wrap{margin-inline:-8px}.stone-dialog{padding:24px 18px}.empty-state{min-height:180px;padding:20px} }
