/* Reforged: illustrated science-fantasy game shell, DOM remains the text layer. */
:root{--bg:#090f1b;--panel:#111d2c;--line:#33475d;--accent:#ebc58c;--gold:#ebc58c;--cyan:#9de8eb;--fg:#eef2f3;--dim:#a7b7c6}
body{background:radial-gradient(ellipse at 65% 0,#1b2c43 0,transparent 60%),#090f1b;color:var(--fg)}button{border-radius:7px;background:linear-gradient(160deg,#26384b,#142132);border-color:#455b70;color:#e8eff3;box-shadow:inset 0 1px #ffffff09;transition:background .15s,transform .15s,border-color .15s}button:hover:not(:disabled){background:linear-gradient(160deg,#354e65,#1d3046);border-color:#b5ccd7}button.on{background:linear-gradient(140deg,#efd0a0,#bd935b);color:#21190e;border-color:#f4d9b2}input,select,textarea{background:#0c1726;color:#edf2f4;border:1px solid #43596b;border-radius:5px}input:focus,select:focus,textarea:focus{outline:2px solid #91d7df;outline-offset:2px}.eyebrow{letter-spacing:.24em;color:#c1aa86;font-size:10px}
.adventure-home{isolation:isolate;overflow:hidden}.adventure-home .home-art{opacity:.85;filter:saturate(.65) contrast(1.1)}.adventure-home .home-vignette{background:linear-gradient(90deg,#080e1cf0 0,#080e1ce0 28%,#080e1c33 80%),linear-gradient(0deg,#080e1c 0,transparent 45%)}.adventure-home .home-content{position:relative;z-index:3;margin-left:6vw;padding-top:90px;max-width:640px}.adventure-home .game-logo{font-family:Georgia,"Yu Mincho",serif;font-weight:400;letter-spacing:.035em;font-size:clamp(60px,7.6vw,116px);line-height:.9;text-shadow:0 4px 30px #05080e}.adventure-home .game-logo span{color:#e6c592;display:block;font-size:.91em;letter-spacing:.085em}.adventure-home .home-copy{font-weight:500;font-size:23px;letter-spacing:.08em;margin-top:28px}.adventure-home .home-sub{color:#adbac7;font-size:13px;line-height:1.9}.adventure-home .home-menu{width:430px;max-width:90vw;margin-top:26px}.adventure-home .menu-primary{min-height:88px;background:linear-gradient(110deg,#edcca0,#ae8452);color:#21190e;border:1px solid #f3d9b1;box-shadow:0 10px 40px #0005,inset 0 1px #fff6}.adventure-home .menu-primary>span{font-size:21px}.adventure-home .menu-primary small{color:#4e3b28;font-size:11px}.adventure-home .home-secondary button{background:#142234d9;backdrop-filter:blur(12px);border-color:#4d6377;min-height:75px}.adventure-home .home-secondary button span{font-size:14px}.adventure-home .home-secondary button small{color:#a8bacb;font-size:10px}.home-progress{display:flex;gap:22px;font-size:11px;color:#e1c69f;letter-spacing:.08em}.adventure-home .home-journey{display:none}.adventure-home .extra-modes{font-size:11px;color:#b2c1ce;margin-top:15px}.adventure-home .home-footer{z-index:5;left:6vw;right:6vw;color:#a7b5c0;align-items:center;flex-wrap:wrap}.home-footer button{font-size:11px;padding:7px 12px;background:#102033b0;border-color:#516173}
.home-card-display{position:absolute;width:520px;height:400px;right:5vw;top:31%;z-index:2;perspective:1000px;pointer-events:none}.hero-card{position:absolute;width:220px;height:314px;border:1px solid #c4aa7c;border-radius:12px;background:linear-gradient(135deg,#d7c49e,#6b654f 2%,#1a2533 3%,#0b1420 96%,#a89873 98%);padding:9px;box-shadow:0 25px 45px #0009,inset 0 0 0 4px #1b2937;overflow:hidden}.hero-card img{width:100%;height:242px;object-fit:cover;border:1px solid #a89c80;border-radius:5px}.hero-card span{display:block;font-size:14px;text-align:center;padding-top:15px;color:#f1d9af;letter-spacing:.05em}.hero-card-left{left:0;top:38px;transform:rotate(-17deg)}.hero-card-middle{left:145px;top:0;transform:rotate(2deg);z-index:2}.hero-card-right{left:285px;top:42px;transform:rotate(18deg)}
.page-heading{padding-bottom:24px;border-bottom:1px solid #3d5060;margin-bottom:28px}.page-heading h2{font-size:clamp(25px,3vw,38px);font-weight:500;letter-spacing:.06em}.page-heading p{color:#aebcc9}.adventure-screen,#screen-deck,#screen-lobby,#screen-result,.settings-screen{max-width:1440px;margin:0 auto;padding:36px 5vw 70px}.story-location{border:1px solid #4a5a6a;border-radius:12px;padding:28px;background:radial-gradient(ellipse at 90% 0,#4a5a6455,transparent 65%),linear-gradient(125deg,#17283b,#101b2b)}.story-location h3{font-family:Georgia,"Yu Mincho",serif;font-size:35px;color:#f2d5a2}.story-chapters button{border-radius:8px;background:#111e2d}.episode-brief{background:linear-gradient(130deg,#1a2b3e,#101a29);border:1px solid #3b5167;border-radius:10px}.episode-brief blockquote{color:#f0e5d4;font-size:15px;line-height:1.95}.sealed-rewards{background:#152333;border-color:#4a6072;border-radius:10px}.sealed-rewards>div{color:#c7aa7a}.launch-button{background:linear-gradient(100deg,#ebc58c,#b48d5c);color:#21190e;border-color:#ead0a6;border-radius:7px}.gacha-layout,.achievement{border-color:#3e5366;border-radius:12px}.gacha-machine{background:radial-gradient(ellipse at 50% 50%,#34546a55,transparent 65%),linear-gradient(145deg,#203047,#0a1526);border-color:#54647b}.discovery-card{border-radius:9px;box-shadow:0 6px 20px #0005;border-color:#8b7a5d}.discovery-card b{font-size:13px}.achievement{background:linear-gradient(120deg,#1a2a3a,#101b29)}.achievement.complete{border-color:#b7a47c}
.card-art.illustrated{position:relative;overflow:hidden;background:#142235}.card-art.illustrated img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}.poolcard:hover .card-art img,.discovery-card:hover .card-art img{transform:scale(1.045)}.card-art.illustrated:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px #e1d1a340;pointer-events:none}.deckwrap{gap:25px}.deckwrap>.pool{background:#101d2c;border:1px solid #344a5e;border-radius:10px}.poolcard{border:1px solid #506076;border-radius:8px;background:linear-gradient(145deg,#24364a,#121f30);box-shadow:0 7px 14px #0003}.poolcard .card-art{height:132px!important}.poolcard .cname{color:#f4e4c5;font-size:13px}.workshop-sidehead{border-bottom:1px solid #4c5f72;padding-bottom:15px}.deckwrap>.side{background:#111e2d;border:1px solid #3a5066;border-radius:10px}.workshop-preview .card-art{height:160px!important}.discovery-card .card-art{height:140px}.strategy-search{padding:14px 0}.poolgrid{gap:13px}
#screen-game{padding:12px 20px 28px;max-width:1920px;margin:auto}#stageWrap{position:relative;border:1px solid #52667a!important;border-radius:12px;background:#080e1c;padding:8px!important;box-shadow:0 18px 60px #0007,inset 0 1px #a4d4e622}#stage{display:block;border:0!important;border-radius:5px;image-rendering:auto!important;touch-action:manipulation}#screen-game .board-column{min-width:0}#screen-game .hand-tray{background:linear-gradient(180deg,#1b2a3e,#101b2b);border:1px solid #3d536a;border-radius:12px;box-shadow:0 10px 35px #0004;padding:12px}#screen-game .card{height:190px!important;min-height:190px!important;border-radius:8px;background:linear-gradient(145deg,#29394d,#142234);border:1px solid #76816e;box-shadow:0 5px 10px #0006;overflow:hidden}#screen-game .card .card-art{display:block!important;height:76px!important;min-height:76px;flex-shrink:0;margin:0 0 4px;border-radius:4px}#screen-game .card .cname{font-size:12px!important;height:18px!important;color:#f7e9ce}#screen-game .card .cdescription{font-size:10px!important;line-height:1.45;height:30px!important;max-height:30px!important;color:#d0dce2}#screen-game .card .cmana,#screen-game .card .crequirement{font-size:10px!important}#screen-game .card.ready{border-color:#a4e4d1;box-shadow:0 0 0 1px #7adcc125,0 5px 12px #0005}#screen-game .card.selected{transform:translateY(-5px);border-color:#f5d7a5;box-shadow:0 0 18px #e7bd6733}#screen-game .battle-overview{border-color:#42546a;background:#142235;border-radius:9px}#screen-game .match-clock b{color:#f3d6a9}#screen-game .side-panel{border-color:#344c62;background:#101d2c;border-radius:9px}#boardNotice{font-size:11px;color:#b9cbd4}.cast-notice{border-radius:6px;background:#142739!important}.tactical-desk{border-radius:8px;border-color:#3c5369!important}
.settings-screen{min-height:80vh}.settings-panel{max-width:760px;padding:30px;background:linear-gradient(140deg,#1a2c40,#101b2a);border:1px solid #485c70;border-radius:12px}.settings-panel>label{display:grid;gap:10px;margin-bottom:24px;font-size:15px;color:#e9d9bf}.settings-panel select{padding:12px}.settings-panel input[type=range]{width:100%;accent-color:#e5c28d}.settings-panel .motion-setting{display:flex;align-items:center}.motion-setting input{width:18px;height:18px;accent-color:#e5c28d}.settings-save{border-top:1px solid #435568;margin-top:28px;padding-top:15px}.settings-save p{line-height:1.8;color:#aabcc9}#renderStatus,#settingsNotice{font-size:12px;color:#a4d8d9}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(min-width:1600px){.adventure-home .home-content{padding-top:12vh}.home-card-display{right:8vw;transform:scale(1.12)}}
@media(max-width:1150px){.home-card-display{right:-110px;opacity:.55;transform:scale(.85);transform-origin:right center}.adventure-home .home-content{margin-left:5vw}.adventure-home .home-vignette{background:linear-gradient(90deg,#080e1cf7,#080e1caa 50%,#080e1c55)}.poolcard .card-art{height:105px!important}#screen-game .card{height:178px!important;min-height:178px!important}#screen-game .card .card-art{height:62px!important;min-height:62px}}
@media(max-width:720px){.home-card-display{display:none}.adventure-home .home-content{padding-top:85px;margin-left:6vw}.adventure-home .game-logo{font-size:68px}.adventure-home .home-copy{font-size:19px}.adventure-home .home-menu{width:88vw}.adventure-home .home-footer{bottom:15px;gap:12px}.home-footer button{padding:5px 8px;font-size:10px}.page-heading{align-items:flex-start;gap:12px}.adventure-screen,#screen-deck,#screen-lobby,#screen-result,.settings-screen{padding:25px 14px 55px}.settings-panel{padding:20px}#screen-game{padding:8px}#screen-game .card{height:174px!important;min-height:174px!important}#screen-game .card .card-art{height:59px!important;min-height:59px}.poolcard .card-art{height:108px!important}.story-location{padding:20px}.story-location h3{font-size:28px}}
@media(max-height:760px) and (min-width:721px){.adventure-home .home-content{padding-top:65px}.adventure-home .game-logo{font-size:72px}.adventure-home .home-copy{margin-top:18px}.adventure-home .home-menu{margin-top:18px}.adventure-home .menu-primary{min-height:74px}.home-card-display{top:23%;transform:scale(.85)}}
/* The battlefield, rather than card artwork, owns the available screen space. */
@media(min-width:1001px){
 body[data-screen=game] #topbar{height:38px;margin-bottom:3px}
 #screen-game{padding-top:5px}
 #screen-game .battle-overview{padding:3px 8px;margin-bottom:4px;gap:4px}
 #screen-game .health strong{font-size:15px}#screen-game .health>span{font-size:9px}
 #screen-game .win-route{height:18px;min-height:18px;max-height:18px;padding:1px 5px}
 #screen-game .resource-bar{min-height:34px;padding:3px 9px;margin-bottom:6px}
 #screen-game .resource strong,#screen-game .mana-cell strong{font-size:16px}
 #screen-game .gamegrid{grid-template-columns:minmax(0,1fr) 235px!important}
 #screen-game .hand-tray{padding:7px!important;margin-top:6px}
 #screen-game .hand-heading{min-height:25px;margin-bottom:5px!important}
 #screen-game .card{height:151px!important;min-height:151px!important;padding-bottom:5px}
 #screen-game .card .card-art{height:43px!important;min-height:43px!important;margin-bottom:3px}
 #screen-game .card .cname{font-size:11px!important;height:17px!important}
 #screen-game .card .cdescription{font-size:9px!important;line-height:1.45;height:27px!important;max-height:27px!important}
 #screen-game .card .cmana,#screen-game .card .crequirement{font-size:9px!important}
 #screen-game .hand-footer{margin-top:3px;font-size:8px}
}

.card-art.schematic{background:linear-gradient(145deg,#182535,#0b121e)}.card-art.schematic img{width:100%;height:100%;object-fit:contain;filter:none}.battle-arsenal{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:7px 12px;border:1px solid #324958;background:#101d2a;color:#b7d0db;font-size:11px}.arsenal-side{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.arsenal-item{display:inline-flex;align-items:center;gap:5px;background:#1c2d3c;border:1px solid #3a566a;border-radius:4px;padding:3px 7px}.arsenal-item img{width:32px;height:20px;object-fit:contain}.arsenal-item.enemy{border-color:#795e54}.arsenal-item small{color:#c4ced2}.weapon-spec{background:#142531;border-left:3px solid #84c6db;padding:9px;margin:9px 0}.weapon-spec b{display:block;color:#e2f4ff}.weapon-spec p{font-size:12px;line-height:1.6;margin:4px 0}.weapon-spec img{width:84px;height:44px;object-fit:contain;float:right}.design-target{font-size:11px;color:#a7d3df;margin:8px 0}.arsenal-empty{opacity:.65}@media(max-width:720px){.battle-arsenal{font-size:10px;padding:5px}.arsenal-item{padding:2px 4px}}

.hero-card img{object-fit:contain;background:#132332}
