.ai-panel { padding: clamp(20px,4vw,34px); margin: 30px 0; border: 1px solid #8b5cff88; border-radius: 24px; background: radial-gradient(ellipse at top right,#4c276c66,transparent 65%),#121126; }
.ai-panel h2 { margin: 0 0 8px; font-family: var(--display); }
.ai-panel p { color: var(--muted); max-width: 780px; line-height: 1.6; }
.ai-preferences { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.ai-preferences label { display: grid; gap: 8px; font-weight: 700; }
.ai-preferences .ai-switch { display: flex; align-items: center; min-height: 48px; gap: 12px; }
.ai-switch input { width: 24px; height: 24px; accent-color: #b38aff; }
.ai-preferences select { min-height: 48px; max-width: 100%; background: #1a1733; color: #fff; padding: 10px 14px; border: 1px solid #8170a9; border-radius: 10px; font: inherit; }
.ai-panel button, .quest-wrap button, .quest-wrap .btn { min-height: 48px; min-width: 48px; touch-action: manipulation; }
#ai-status { margin-bottom: 0; color: #d4c7ff; }
#ai-feature-note { color: var(--muted); line-height: 1.6; }
.featured [hidden] { display: none !important; }
.art-adventure { background: radial-gradient(circle at 75% 25%,#93faff55,transparent 30%),linear-gradient(135deg,#14152f,#382361 65%,#123d44); display: grid; place-items: center; position: relative; overflow: hidden; }
.art-adventure::before { content: ''; position: absolute; height: 180px; width: 110px; border: 3px solid #8effed; border-radius: 70px 70px 0 0; box-shadow: 0 0 40px #72ffe666,inset 0 0 40px #72ffe644; transform: translate(80px,35px); }
.art-adventure span { font-size: 68px; position: relative; filter: drop-shadow(0 0 20px #c2a5ff); }
.quest-wrap { max-width: 1200px; padding-bottom: 70px; }
.quest-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin: 30px 0; }
.quest-heading h1 { font: 900 clamp(40px,7vw,72px)/1.1 var(--display); margin: 10px 0; }
.quest-heading p { color:var(--muted); line-height:1.7; max-width:650px; }
.quest-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.quest-stat { border:1px solid #8371ba44; background:#16132d; padding:14px; border-radius:14px; }
.quest-stat b { display:block; color:#b8fff0; font-size:20px; }
.quest-stat span { color:var(--muted); font-size:14px; }
.quest-route { display:flex; justify-content:space-between; gap:8px; padding:0; list-style:none; margin:22px 0; }
.quest-route li { flex:1; padding:12px 4px; text-align:center; background:#19162e; color:#a8a4ba; border-radius:10px; font-size:14px; border:1px solid #594978; }
.quest-route li.current { background:#392862; color:#fff; border-color:#b38aff; }
.quest-route li.done { color:#8effda; border-color:#5bc8a0; }
.quest-columns { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:22px; }
.quest-story { border:1px solid #75629c66; border-radius:24px; overflow:hidden; background:#131126; }
.quest-world { height:220px; position:relative; overflow:hidden; background:radial-gradient(ellipse at 70% 15%,#5e4a8c77,transparent 70%),linear-gradient(#11132e,#31294d); }
.quest-world::after { content:''; position:absolute; bottom:0; left:0; right:0; height:38px; background:linear-gradient(#335363,#172c37); border-top:2px solid #7dfbdb66; }
.quest-moon { position:absolute; top:25px; left:18%; height:54px; width:54px; border-radius:50%; background:#d2c4ff; box-shadow:0 0 60px #b7a0ff77; }
.quest-mountain { position:absolute; height:180px; width:180px; background:linear-gradient(135deg,#4f4770,#201b39); transform:rotate(45deg); bottom:-90px; left:25%; }
.quest-gate { position:absolute; right:14%; bottom:28px; height:130px; width:80px; border:3px solid #9affdf; border-radius:60px 60px 0 0; display:grid; place-items:center; color:#b8ffef; font-size:40px; box-shadow:0 0 30px #7affce55,inset 0 0 30px #7affce44; }
.quest-traveler,.quest-sentinel { position:absolute; bottom:35px; z-index:1; font-size:55px; filter:drop-shadow(0 0 15px #8cf3ff66); }
.quest-traveler { left:17%; }.quest-sentinel { right:37%; color:#b99cff; }
.quest-story-content { padding:clamp(18px,4vw,32px); }
.quest-story h2 { font:800 clamp(23px,4vw,32px) var(--display); margin:12px 0; }
#scene-story { font-size:17px; line-height:1.8; color:#ddd8ee; white-space:pre-line; }
.quest-reward { color:#f4d27c; line-height:1.7; font-size:15px; }
.quest-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.quest-actions button { flex:1 1 150px; padding:14px; line-height:1.5; white-space:normal; }
.quest-status { color:#b8fff0; line-height:1.6; min-height:26px; }
.quest-log { padding:0; list-style:none; color:#b9b0d0; font-size:14px; line-height:1.8; }
.quest-log li { border-top:1px solid #ffffff0c; padding:5px 0; }
.quest-pack { border:1px solid #75629c55; border-radius:20px; padding:22px; align-self:start; background:#141229; }
.quest-pack h2 { font:700 19px var(--display); margin:0 0 20px; }
.quest-item { display:flex; gap:12px; align-items:center; margin:14px 0; }
.quest-item span { font-size:26px; }.quest-item small { display:block; color:var(--muted); margin-top:4px; }
.quest-pack p { font-size:14px; line-height:1.7; color:var(--muted); }
.quest-pack summary { cursor:pointer; padding:14px 0; min-height:48px; }
.quest-pack button { width:100%; margin-top:16px; }
#encounter { background:#ffffff05; padding:15px; border:1px solid #8872a655; border-radius:12px; }
#encounter h3 { margin:0 0 8px; color:#ddd0ff; }#enemy-level { font-size:14px; color:var(--muted); }
#encounter label { font-size:14px; }#enemy-health { display:block; width:100%; height:16px; margin-top:8px; accent-color:#ad8bff; }
@media(max-width:760px) { .quest-columns { grid-template-columns:1fr; }.quest-pack { order:2; }.quest-stats { grid-template-columns:repeat(2,1fr); }.quest-world { height:180px; }.quest-route li { font-size:12px; }.ai-preferences>* { max-width:100%; } }
