/* public/court/carved/carved.css — the carved cube's page: the cube fills the screen; the deck sits low, as the stones' do. */
:root { color-scheme: light; --silk: #d9bf8f; --silk-l: #ead9b3; --ink: #1f1a16; --ink-soft: rgba(31,26,22,.7); --verm: #b8302a; --gold: #c9972a; --night: #0e1230; --astra: #46d2af; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; }
body { overflow: hidden; background: radial-gradient(ellipse at 50% 42%, rgba(70,210,175,.26), rgba(14,18,48,0) 60%), radial-gradient(ellipse at 50% 120%, #2a2340, var(--night) 70%); }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; padding: 10px 16px; color: #f3e3bf; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
header a, header button { pointer-events: auto; }
header h1 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; } header h1 em { font-style: normal; color: var(--astra); }
.back, .door { color: #fbe9c0; text-decoration: none; font-family: "Nunito", sans-serif; font-size: 14px; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(234,217,179,.45); border-radius: 999px; background: rgba(14,18,48,.7); }
.back:hover, .door:hover, .back:focus-visible, .door:focus-visible { background: #fbe9c0; color: var(--ink); outline: none; }
.door { border-color: var(--gold); }
.spacer { flex: 1; }
#deck { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: 12px; max-height: 46vh; overflow: auto; padding: 10px 14px 12px; background: linear-gradient(180deg, var(--silk-l), var(--silk)); border: 2px solid var(--ink); border-top: 6px solid var(--astra); border-radius: 3px; box-shadow: 6px 8px 0 rgba(0,0,0,.35); font-family: "Nunito", sans-serif; font-size: 13.5px; }
@media (min-width: 900px) { #deck { left: auto; width: 420px; max-height: calc(100vh - 90px); bottom: 16px; right: 16px; } }
#deck summary { cursor: pointer; font-family: "Cormorant Garamond", serif; font-size: 19px; font-weight: 600; }
#deck p { margin: 4px 0 0; }
.quiet { color: var(--ink-soft); font-size: 12.5px; }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.row > span { font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.row button, .btn { all: unset; cursor: pointer; min-width: 34px; min-height: 34px; padding: 0 10px; text-align: center; border-radius: 3px; border: 2px solid var(--ink); font-family: "Nunito", sans-serif; font-size: 13px; background: rgba(255,248,230,.6); color: var(--ink); }
.row button[aria-pressed="true"], .row button[aria-current="true"], .btn[aria-pressed="true"] { background: var(--ink); color: var(--silk-l); }
.row button:focus-visible, .btn:focus-visible { outline: 2px dashed var(--verm); outline-offset: 2px; }
#state-label { font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 600; margin-top: 8px; }
#meanings details { margin-top: 6px; border-left: 3px solid var(--gold); padding-left: 8px; }
#meanings summary { font-size: 14px; font-family: "Nunito", sans-serif; font-weight: 400; }
#meanings dl { margin: 4px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; }
#meanings dt { color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; } #meanings dd { margin: 0; }
#fallback { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; color: #f3e3bf; text-align: center; }
#fallback .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
#fallback img { width: 100%; height: auto; border: 1px solid rgba(234,217,179,.4); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
