/* Illustrated entry panel: real text, native controls, independent alpha artwork. */
body.entry-open { overflow: hidden; }
.entry-open .hero, .entry-open .how, .entry-open .site-footer { visibility: hidden; }
.entry-dialog { width: min(1080px,calc(100vw - 32px)); max-height: calc(100dvh - 16px); margin: auto; padding: 116px 16px 16px; border: 0; background: transparent; color: #f7e9d1; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a9814b #0b1020; }
.entry-dialog::backdrop { background: #0308174d; }
.entry-panel { --entry-art-height: clamp(140px,25vh,230px); position: relative; isolation: isolate; padding: 96px 48px 20px; border: 2px solid #c18e43; border-radius: 13px; background: radial-gradient(ellipse at 10% 10%,#d18e2110,transparent 45%),radial-gradient(ellipse at 90% 95%,#7c28c522,transparent 50%),repeating-linear-gradient(135deg,#ffffff02 0 1px,transparent 1px 6px),linear-gradient(135deg,#171c30,#101225 65%); box-shadow: inset 0 0 0 4px #281810,inset 0 0 0 6px #6c4a2a,inset 0 0 55px #0006,0 0 0 3px #23100a,0 0 0 5px #8d632d,0 22px 60px #000b; }
.entry-panel::before { content: ""; position: absolute; z-index: -1; inset: 11px; border: 1px solid #b88a4955; border-radius: 5px; pointer-events: none; }
.entry-brand { position: absolute; z-index: 4; top: -114px; left: 50%; transform: translateX(-50%); display: block; width: 380px; max-width: 72%; height: auto; filter: drop-shadow(0 9px 10px #0009); pointer-events: none; }
.panel-corner { position: absolute; z-index: 3; width: 72px; height: 72px; background: url("assets/ui/brass-corner.svg") center / contain no-repeat; pointer-events: none; }
.corner-tl { top: -9px; left: -9px; }
.corner-tr { top: -9px; right: -9px; transform: rotate(90deg); }
.corner-br { bottom: -9px; right: -9px; transform: rotate(180deg); }
.corner-bl { bottom: -9px; left: -9px; transform: rotate(270deg); }
.leather-tab { position: absolute; z-index: 2; top: -9px; width: 30px; height: 51px; border: 2px solid #40200d; border-radius: 4px 4px 10px 10px; background: linear-gradient(90deg,#523019,#9a5b31 45%,#5c341d); box-shadow: inset 2px 0 0 #d89b5744,0 3px 5px #0009; pointer-events: none; }
.leather-tab::after { content: ""; position: absolute; top: 14px; left: 9px; width: 8px; height: 8px; border: 1px solid #54300d; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffe0a0,#c08b3c 60%,#73410a); }
.leather-left { left: 15%; transform: rotate(7deg); }
.leather-right { right: 15%; transform: rotate(-7deg); }
.entry-panel .close { position: absolute; z-index: 5; top: 17px; right: 17px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 3px; border: 2px solid #c89b50; border-radius: 50%; background: radial-gradient(circle at 30% 20%,#293c56,#0b172b 70%); color: #ffdb90; font: 700 29px/1 Georgia,serif; box-shadow: 0 0 0 3px #110e14,inset 0 0 0 2px #0d1421; cursor: pointer; }
.entry-panel button:focus-visible { outline: 3px solid #ffe1a1; outline-offset: 5px; }
.entry-panel h2 { margin: 0; padding: 0 12px; color: #ffe5aa; font: 800 clamp(27px,2.25vw,36px)/1.16 Georgia,serif; text-align: center; text-shadow: 0 3px 2px #000b; text-wrap: balance; }
.entry-rule { display: flex; align-items: center; gap: 12px; width: 68%; height: 17px; margin: 13px auto 4px; color: #efc47c; font-size: 11px; }
.entry-rule::before, .entry-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,#c08b46); }
.entry-rule::after { transform: rotate(180deg); }
.entry-choices { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; }
.entry-choices::before { content: ""; position: absolute; top: 24px; bottom: 8px; left: 50%; width: 1px; background: linear-gradient(transparent,#a1783e80 22%,#a1783e80 78%,transparent); }
.entry-choice { display: grid; grid-template-rows: var(--entry-art-height) auto auto 1fr; align-content: start; min-width: 0; text-align: center; }
.entry-art { display: block; width: 100%; height: var(--entry-art-height); object-fit: contain; filter: drop-shadow(0 5px 9px #0005); pointer-events: none; }
.entry-choice h3 { margin: 3px 0 5px; color: #ffe7b1; font: 800 clamp(25px,2.2vw,33px)/1.1 Georgia,serif; text-shadow: 0 2px 3px #000b; }
.entry-choice p { margin: 0; color: #e0d3c0; font-size: 14px; line-height: 1.4; }
.entry-choice-actions { display: flex; flex-direction: column; justify-content: flex-end; gap: 13px; min-height: 128px; padding: 16px 6px 0; }
.world-picker { position: relative; align-self: center; width: 94%; }
.world-picker::after { content: ""; position: absolute; top: 19px; right: 15px; border: 6px solid transparent; border-top-color: #edbd69; pointer-events: none; }
#world { appearance: none; display: block; width: 100%; height: 44px; padding: 8px 36px 8px 14px; border: 1px solid #ca964a; border-radius: 6px; background: linear-gradient(#121c31,#080f20); color: #f5e6ca; font: 700 14px/1.2 system-ui,sans-serif; box-shadow: inset 0 0 0 2px #060a17,0 2px 5px #0005; cursor: pointer; }
#world:focus-visible { outline: 2px solid #ffe1a1; outline-offset: 3px; }
.entry-status { max-width: 720px; min-height: 32px; margin: 19px auto 0; color: #c4baab; font: 400 11px/1.45 system-ui,sans-serif; text-align: center; text-wrap: pretty; }
.entry-back { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 4px auto 0; padding: 4px 8px; border: 0; background: transparent; color: #f1d5a0; font: 600 13px/1.4 system-ui,sans-serif; cursor: pointer; }
.entry-back span { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width:641px) and (max-height:780px) {
 .entry-dialog { padding-top: 88px; }
 .entry-panel { --entry-art-height: clamp(120px,23vh,180px); padding: 75px 38px 16px; }
 .entry-brand { top: -88px; width: 300px; }
 .entry-panel h2 { font-size: 28px; }
 .entry-rule { margin-top: 9px; margin-bottom: 1px; }
 .entry-choice h3 { font-size: 28px; }
 .entry-choice-actions { min-height: 116px; padding-top: 12px; }
 .entry-choice-actions .game-button { min-height: 50px; }
 .entry-status { margin-top: 14px; }
}
@media (max-width:640px) {
 .entry-dialog { width: 100%; max-width: 100vw; max-height: calc(100dvh - 8px); padding: 72px 14px 14px; }
 .entry-panel { padding: 66px 20px 20px; }
 .entry-brand { top: -72px; width: 250px; max-width: 82%; }
 .panel-corner { width: 52px; height: 52px; }
 .leather-tab { width: 24px; height: 36px; }
 .leather-tab::after { top: 9px; left: 6px; }
 .leather-left { left: 13%; }.leather-right { right: 13%; }
 .entry-panel .close { top: 12px; right: 12px; width: 31px; height: 31px; font-size: 23px; }
 .entry-panel h2 { padding: 0 4px; font-size: 25px; }
 .entry-rule { margin: 12px auto 10px; }
 .entry-choices { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .entry-choices::before { display: none; }
 .entry-choice { grid-template-columns: 100px minmax(0,1fr); grid-template-rows: auto auto auto; gap: 0 10px; align-items: center; text-align: left; }
 .entry-art { grid-column: 1; grid-row: 1 / 3; height: 100px; }
 .entry-choice h3 { align-self: end; margin: 0 0 6px; font-size: 24px; }
 .entry-choice p { align-self: start; font-size: 12px; }
 .entry-choice-actions { grid-column: 1 / -1; min-height: 0; padding: 9px 7px 0; gap: 10px; }
 .entry-choice--return { border-top: 1px solid #b284434d; padding-top: 16px; }
 .world-picker { width: 100%; }
 .entry-choice-actions .game-button { min-height: 52px; padding: 12px 20px; font-size: 16px; }
 .entry-status { min-height: 36px; margin-top: 20px; font-size: 10px; }
 .entry-back { font-size: 12px; }
}
