.thalassa-page{display:grid;gap:16px;color:#eef3ff}
.thalassa-page .card{overflow:hidden}
.thalassa-kicker{display:block;color:#ff8bea;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.thalassa-hero{display:block;padding:0;border-color:rgba(232,91,216,.52);background:linear-gradient(135deg,rgba(49,15,69,.94),rgba(6,20,48,.98))}
.thalassa-hero-art{width:100%;aspect-ratio:16/9;background:#020818}
.thalassa-hero-art img{width:100%;height:100%;display:block;object-fit:contain}
.thalassa-story-image img{width:100%;height:100%;display:block;object-fit:cover}
.thalassa-hero-copy{display:grid;grid-template-columns:minmax(240px,.82fr) minmax(340px,1.18fr);gap:clamp(18px,2.5vw,28px);padding:clamp(18px,2.8vw,28px);align-items:start;border-top:1px solid rgba(232,91,216,.18)}
.thalassa-hero-heading{min-width:0;display:grid;align-content:start;padding:3px 0}
.thalassa-hero h1{max-width:18ch}
.thalassa-hero-transmission{min-width:0;display:grid;align-content:start;gap:10px;padding:14px 16px;border:1px solid rgba(232,91,216,.2);border-radius:14px;background:rgba(5,13,35,.34)}
.thalassa-signal{margin:0;font-size:clamp(14px,1.45vw,16px);font-weight:800;line-height:1.38;color:#ffd1f7}
.thalassa-real-sos{margin:0;padding:11px 13px;border-left:3px solid #61f7ca;background:rgba(18,211,159,.08);color:#c9fff0;line-height:1.5}
.thalassa-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}
.thalassa-meta span{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 8px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(4,12,35,.55);font-size:9px;font-weight:800;line-height:1.25;text-align:center}
.thalassa-message{padding:13px 16px;border-radius:13px;border:1px solid}
.thalassa-message.is-success{border-color:#32d399;background:rgba(16,185,129,.12);color:#baffea}
.thalassa-message.is-error{border-color:#fb7185;background:rgba(244,63,94,.12);color:#ffd0d7}
.thalassa-message.is-rare{border-color:#d8a7ff;background:linear-gradient(90deg,rgba(141,60,211,.2),rgba(232,91,216,.14));color:#f6ddff}
.thalassa-next-step{display:flex;align-items:center;gap:10px;padding:12px 15px;border:1px solid rgba(90,132,255,.48);border-radius:12px;background:rgba(39,76,176,.13);color:#dfe8ff}
.thalassa-next-step strong{color:#fff;white-space:nowrap}
.thalassa-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px}
.thalassa-progress article{display:flex;gap:12px;align-items:center;min-height:76px;padding:13px;border:1px solid rgba(119,145,213,.24);border-radius:13px;background:rgba(4,13,39,.6);opacity:.62}
.thalassa-progress article.is-current{border-color:#e85bd8;box-shadow:inset 0 0 28px rgba(232,91,216,.12);opacity:1}
.thalassa-progress article.is-complete{border-color:#2dd4a8;background:rgba(14,116,94,.12);opacity:1}
.thalassa-progress article>b{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#243b78}
.thalassa-progress article.is-complete>b{background:#13876e}
.thalassa-progress strong,.thalassa-progress span{display:block}
.thalassa-progress span{margin-top:3px;color:#aebce4;font-size:12px}
.thalassa-grid.two-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.thalassa-story-card{padding:clamp(20px,3vw,34px)}
.thalassa-story-card h2,.thalassa-components h2,.thalassa-assembly h2,.thalassa-active-card h2,.thalassa-rare-route h2{margin:6px 0 12px}
.thalassa-story-card p,.thalassa-help,.thalassa-active-card p,.thalassa-rare-route p{color:#bdc9e8;line-height:1.65}
.thalassa-story-card blockquote{margin:18px 0 0;padding:13px 15px;border-left:3px solid #61f7ca;background:rgba(12,34,61,.72);color:#dcfff5;font-weight:800}
.thalassa-story-image{min-height:320px;padding:0}
.thalassa-map-link,.thalassa-primary-link,.thalassa-link-row a{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;padding:10px 14px;border:1px solid rgba(var(--quest-accent-rgb),.6);border-radius:11px;background:linear-gradient(135deg,rgba(var(--quest-accent-rgb),.78),rgba(79,48,161,.9));color:#fff;text-decoration:none;font-weight:900;box-shadow:0 8px 20px rgba(var(--quest-accent-rgb),.17);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.thalassa-map-link:hover,.thalassa-primary-link:hover,.thalassa-link-row a:hover{transform:translateY(-1px);filter:brightness(1.08);text-decoration:none;box-shadow:0 11px 24px rgba(var(--quest-accent-rgb),.24)}
.thalassa-planet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:12px}
.thalassa-planet-card{padding:16px}
.thalassa-planet-card header span{color:#8fa7e9;font-size:10px;font-weight:900}
.thalassa-planet-card h3{margin:3px 0}
.thalassa-ship-list{display:grid;gap:8px;margin-top:12px}
.thalassa-ship-list form,.thalassa-action-grid form{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:1px solid rgba(119,145,213,.26);border-radius:11px;background:#071431}
.thalassa-ship-list strong,.thalassa-ship-list small,.thalassa-action-grid strong,.thalassa-action-grid small{display:block}
.thalassa-ship-list small,.thalassa-action-grid small{color:#94a7d6}
.thalassa-page button{border:1px solid rgba(var(--quest-accent-rgb),.64);border-radius:10px;background:linear-gradient(135deg,rgba(var(--quest-accent-rgb),.82),rgba(76,45,157,.92));color:#fff;padding:10px 13px;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(var(--quest-accent-rgb),.16);transition:transform .18s ease,filter .18s ease}
.thalassa-page button:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.08)}
.thalassa-page button:disabled{border-color:#33405f;background:#17213d;color:#74809f;cursor:not-allowed;box-shadow:none;transform:none}
.thalassa-active-card{padding:clamp(24px,4vw,42px);text-align:center;background:radial-gradient(circle at top,rgba(232,91,216,.16),transparent 60%),#081532}
.thalassa-countdown{display:inline-flex;margin-top:16px;padding:12px 18px;border:1px solid #e85bd8;border-radius:12px;background:#190d32;color:#ffb4f1;font-size:27px;font-weight:950;letter-spacing:.05em}
.thalassa-active-card.with-image,.thalassa-completed{display:grid;grid-template-columns:minmax(230px,36%) 1fr;gap:24px;padding:0;text-align:left}
.thalassa-active-card.with-image img,.thalassa-completed img{width:100%;height:100%;min-height:360px;object-fit:cover}
.thalassa-active-card.with-image>div,.thalassa-completed>div{padding:clamp(24px,4vw,42px);align-self:center}
.thalassa-components,.thalassa-assembly,.thalassa-rare-route{padding:clamp(20px,3vw,30px)}
.thalassa-components>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.thalassa-components>header>strong{color:#ff9bed;font-size:20px}
.thalassa-component-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}
.thalassa-component-grid article{display:flex;gap:10px;padding:14px;border:1px solid rgba(119,145,213,.24);border-radius:12px;background:#071431}
.thalassa-component-grid article.is-complete{border-color:#2dd4a8;background:rgba(14,116,94,.12)}
.thalassa-component-grid article>b{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#253d78}
.thalassa-component-grid article.is-complete>b{background:#13876e}
.thalassa-component-grid strong,.thalassa-component-grid span,.thalassa-component-grid small{display:block}
.thalassa-component-grid span{margin-top:5px;color:#b7c4e5;font-size:12px}
.thalassa-component-grid small{margin-top:8px;color:#ffb8ed}
.thalassa-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:9px;margin-top:14px}
.thalassa-warning{padding:12px 14px;border:1px solid #d49636;border-radius:10px;background:rgba(180,100,10,.13);color:#ffd99d}
.thalassa-ending-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.thalassa-ending-card{display:flex;flex-direction:column;padding:20px}
.thalassa-ending-card>span{color:#8fa7e9;font-size:10px;font-weight:950;letter-spacing:.1em}
.thalassa-ending-card h3{margin:7px 0 10px}
.thalassa-ending-card p{flex:1;color:#b8c5e5;line-height:1.55}
.thalassa-ending-card.is-rare{border-color:#c86dff;background:linear-gradient(145deg,rgba(82,25,116,.55),rgba(8,20,49,.96))}
.thalassa-ending-card.is-rare>span{color:#eda8ff}
.thalassa-ending-card.is-known{box-shadow:inset 0 0 0 1px rgba(45,212,168,.38)}
.thalassa-rare-route{border-color:rgba(200,109,255,.55);background:linear-gradient(120deg,rgba(88,28,135,.23),rgba(6,20,48,.96))}
.thalassa-link-row{display:flex;gap:8px;flex-wrap:wrap}
.thalassa-lore{padding:0 18px}
.thalassa-lore details+details{border-top:1px solid rgba(119,145,213,.2)}
.thalassa-lore summary{padding:16px 0;cursor:pointer;font-weight:900}
.thalassa-lore p{padding:0 0 17px;color:#b8c5e5;line-height:1.65}
.thalassa-active-card.is-expired{border-color:#9b5163;filter:saturate(.65)}

.thalassa-full-row{grid-column:1/-1}
.thalassa-opening-chapter .quest-story-visual>.quest-story-quote{margin-top:4px}
.thalassa-opening-chapter .quest-story-copy{justify-content:flex-start}

@media(max-width:900px){.thalassa-hero-copy,.thalassa-grid.two-column,.thalassa-active-card.with-image,.thalassa-completed{grid-template-columns:1fr}
.thalassa-story-image{min-height:260px}
.thalassa-progress,.thalassa-component-grid,.thalassa-ending-grid{grid-template-columns:1fr}
.thalassa-active-card.with-image img,.thalassa-completed img{max-height:520px;min-height:260px}
.thalassa-hero-copy{gap:16px;padding:20px}
.thalassa-hero-heading{padding:0}
.thalassa-meta{margin-top:12px}
}

@media(max-width:560px){.thalassa-page{gap:12px}
.thalassa-hero-copy{gap:13px;padding:15px}
.thalassa-hero h1{max-width:none}
.thalassa-hero-transmission{gap:8px;padding:12px}
.thalassa-signal{font-size:14px}
.thalassa-real-sos{padding:10px 11px;font-size:12px}
.thalassa-meta span{flex:1 1 120px}
.thalassa-ship-list form,.thalassa-action-grid form,.thalassa-components>header{align-items:stretch;flex-direction:column}
.thalassa-page button{width:100%}
.thalassa-planet-grid{grid-template-columns:1fr}
.thalassa-story-card,.thalassa-components,.thalassa-assembly,.thalassa-rare-route{padding:17px}
.thalassa-progress article{min-height:68px}
.thalassa-link-row a{width:100%;justify-content:center;margin-top:0}
.thalassa-next-step{align-items:flex-start;flex-direction:column}
}

@media(max-width:380px){.thalassa-meta span{flex-basis:110px}}
