/* Landing 2026: the gate (login over the painted valley), the character creator and the menu. */
.landing.gate-mode, .landing.menu-mode, .landing.scene-mode {
	padding: 0; display: block;
	background: url(../img/landing.webp) center / cover no-repeat, #1b2a22;
}
.landing.gate-mode::before, .landing.menu-mode::before, .landing.scene-mode::before { content: ''; position: fixed; inset: 0; pointer-events: none; }
.landing.gate-mode::before { background: radial-gradient(ellipse at 50% 55%, rgba(10, 18, 14, .15), rgba(10, 18, 14, .55) 80%), linear-gradient(180deg, rgba(10, 18, 14, .35), transparent 30%, transparent 70%, rgba(10, 18, 14, .6)); }
.landing.menu-mode::before { background: linear-gradient(90deg, rgba(14, 24, 19, .82), rgba(14, 24, 19, .45) 55%, rgba(14, 24, 19, .7)); backdrop-filter: blur(2px); }
.landing.scene-mode::before { background: rgba(12, 20, 16, .72); backdrop-filter: blur(6px); }
.landing .hero-logo { font-family: 'Cinzel', serif; color: #f7ecd2; text-shadow: 0 3px 0 #2d1a0c, 0 6px 24px rgba(0, 0, 0, .6); }

/* gate */
.gate { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; }
.gate-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-brand .hero-logo { font-size: clamp(40px, 7vw, 76px); }
.gate-brand .hero-logo .mark { width: clamp(48px, 7vw, 80px); height: auto; }
.gate .tagline { text-align: center; max-width: 36em; color: #fbf1da; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); font-family: 'Alegreya', serif; }
.gate .auth-card { width: min(400px, 100%); box-shadow: 0 0 0 1px #c49a52, 0 0 0 5px rgba(36, 58, 50, .85), 0 24px 60px rgba(0, 0, 0, .6); border-radius: 14px; }
.gate-foot { color: #f1dfb4; font-family: 'Alegreya', serif; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); text-align: center; font-size: 15px; }

/* menu */
.menu { position: relative; width: min(1180px, 100%); margin: 0 auto; padding: 22px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-logo.small { font-size: 34px; gap: 10px; }
.hero-logo.small .mark { width: 40px; height: 40px; }
.menu-acc { display: flex; align-items: center; gap: 10px; color: #f1dfb4; }
.menu-acc .muted { color: #e6d6b2; }
.menu-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.menu-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.menu-hero { align-items: center; text-align: center; }
.mh-stage { position: relative; width: 100%; height: 300px; border-radius: 10px; overflow: hidden; background: radial-gradient(140px 170px at 50% 62%, rgba(255, 214, 140, .55), transparent 70%), linear-gradient(180deg, #4a2e17, #20130a); box-shadow: inset 0 0 0 2px #c49a52; }
.mh-banner { position: absolute; left: 50%; top: 0; width: 92px; height: 200px; transform: translateX(-50%); background: var(--pc); clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); opacity: .85; box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .25); }
.mh-portrait { position: absolute; left: 50%; bottom: 6px; height: 290px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .7)); }
.mh-name { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 800; color: var(--crimson, #7d1f16); line-height: 1.1; }
.mh-title { color: #6b5532; font-family: 'Alegreya', serif; margin-top: -6px; }

/* creator */
.creator2 { position: relative; min-height: 100%; width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); gap: 26px; padding: 26px 20px; align-items: center; }
.cr2-stage { position: relative; height: min(78vh, 720px); border-radius: 18px; overflow: hidden;
	background: radial-gradient(ellipse 45% 55% at 50% 60%, rgba(255, 210, 140, .35), transparent 70%), linear-gradient(180deg, #2c4034, #15201a);
	box-shadow: inset 0 0 0 2px #c49a52, inset 0 -60px 80px rgba(0, 0, 0, .45), 0 20px 60px rgba(0, 0, 0, .5); }
.cr2-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.cr2-stage canvas:active { cursor: grabbing; }
.cr2-plate { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); min-width: 240px; max-width: 90%; text-align: center; padding: 8px 18px; border-radius: 8px; background: linear-gradient(180deg, #f5e8c8, #e2cd9b); box-shadow: 0 0 0 2px #8b6a35, 0 8px 20px rgba(0, 0, 0, .5); pointer-events: none; }
.cr2-plate b { display: block; font-family: 'Cinzel', serif; font-size: 24px; color: #7d1f16; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr2-plate span { font-family: 'Alegreya', serif; color: #6b5532; font-size: 14px; }
.cr2-hint { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: rgba(241, 223, 180, .7); font-size: 13px; pointer-events: none; }
.cr2-panel { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: linear-gradient(180deg, #f5e8c8, #e9d5a8); color: var(--ink, #2b2116); box-shadow: 0 0 0 1px #c49a52, 0 20px 60px rgba(0, 0, 0, .55); max-height: calc(100vh - 52px); overflow-y: auto; }
.cr2-panel h2 { margin: 0; font-family: 'Cinzel', serif; font-size: 26px; color: #7d1f16; }
.cr2-lead { margin: 0 0 6px; color: #6b5532; font-family: 'Alegreya', serif; }
.cr2-panel .label { text-align: left; margin: 6px 0 2px; }
.cr2-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cr2-fig { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 4px; border-radius: 8px; cursor: pointer; min-width: 0; overflow: hidden; background: linear-gradient(180deg, #3d2714, #20130a); border: 2px solid #8b6a35; color: #f1dfb4; font: 600 11px 'Alegreya', serif; }
.cr2-fig img { height: 62px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.cr2-fig span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr2-fig:hover, .cr2-fig.sel { border-color: #e9c766; }
.cr2-fig.sel { box-shadow: 0 0 0 2px #e9c766, 0 0 14px rgba(233, 199, 102, .6); background: linear-gradient(180deg, #6a4422, #2b190c); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatches.off { opacity: .4; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(43, 33, 22, .45); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), transparent 45%), var(--sw); cursor: pointer; padding: 0; transition: transform .1s; }
.swatch:not(:disabled):hover { transform: scale(1.12); }
.swatch.sel { box-shadow: 0 0 0 3px #f5e8c8, 0 0 0 5px #7d1f16; }
.swatch:disabled { cursor: default; }
.cr2-panel .colors { justify-content: flex-start; }
.cr2-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-top: 10px; }
.cr2-actions .btn.big { flex: 1; min-width: 180px; }

@media (max-width: 860px) {
	.menu-grid { grid-template-columns: 1fr; }
	.mh-stage { height: 220px; }
	.mh-portrait { height: 210px; }
	.creator2 { grid-template-columns: 1fr; gap: 14px; padding: 14px 16px 24px; align-items: start; }
	.cr2-stage { height: 46vh; min-height: 300px; }
	.cr2-panel { max-height: none; padding: 16px; }
	.cr2-plate b { font-size: 19px; }
}
@media (max-width: 520px) {
	.gate-brand .hero-logo { font-size: 8.4vw; gap: 8px; }
	.gate-brand .hero-logo .mark { width: 9vw; }
	.menu .btn-note { display: none; }
	.hero-logo.small { font-size: 24px; }
}

/* ---------- character creation (MMO style): full-screen stage, panels on both sides ---------- */
.landing.creator-mode { position: fixed; inset: 0; padding: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #34445c, #141a24 60%, #07090d); }
.creator3 { position: absolute; inset: 0; color: #f3e7cc; font-family: 'Alegreya', Georgia, serif; }
.creator3 > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cr3-title { position: absolute; top: 18px; left: 50%; translate: -50% 0; text-align: center; pointer-events: none; }
.cr3-title h1 { margin: 0; font: 800 28px 'Cinzel', serif; letter-spacing: 3px; color: #ffd76a; text-shadow: 2px 2px 0 #000, 0 0 14px rgba(0, 0, 0, .8); }
.cr3-title p { margin: 4px 0 0; color: #e8dcc0; text-shadow: 1px 1px 0 #000; }
.cr3-figs, .cr3-look { position: absolute; top: 96px; bottom: 110px; width: 300px; overflow-y: auto; padding: 14px; border-radius: 10px; scrollbar-width: thin;
	background: linear-gradient(180deg, rgba(22, 19, 15, .86), rgba(9, 8, 7, .86)); border: 1px solid #000;
	box-shadow: inset 0 0 0 1px #c9a24f, inset 0 0 0 4px #120c06, inset 0 0 0 5px rgba(201, 162, 79, .3), 0 14px 40px rgba(0, 0, 0, .55); }
.cr3-figs { left: 20px; }
.cr3-look { right: 20px; }
.creator3 h3 { margin: 0 0 10px; font: 800 14px 'Cinzel', serif; letter-spacing: 2px; color: #c9a24f; text-transform: uppercase; text-align: center; }
.cr3-fig { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; margin-bottom: 7px; border-radius: 40px 10px 10px 40px; cursor: pointer; text-align: left; color: inherit;
	background: linear-gradient(90deg, rgba(60, 45, 28, .7), rgba(20, 16, 12, .5)); border: 1px solid rgba(201, 162, 79, .35); transition: transform .15s, border-color .15s; }
.cr3-fig:hover { transform: translateX(4px); border-color: #ffd76a; }
.cr3-fig img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #2a2016; box-shadow: 0 0 0 2px #120c06, 0 0 0 4px #c9a24f; }
.cr3-fig span { display: flex; flex-direction: column; min-width: 0; }
.cr3-fig b { font: 800 15px 'Cinzel', serif; color: #ffd76a; }
.cr3-fig small { font-size: 12px; color: #b9ab8c; }
.cr3-fig.sel { border-color: #ffd76a; background: linear-gradient(90deg, rgba(120, 85, 30, .8), rgba(40, 28, 14, .6)); box-shadow: 0 0 16px rgba(255, 215, 106, .35); }
.cr3-fig.sel img { box-shadow: 0 0 0 2px #120c06, 0 0 0 4px #ffd76a, 0 0 14px #ffd76a; }
.cr3-lore { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-style: italic; font-size: 13.5px; line-height: 1.4; color: #e8dcc0; }
.cr3-row { margin-bottom: 14px; }
.cr3-row.off { opacity: .45; }
.cr3-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.cr3-arrow { width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; font-size: 13px; color: #ffd76a; background: radial-gradient(circle at 40% 35%, #5a3a1c, #1e130a); border: 1px solid #c9a24f; }
.cr3-arrow:hover:not(:disabled) { filter: brightness(1.35); }
.cr3-arrow:disabled { cursor: default; }
.cr3-val { flex: 1; display: flex; flex-direction: column; align-items: center; }
.cr3-val small { font: 700 11px 'Cinzel', serif; letter-spacing: 1.5px; text-transform: uppercase; color: #c9a24f; }
.cr3-val b { font-size: 16px; color: #fff; }
.cr3-row .swatches { justify-content: center; }
.cr3-row .shields, .cr3-row > div:last-child { justify-content: center; }
.cr3-turn { position: absolute; bottom: 120px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 14px; color: #e8dcc0; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.cr3-round { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; color: #ffd76a; background: radial-gradient(circle at 40% 35%, #4a3220, #1a110a); border: 1px solid #c9a24f; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.cr3-bottom { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.cr3-bottom > :first-child { justify-self: start; }
.cr3-bottom > :last-child { justify-self: end; min-width: 220px; }
.cr3-name { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: linear-gradient(180deg, rgba(22, 19, 15, .9), rgba(9, 8, 7, .9)); box-shadow: inset 0 0 0 1px #c9a24f, 0 10px 30px rgba(0, 0, 0, .5); }
.cr3-name label { font: 800 13px 'Cinzel', serif; letter-spacing: 1.5px; color: #c9a24f; text-transform: uppercase; }
.cr3-name input { width: 260px; font: 700 18px 'Alegreya', serif; text-align: center; background: rgba(0, 0, 0, .45); color: #ffd76a; border: 1px solid rgba(201, 162, 79, .5); }
.cr3-error { position: absolute; bottom: 92px; left: 50%; translate: -50% 0; }
@media (max-width: 900px) {
	.cr3-title { top: 8px; }
	.cr3-title h1 { font-size: 20px; }
	.cr3-title p { display: none; }
	.cr3-figs { top: auto; left: 10px; right: 10px; bottom: 150px; width: auto; height: auto; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
	.cr3-figs h3, .cr3-lore, .cr3-fig small { display: none; }
	.cr3-fig { flex-direction: column; width: auto; margin: 0; padding: 6px; border-radius: 10px; }
	.cr3-fig img { width: 42px; height: 42px; }
	.cr3-look { top: auto; left: 10px; right: 10px; bottom: 236px; width: auto; max-height: 34vh; }
	.cr3-turn { display: none; }
	.cr3-bottom { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 1fr; }
	.cr3-bottom > * { justify-self: stretch !important; }
	.cr3-name input { width: 100%; }
}

/* "© 2026 OnlyPlayers Studio" under the gate and the menu */
.studio-credit { display: block; width: fit-content; margin: 18px auto 6px; color: rgba(241, 223, 180, .75); font-family: 'Alegreya', serif; font-size: 13.5px; letter-spacing: .04em; text-decoration: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.studio-credit:hover { color: #f1dfb4; }
