@font-face{font-family:'Space Grotesk';font-weight:400;src:url(/assets/sg-400.woff) format('woff');font-display:swap}
@font-face{font-family:'Space Grotesk';font-weight:500;src:url(/assets/sg-500.woff) format('woff');font-display:swap}
@font-face{font-family:'Space Grotesk';font-weight:700;src:url(/assets/sg-700.woff) format('woff');font-display:swap}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:'Space Grotesk',system-ui,sans-serif;background:#06363D;color:#FBFEFD;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button,input{font-family:inherit}
.hidden{display:none !important}

/* ---------- gate ---------- */
.gate{min-height:100%;display:grid;grid-template-columns:minmax(380px,560px) 1fr}
.gate-panel{background:#06363D;padding:56px 56px 40px;display:flex;flex-direction:column;gap:28px;position:relative;z-index:2}
.gate-art{background:#BFEDEA url(/assets/scene.webp) center/cover no-repeat;min-height:320px;position:sticky;top:0;height:100vh}
.gate-art-tag{position:absolute;left:40px;bottom:36px;font-size:44px;font-weight:700;letter-spacing:-0.03em;color:#06363D;line-height:1.05}
.logo{width:250px;height:auto;display:block}
.kicker{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#7FE0E0;margin:0}
.gate h1{font-size:40px;line-height:1.08;letter-spacing:-0.03em;margin:0;font-weight:700}
.gate h1 span{color:#FFB400}
.lead{font-size:17px;line-height:1.5;color:#D6EEEC;margin:0}
.code{display:flex;gap:10px}
.code input{width:56px;height:68px;border-radius:14px;border:2px solid #1D5560;background:#0B4A53;color:#FBFEFD;font-size:30px;font-weight:700;text-align:center;outline:none;-webkit-user-select:text;user-select:text;caret-color:#FFB400}
.code input:focus{border-color:#FFB400;background:#0D535D}
.btn{height:60px;border:0;border-radius:16px;background:#FFB400;color:#06363D;font-size:18px;font-weight:700;cursor:pointer;padding:0 28px;transition:transform .15s,background .15s}
.btn:hover{background:#FFC53D}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.5;cursor:default}
.btn-ghost{background:transparent;color:#FBFEFD;border:2px solid #1D5560}
.btn-ghost:hover{background:#0B4A53}
.msg{min-height:22px;font-size:15px;font-weight:500;color:#FFB400;margin:0}
.conn{border:1px solid #1D5560;border-radius:16px;padding:16px 18px;display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:13px;line-height:1.35}
.conn dt{color:#7FE0E0;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:11px;padding-top:2px}
.conn dd{margin:0;color:#FBFEFD;font-variant-numeric:tabular-nums;word-break:break-word}
.conn-head{grid-column:1 / 3;display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#FFB400;padding-bottom:4px}
.pulse{width:9px;height:9px;border-radius:50%;background:#FFB400;animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,180,0,.6)}100%{box-shadow:0 0 0 12px rgba(255,180,0,0)}}
.notice{font-size:12px;line-height:1.55;color:#BFE3E2;margin:0}
.notice b{color:#FBFEFD}
.gate-foot{margin-top:auto;font-size:12px;color:#7FE0E0}
@media (max-width:900px){.gate{grid-template-columns:1fr;grid-template-rows:auto 240px}.gate-art{position:relative;height:240px}.gate-panel{padding:36px 24px 28px}.gate h1{font-size:32px}.code input{width:46px;height:60px;font-size:26px}.gate-art-tag{font-size:28px;left:24px;bottom:20px}}

.gate-foot a{color:#7FE0E0;text-decoration:none;border-bottom:1px solid #1D5560}
.gate-foot a:hover{color:#FBFEFD}
.btn-enter{align-self:flex-start;height:48px;font-size:15px;padding:0 22px;border-radius:12px;letter-spacing:.01em}
.btn-enter span{margin-left:6px}
.step{display:flex;flex-direction:column;gap:28px}

/* ---------- denied ---------- */
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.chips li{display:flex;align-items:center;gap:9px;height:38px;padding:0 15px;border-radius:999px;background:#0B4A53;border:1px solid #1D5560;font-size:13px;font-weight:700;letter-spacing:.04em;color:#FBFEFD}
.dot{width:8px;height:8px;border-radius:50%;background:#FFB400}
.dot-red{background:#FF6B5E}
.dot-sea{background:#2CC7C9}
.warn{border:1px solid #1D5560;border-left:4px solid #FFB400;border-radius:16px;padding:18px 20px;background:#0A424A;display:flex;flex-direction:column;gap:8px}
.warn p{margin:0;font-size:13.5px;line-height:1.6;color:#D6EEEC}
.warn b{color:#FBFEFD;font-weight:700}

/* ---------- viewer ---------- */
.bar{position:fixed;top:0;left:0;right:0;height:60px;background:rgba(6,54,61,.94);border-bottom:1px solid #1D5560;display:flex;align-items:center;gap:20px;padding:0 22px;z-index:20}
.bar img{height:24px;width:auto}
.bar-mid{flex:1;font-size:13px;color:#BFE3E2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-mid b{color:#FFB400;font-weight:700}
.bar-page{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;color:#FBFEFD}
.bar-x{height:36px;padding:0 16px;font-size:13px;border-radius:10px}
.stage{padding:84px 20px 60px;display:flex;flex-direction:column;align-items:center;gap:26px}
.sheet{width:min(1600px,100%);aspect-ratio:16 / 9;border-radius:14px;overflow:hidden;background:#0B4A53;position:relative;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.sheet canvas{width:100%;height:100%;display:block;pointer-events:none}
.sheet-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:#7FE0E0;letter-spacing:.1em;text-transform:uppercase}
.endnote{font-size:13px;color:#7FE0E0;padding:8px 0 30px;text-align:center;max-width:720px;line-height:1.5}
.shield{position:fixed;inset:0;background:#06363D;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:30px}
.shield h2{font-size:30px;margin:0;letter-spacing:-0.02em}
.shield p{font-size:16px;color:#D6EEEC;margin:0;max-width:480px;line-height:1.5}
@media print{body *{display:none !important}body::after{content:"Printing is disabled for this document.";display:block;color:#000;padding:40px;font-size:20px}}

/* ---------- admin ---------- */
.admin{max-width:1180px;margin:0 auto;padding:36px 24px 80px;display:flex;flex-direction:column;gap:26px;-webkit-user-select:text;user-select:text}
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:20px}
.admin h1{font-size:30px;margin:0;letter-spacing:-0.02em}
.admin h2{font-size:14px;margin:0;letter-spacing:.14em;text-transform:uppercase;color:#7FE0E0}
.card{background:#0B4A53;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:14px}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#BFE3E2;letter-spacing:.06em;text-transform:uppercase;font-weight:700}
.field input{height:46px;border-radius:12px;border:2px solid #1D5560;background:#06363D;color:#FBFEFD;font-size:16px;padding:0 14px;outline:none;min-width:120px}
.field input:focus{border-color:#FFB400}
.grow{flex:1;min-width:220px}
.small{height:46px;font-size:15px;border-radius:12px;padding:0 20px}
.result{background:#06363D;border:2px solid #FFB400;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:1.45}
.result code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;word-break:break-all}
.bigcode{font-size:44px;font-weight:700;letter-spacing:.18em;color:#FFB400}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7FE0E0;padding:8px 10px;border-bottom:2px solid #1D5560}
td{padding:9px 10px;border-bottom:1px solid #1D5560;vertical-align:top;line-height:1.35}
.mono{white-space:nowrap}
.tag{white-space:nowrap;display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#1D5560;color:#FBFEFD}
.tag-ok{background:#2CC7C9;color:#06363D}
.tag-warn{background:#FFB400;color:#06363D}
.tag-bad{background:#F2644B;color:#06363D}
.link{background:none;border:0;color:#FFB400;font-weight:700;cursor:pointer;font-size:13px;padding:0 8px 0 0}
.scroll{overflow-x:auto}
