/* Vellotale × ASTERVEIL — the site's warm, editorial identity with a fantasy game heart. */
:root{
  --vt-paper:#fffaf2;
  --vt-canvas:#f8f6ef;
  --vt-deep:#173c3b;
  --vt-forest:#0f5e5a;
  --vt-teal:#2aa198;
  --vt-gold:#f9c74f;
  --vt-coral:#f28c6b;
  --vt-lavender:#8e7cc3;
  --vt-stroke:#e1e5dd;
}
html{color-scheme:light}
body.game-vellotale{
  background:
    radial-gradient(ellipse at 8% 670px,#e0f3ecaa,transparent 34%),
    radial-gradient(ellipse at 95% 1250px,#f1e8f6ad,transparent 30%),
    var(--vt-canvas);
  color:var(--vt-deep);
  font-family:Kanit,system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.game-vellotale .wrap{max-width:1230px}
body.game-vellotale button{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s,filter .18s}
body.game-vellotale :is(button,a,input):focus-visible{outline:3px solid var(--vt-gold);outline-offset:3px}

/* Same approved Vellotale logo and light navigation treatment as the main site. */
.game-vellotale .top{
  position:relative;z-index:9;
  background:#fffaf5f5;
  border-bottom:1px solid #e5e8df;
  box-shadow:0 2px 16px #164d4720;
}
.game-vellotale .top .wrap{min-height:77px;gap:22px}
.game-vellotale .top .brand{display:inline-flex;flex:0 0 auto;align-items:center;letter-spacing:0;color:var(--vt-forest)}
.game-vellotale .top .brand img{display:block;width:190px;height:auto;max-height:65px;object-fit:contain}
.game-header-id{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;line-height:1.2;white-space:nowrap}
.game-header-overline{font-size:9px;font-weight:700;letter-spacing:2.3px;color:#81938e}
.game-header-id strong{font:700 16px/1.3 Marcellus,Georgia,serif;letter-spacing:2px;color:var(--vt-forest)}
.game-header-nav{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.game-header-nav a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:9px 11px;border-radius:9px;color:#315f59;font-size:13px;font-weight:500}
.game-header-nav a:hover{background:#e9f4ef;color:#0c5e58}
.game-header-nav .toplink{background:#0f5e5a;color:#fffaf2;border:1px solid #0f5e5a;padding:9px 14px}
.game-header-nav .toplink:hover{background:#14746d;color:white}

/* Illustrated light-novel atmosphere remains around the actual game. */
.game-vellotale .hero{
  min-height:260px;
  background:
    linear-gradient(90deg,#103e40f2 0%,#113c43db 37%,#18284088 70%,#162a3559),
    url('../../books/teens/asterveil/s01v01/images/the-breach.webp') center 42%/cover;
  border-bottom:4px solid #eccd83;
}
.game-vellotale .hero .wrap{width:100%;padding-top:24px;padding-bottom:27px}
.game-vellotale .hero:after{background:linear-gradient(0deg,#0e3d42a8,transparent 64%)}
.game-vellotale .hero h1{font-family:Marcellus,Georgia,serif;letter-spacing:2px;font-size:clamp(45px,6.5vw,78px);margin:6px 0 11px;color:#fffaf2;text-shadow:0 7px 32px #071d21aa}
.game-vellotale .hero h1 span{color:#f4d494!important}
.game-vellotale .hero p{color:#f5f6ec;font-size:16px;max-width:520px;text-wrap:balance}
.game-vellotale .hero .eyebrow{color:#efdcab}
.game-vellotale .hero .pill{color:#fce7b6;background:#082e32a3;border-color:#f4d49480}

/* Warm paper cards and teal hierarchy, with a contrasting dark arena. */
.game-vellotale main.wrap{padding-top:28px;padding-bottom:65px}
.game-vellotale .grid{grid-template-columns:minmax(0,1.58fr) minmax(305px,1fr);gap:21px}
.game-vellotale .panel{
  background:linear-gradient(145deg,#fffefa,#fbfaf5 78%,#f5f9f5);
  border:1px solid #dfebe4;
  border-radius:22px;
  box-shadow:0 16px 38px #17474313,0 2px 7px #1747430d;
  padding:23px;
}
.game-vellotale .panel h2{color:#174c48;font-family:Marcellus,Georgia,serif;font-weight:600}
.game-vellotale .panel h3{color:#245650}
.game-vellotale .eyebrow{color:#19736c;letter-spacing:2.25px}
.game-vellotale .muted{color:#607b78}
.game-vellotale .tiny{font-size:12px;line-height:1.65}
.game-vellotale .pill{color:#23675e;background:#edf8f1;border-color:#bddcd1;font-weight:700}
.game-vellotale .btn{background:linear-gradient(130deg,#0f6d65,#279e8b);color:white;box-shadow:0 7px 18px #136d6140;border-radius:12px}
.game-vellotale .btn:hover:not(:disabled){filter:brightness(1.08);box-shadow:0 9px 24px #136d6150}
.game-vellotale .btn.ghost{background:#f9fffc;color:#195c54;border:1px solid #99c4b5;box-shadow:none}
.game-vellotale .choice{background:#f9fffc;border:1px solid #c8dcd3;color:#285550;border-radius:12px;font-size:14px}
.game-vellotale .choice:hover:not(:disabled){background:#eaf8f1;border-color:#5eaaa0;filter:none}
.game-vellotale .choice.selected,.game-vellotale .modebar button.active{background:#0f6f68;border-color:#0f6f68;color:white}
.game-vellotale .choice small{color:#5d7773}
.game-vellotale .choice.selected small{color:#effef9}
.game-vellotale .modebar{margin-top:14px;margin-bottom:12px}
.game-vellotale .modebar button{min-height:43px;font-size:13px;font-weight:600}
.game-vellotale #modeHint{margin-bottom:15px}

/* The fight remains a high-contrast "game within the storybook". */
.game-vellotale .battle-stage{border:2px solid #3f7778;border-radius:17px;box-shadow:inset 0 0 22px #14202d66,0 9px 22px #112f3530}
.game-vellotale .combatant small{background:#102a38e8;color:white;border-color:#91beb2}
.game-vellotale .enemy{background:linear-gradient(100deg,#f2e9f5,#fbf4eb);border:1px solid #ded1e8;box-shadow:none}
.game-vellotale .enemy .stat{color:#345450}
.game-vellotale .enemy .muted{color:#6f6d79}
.game-vellotale .enemy-mark{background:#ece2f1;border:1px solid #d8c9e0;color:#684a93}
.game-vellotale .meter{background:#e8efea;border:1px solid #d2e2d7}
.game-vellotale .meter.red span{background:linear-gradient(90deg,#d96d87,#ef9ca3)}
.game-vellotale .meter.gold span{background:linear-gradient(90deg,#dfac5a,#f4d68d)}
.game-vellotale .battleword{background:linear-gradient(145deg,#103c43,#16243c);border:1px solid #587c81;border-radius:16px;box-shadow:0 8px 20px #133a3b1c}
.game-vellotale .battleword .eyebrow{color:#f8d59a}
.game-vellotale .battleword .letters{color:#ffde98}
.game-vellotale .battleword .muted,.game-vellotale .battleword .tiny{color:#dbece9}
.game-vellotale .answers .choice{font-size:21px;font-weight:700;min-height:58px;background:#fff;color:#1d5b57;border-color:#a8cec0}
.game-vellotale .answers .choice:hover:not(:disabled){background:#e4f4ef;border-color:#2c9e92;box-shadow:0 4px 12px #1c796b23}
.game-vellotale .answers .choice:disabled{opacity:.5}
.game-vellotale .special-bar{background:linear-gradient(100deg,#eae7f5,#e8f4f1);border:1px solid #c6cae2;border-radius:14px}
.game-vellotale .special-button{background:linear-gradient(135deg,#6d66ad,#36a39a);color:white;border-radius:10px;box-shadow:0 5px 15px #7969b63d}
.game-vellotale .special-description{color:#496864}
.game-vellotale .sound-toggle{background:#fff;color:#315b58;border:1px solid #b8d3ca}
.game-vellotale .feedback{background:#e6f7ef;border-color:#8dc9ad;color:#1d6656}
.game-vellotale .feedback.bad{background:#fbe7e8;border-color:#e2afb5;color:#944452}

/* Personal progression and wardrobe: editorial collection cards. */
.game-vellotale .portrait-stage{background:radial-gradient(ellipse at 50% 32%,#536c73,#203b4e 60%,#192b3b);border:1px solid #95bdb3;border-radius:16px}
.game-vellotale .portrait-stage .badge{color:#ffedce;background:#122b38d9;border-color:#bfa97a}
.game-vellotale .rank{background:#e5f3ee;border:1px solid #cfe4da;color:#285e56;border-radius:13px}
.game-vellotale .rank b{color:#0d7164}
.game-vellotale .specialization{background:#f0f8f3;border:1px solid #cae1d2;color:#275850}
.game-vellotale .specialization strong{color:#167164}
.game-vellotale .specialization small{color:#59786f}
.game-vellotale .item{background:#fff;border:1px solid #d9e6dc;border-radius:13px;color:#244f49}
.game-vellotale .item strong{font-size:13px}
.game-vellotale .item small{color:#6f837e}
.game-vellotale .item.equipped{background:#e9f7f0;border-color:#48a997;box-shadow:0 0 0 1px #5fb9a324}
.game-vellotale .item button{border-color:#2c8e7d;background:#14796b;color:white;font-weight:600}
.game-vellotale .item button:disabled{background:#f3f5f1;border-color:#d6dfd7;color:#84938e}
.game-vellotale .item .item-portrait{border-color:#bedad0}
.game-vellotale .quest{border-color:#e4ebe5}
.game-vellotale .notice{background:#fff4df;color:#815b29;border-color:#edd7a0}
.game-vellotale .field{background:#fff;color:#173f3b;border-color:#a5c6b8}
.game-vellotale .footer{background:#164741;color:#f2eee1;border-top:3px solid #e5d6af;font-size:12px}

/* Keep modals dark behind a warm, readable paper dialog. */
.game-vellotale .modal{background:#092a2be0}
.game-vellotale .modal .panel{box-shadow:0 25px 70px #001c1c77}

@media(max-width:1000px){
  .game-vellotale .grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:15px}
  .game-vellotale .panel{padding:18px}
  .game-header-nav{gap:2px}
  .game-header-nav a{padding:8px}
  .game-vellotale .top .brand img{width:160px}
}
@media(max-width:770px){
  .game-vellotale .grid{grid-template-columns:1fr}
  .game-vellotale .hero{min-height:235px}
  .game-vellotale .hero p{font-size:15px}
  .game-vellotale .panel{padding:17px}
  .game-vellotale .top .wrap{min-height:65px;padding:6px 16px}
  .game-header-id{display:none}
  .game-header-nav .chapter-link{display:none}
  .game-vellotale main.wrap{padding-top:18px}
}
@media(max-width:430px){
  .game-vellotale .top .brand img{width:135px;max-height:52px}
  .game-header-nav .home-link{display:none}
  .game-header-nav .toplink{padding:8px 9px;font-size:12px}
  .game-vellotale .wrap{padding-left:13px;padding-right:13px}
  .game-vellotale .hero{min-height:218px}
  .game-vellotale .hero h1{font-size:47px}
  .game-vellotale .hero .eyebrow{font-size:10px}
  .game-vellotale .panel h2{font-size:24px}
  .game-vellotale .answers .choice{min-height:56px}
  .game-vellotale .special-bar{gap:8px}
}
@media(prefers-reduced-motion:reduce){
  .game-vellotale button{transition:none}
}

/* Shared five-language selector and Wonder Tales navigation, matching the main Vellotale header. */
.game-vellotale .top .wrap{gap:12px}
.game-vellotale .game-header-nav{gap:2px}
.game-vellotale .game-header-nav a{padding:8px 8px}
.game-vellotale .game-header-nav .wonder-link{color:#166c60;font-weight:650}
.game-vellotale .game-header-nav .wonder-link:hover{background:#e1f2e9}
.game-language-picker{display:inline-flex;flex:0 0 auto;align-items:center;gap:5px;padding:7px 9px;background:#f0f7f2;border:1px solid #cbded2;border-radius:10px;color:#155d54}
.game-language-picker span{font-size:16px;line-height:1}
.game-language-picker select{font:600 12px/1.3 Kanit,system-ui,sans-serif;color:#155d54;background:transparent;border:0;max-width:110px;min-width:58px;outline-offset:5px;cursor:pointer}
.game-language-picker:focus-within{outline:3px solid var(--vt-gold);outline-offset:2px}
@media(max-width:1100px){
  .game-vellotale .game-header-id{display:none}
  .game-vellotale .top .brand img{width:155px}
  .game-vellotale .game-header-nav a{padding:7px}
}
@media(max-width:770px){
  .game-vellotale .game-header-nav .chapter-link{display:none}
  .game-vellotale .game-header-nav .home-link{display:none}
  .game-vellotale .game-language-picker{padding:7px}
}
@media(max-width:530px){
  .game-vellotale .top .wrap{gap:5px;padding:7px 10px}
  .game-vellotale .top .brand img{width:115px}
  .game-vellotale .game-header-nav .toplink{display:none}
  .game-vellotale .game-header-nav .wonder-link{font-size:11px;padding:7px 4px}
  .game-language-picker select{font-size:11px;max-width:75px;min-width:0}
  .game-language-picker span{font-size:13px}
}
