.first-visit-cutscene{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 42%,#344a3580,#09140fed 72%),#07110ded;animation:first-visit-fade .65s ease-out both}.first-visit-cutscene.hidden{display:none}.first-visit-cutscene.exiting{animation:first-visit-out .45s ease-in both}.first-visit-scene{width:min(820px,100%);background:linear-gradient(145deg,#263b2c,#101f19 75%);border:1px solid #b8a16e;box-shadow:0 0 0 6px #0b1711,0 26px 90px #000b;animation:first-visit-rise .7s ease-out both}.first-visit-scene header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;border-bottom:1px solid #a08f673f;color:#d8c28c}.first-visit-scene header span{font:10px/1.5 Consolas,monospace;letter-spacing:1.8px;color:#a5b498}.first-visit-scene header strong{font-size:15px;font-weight:normal}.first-visit-content{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);align-items:stretch;min-height:300px}.first-visit-portrait{position:relative;min-height:300px;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#80915b4d,transparent 62%),linear-gradient(155deg,#344d37,#1c3024);border-right:1px solid #b49a6d55}.first-visit-portrait:before{content:'';position:absolute;inset:18px;border:1px solid #d1bd8055;pointer-events:none}.first-visit-portrait:after{content:'';position:absolute;inset:auto 0 0;height:65px;background:linear-gradient(transparent,#13241be8);pointer-events:none}.first-visit-portrait img{position:absolute;top:-32px;left:50%;width:520px;height:520px;max-width:none;object-fit:contain;image-rendering:pixelated;transform:translateX(-50%);filter:drop-shadow(0 15px 12px #07110b9c)}.first-visit-portrait span{position:absolute;bottom:15px;left:22px;z-index:1;color:#f0d59c;font-size:13px}.first-visit-bubble{display:flex;flex-direction:column;min-width:0;margin:26px 24px 26px 0;padding:27px 28px;background:linear-gradient(145deg,#20362a,#15271f);border:2px solid #cfb477;box-shadow:6px 6px 0 #08160d;color:#edf0df}.first-visit-bubble strong{display:block;color:#f4d494;font-size:23px}.first-visit-bubble strong small{display:block;margin-top:2px;font-size:12px;color:#b8c6aa;font-weight:normal}.first-visit-bubble [data-intro-text]{flex:1;min-height:110px;margin:25px 0 18px;font-size:19px;line-height:1.85}.first-visit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:15px;border-top:1px solid #adb48a4a;color:#b4c7a6;font-size:12px}.first-visit-actions button{min-height:44px;padding:8px 18px;border:1px solid #e8ce91;background:#c6a46c;color:#122218;font:inherit;font-weight:bold;cursor:pointer}.first-visit-actions button:disabled{opacity:.45;cursor:default}.first-visit-actions button:focus-visible{outline:2px solid #f5dc9a;outline-offset:3px}.first-visit-scene footer{padding:12px 24px;border-top:1px solid #a08f673f;text-align:right;color:#9caa93;font-size:11px}.first-visit-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes first-visit-fade{from{opacity:0}to{opacity:1}}@keyframes first-visit-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes first-visit-out{to{opacity:0}}@media(max-width:620px){.first-visit-cutscene{padding:15px}.first-visit-scene header{padding:12px 16px;display:block}.first-visit-scene header strong{display:block;margin-top:4px;font-size:14px}.first-visit-content{display:block}.first-visit-portrait{min-height:190px;border-right:0;border-bottom:1px solid #b49a6d55}.first-visit-portrait img{width:400px;height:400px;top:-20px}.first-visit-portrait span{bottom:11px;left:16px}.first-visit-bubble{margin:0;padding:18px 18px 16px;border-width:1px;box-shadow:none}.first-visit-bubble strong{font-size:19px}.first-visit-bubble [data-intro-text]{min-height:82px;margin:15px 0;font-size:16px}.first-visit-scene footer{padding:9px 16px}}@media(max-height:690px) and (max-width:620px){.first-visit-portrait{min-height:160px}.first-visit-portrait img{top:-16px;width:320px;height:320px}.first-visit-bubble [data-intro-text]{min-height:62px}}@media(prefers-reduced-motion:reduce){.first-visit-cutscene,.first-visit-scene,.first-visit-cutscene.exiting{animation:none}}

/* A soft vignette keeps the dialogue readable while the world remains visible behind it. */
.first-visit-cutscene{isolation:isolate;background:radial-gradient(ellipse 70% 65% at 50% 45%,#344b3252 0%,#10201966 60%,#040b087a 100%);backdrop-filter:blur(6px) brightness(.8)}
.first-visit-cutscene:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 75% 72% at 50% 48%,transparent 52%,#02070438 100%)}
.first-visit-scene{position:relative;overflow:hidden;border:1px solid #bda8739c;border-radius:14px;background:linear-gradient(145deg,#2b4030ed,#102018f2 76%);box-shadow:0 0 0 1px #e0c58a29,0 0 48px #b0a87925,0 28px 100px #0009}
.first-visit-scene:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 46px #08130b8c}
.first-visit-portrait{border-color:#b49a6d2f;background:radial-gradient(ellipse at 50% 40%,#9da97655,transparent 66%),linear-gradient(155deg,#334936,#172a20)}
.first-visit-portrait:before{inset:14px;border-color:#d1bd8038;border-radius:10px}
.first-visit-portrait:after{inset:0;width:auto;height:auto;background:linear-gradient(90deg,#203527a8,transparent 15%,transparent 78%,#1b2e2370),linear-gradient(0deg,#15271fe8,transparent 32%);z-index:0}
.first-visit-portrait img{z-index:0;mask-image:radial-gradient(ellipse 48% 60% at 50% 43%,#000 58%,transparent 100%)}
.first-visit-portrait span{z-index:2}
.first-visit-bubble{position:relative;border:1px solid #d5b879b8;border-radius:12px;background:linear-gradient(145deg,#243c2de8,#15271feb);box-shadow:0 12px 38px #050e0a80,inset 0 0 28px #a4b77b13}
.first-visit-actions button{border-radius:7px;background:linear-gradient(#e4c68b,#bc9962);box-shadow:0 3px 12px #0004}
.first-visit-actions button{max-width:calc(100% - 46px);white-space:normal;line-height:1.5;text-align:center}
@media(max-width:620px){.first-visit-scene{border-radius:12px}.first-visit-portrait{border-bottom:1px solid #b49a6d2f}.first-visit-bubble{margin:0 10px 10px;border-radius:10px;box-shadow:0 5px 20px #050e0a75}}
