/* Approved FallAbyss art direction: polished gold, black steel, violet abyss.
   Shared by every page. The animated abyss and readable card layout remain. */
:root{--gold:#e4bd71;--line:#6e5840;--ink:#eee5d5;--muted:#b7a7bd;--panel:#18131f;--panel2:#26202e;--frame:url('../assets/ui/panel-metal.webp')}
.promptbox,.modal,.menu,#log.tlog,.tbanner,.toast,.hintbar,.banner,.side-block,.gen .panel,.pbox,.tile,.rules,.modal.lobby .lobcols>div,.new-deck-box{border-image-source:var(--frame)!important;border-image-slice:76!important;border-image-repeat:stretch!important;background:radial-gradient(ellipse at 10% 0%,#47364d44,transparent 65%),linear-gradient(135deg,#25212c,#100c17)!important;background-origin:border-box!important;background-clip:border-box!important;box-shadow:0 14px 34px #0009,inset 0 0 18px #0007!important}
.home .tiles{gap:22px}.home .tile{padding:22px 20px;transition:filter .18s,transform .18s}.home .tile:hover{filter:brightness(1.18);transform:translateY(-3px)}.home .tile h2{color:#f1d08d;text-shadow:0 2px 3px #000}.home .hero img{filter:drop-shadow(0 8px 16px #0009)}
.topbar{background:linear-gradient(110deg,#332a39,#111017 45%,#2a2231)!important;border-bottom:1px solid #c59a57!important;box-shadow:0 1px 0 #08050d,0 2px 0 #6a5141,0 9px 24px #0008!important}.topbar nav a{color:#ddc391}.topbar nav a:hover{color:#fff0bc;text-shadow:0 0 10px #c0956266}
button,.deck-tools summary,summary.rule-section{background:linear-gradient(165deg,#534454 0%,#2e2635 38%,#15101d 55%,#302638 100%);border:1px solid #92724c;border-radius:4px;color:#efdfc1;box-shadow:inset 0 1px 0 #e7c28b55,inset 0 -2px 0 #07050b,0 3px 7px #0007;text-shadow:0 1px 2px #000;transition:filter .16s,box-shadow .16s}
button:hover:not(:disabled){filter:brightness(1.18);border-color:#efd299;box-shadow:inset 0 1px 0 #fff0ba66,inset 0 -2px 0 #07050b,0 0 12px #9e75c533}button.primary{color:#fff0ca;background:linear-gradient(170deg,#b48a45 0%,#705022 35%,#362415 54%,#806037 100%);border-color:#dfba72;text-shadow:0 1px 2px #1a0e02}button.danger{background:linear-gradient(#743f45,#341a28);border-color:#a57372}button:disabled{filter:saturate(.5);opacity:.45}
input,select,textarea{background:linear-gradient(145deg,#0b0910,#221a2a);border-color:#68516e;color:#eee3d3;box-shadow:inset 0 2px 5px #0009}select option{background:#19121f;color:#eee3d3}input:focus,select:focus,textarea:focus{outline:1px solid #d9b16e;outline-offset:2px}
.deck-box-body{background:#17101e;border-color:#b18c51;box-shadow:-9px 6px 0 #19121d,-12px 8px 0 #795932,0 20px 30px #000b}.deck-box-body:before{border-image-source:var(--frame);border-image-slice:76;border-image-repeat:stretch}.deck-box-title{background:linear-gradient(#39303de8,#17101ee8);border-color:#a67f46;box-shadow:inset 0 1px #e2bc7444}.deck-tool-items,.preview-header,.profile-row{background:linear-gradient(130deg,#2a2131,#120e1a);border-color:#967344}.profile-link{background:#15101be6;border-color:#80633f}
.packs-tile{box-shadow:0 0 20px #bd8f3f44,0 0 40px #7b42b544!important}.offer-art{width:138px;filter:drop-shadow(0 5px 9px #000b)}.pk-back{border:1px solid #c39751;border-radius:7px}.pk-body{background:linear-gradient(140deg,#514052,#19111f 60%,#3a2842)!important;border:1px solid #b18b50!important}.pk-body b{color:#f0cf8d}.pk-top{background:linear-gradient(120deg,#84613a,#211724)!important}
.tboard{box-shadow:0 0 0 1px #be9557,0 0 0 4px #17101f,0 14px 38px #000b}.tgrid{left:13.5%;right:13.5%}.tcell{box-shadow:inset 0 0 0 .6px #d7ba7a66,inset 1px 1px 0 #07050a88}.tcell.hl-move,.tcell.hl-summon{background:#4eaf8870;box-shadow:inset 0 0 0 2px #98dfb8}.tcell.hl-target{background:#b9974e77}.tcell.hl-sel{background:#c6a35e99}.phaselist .ph{border-color:#5b455f;background:#17101fe8}.phaselist .ph.current{background:linear-gradient(#d3ad62,#78532b);color:#160e08}.phaselist .ph.next{background:linear-gradient(#4f3a55,#201326);border-color:#ceaa66}.unit{box-shadow:0 0 0 2px #6da9ce,0 4px 10px #000c}.unit.foe{box-shadow:0 0 0 2px #c97275,0 4px 10px #000c}
.ws .panel,.ws .ws-list{background-color:#15101b}.inspector .steps span{background:linear-gradient(#3b2a42,#17101e);border-color:#846044}.inspector .steps span.on{background:linear-gradient(#d0aa60,#79542b);color:#160d08}.rules h1,.rule-section summary{color:#e9c781}.afz{backdrop-filter:blur(6px)}
:focus-visible{outline:2px solid #ffe2a4!important;outline-offset:3px}button.pk-pack,button.new-deck-box{filter:none}button.pk-pack{box-shadow:none}
@media(prefers-reduced-motion:reduce){button,.home .tile{transition:none}.home .tile:hover{transform:none}}
/* The gameplay grid is independent of painted cracks: exactly 5 by 7 cells. */
.tgrid{left:4.5%;right:4.5%;border:1px solid #d8bd81a6;box-shadow:0 0 0 2px #08060ccc}
.tcell{border-right:1px solid #d8bd8199;border-bottom:1px solid #d8bd8199;box-shadow:inset 1px 1px 0 #08060ccc,inset -1px -1px 0 #08060c99}
.tcell:nth-child(5n){border-right:0}.tcell:nth-last-child(-n+5){border-bottom:0}
.tcell:nth-child(n+6):nth-child(-n+30):nth-child(odd):not([class*="hl-"]){background:rgba(247,237,219,.34)}
.tcell:nth-child(n+6):nth-child(-n+30):nth-child(even):not([class*="hl-"]){background:rgba(4,4,8,.58)}
.d20{filter:drop-shadow(0 3px 5px #0008);text-shadow:0 1px 3px #000;isolation:isolate}.d20:before{content:'';position:absolute;inset:2px;z-index:-1;background:linear-gradient(125deg,#ffffff44,transparent 36%,#05020a66 54%,#ffffff14 85%);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}.d20:after{content:'';position:absolute;inset:1px;z-index:-1;background:conic-gradient(from 30deg,transparent 0deg 58deg,#f8d99366 59deg 61deg,transparent 62deg 118deg,#f8d99355 119deg 121deg,transparent 122deg 178deg,#f8d99355 179deg 181deg,transparent 182deg 238deg,#f8d99355 239deg 241deg,transparent 242deg 298deg,#f8d99355 299deg 301deg,transparent 302deg);opacity:.6}.d20.red{background:linear-gradient(150deg,#ce8684,#793140 40%,#3a1727 70%,#a2635d)}.d20.purple{background:linear-gradient(150deg,#b29ac9,#633e7b 40%,#24172f 70%,#83648e)}.d20.green{background:linear-gradient(150deg,#a5c4a0,#477c63 40%,#16352e 70%,#739478)}.d20 small{color:#f7e5b9}.deck .count{background:linear-gradient(#392d3c,#110b19);border-color:#a78149;color:#f5dfb5}
.home .tile h2{display:flex;gap:9px;align-items:center;font-size:22px}.menu-icon{width:32px;height:38px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 2px #0009)}
.ws-col,.ws-wallet,.ws-pop{border:8px solid transparent;border-image:var(--frame) 76 stretch;border-radius:0;background:linear-gradient(135deg,#26202e,#100c17);background-origin:border-box;background-clip:border-box;box-shadow:0 8px 25px #0008}.ws-wallet .gem{color:var(--gold)}

.wordmark-text{font-family:'FallAbyss Calligraphy',Georgia,serif;font-weight:700;letter-spacing:.025em;color:#ecd196;text-shadow:0 2px 0 #46301b,0 4px 12px #000;line-height:1.1}.hero .wordmark-text{display:inline-block;font-size:clamp(36px,5.5vw,74px)}.topbar .wordmark-text{font-size:26px}
