#welcome{max-width:1100px;margin:auto;padding:32px 28px 0;font-family:var(--font-game);font-size:18px;line-height:1.85;color:#51455f}
#welcome *{box-sizing:border-box}#welcome h1,#welcome h2,#welcome h3,#welcome p{margin-top:0}
#welcome a{color:#6e438c;text-underline-offset:4px}#welcome a:focus-visible,#welcome button:focus-visible{outline:3px solid #755391;outline-offset:5px}
.welcome-hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:40px;min-height:570px}
.welcome-eyebrow{font-size:16px;letter-spacing:.05em;color:#776582}
#welcome-title{font-size:52px;font-weight:400;line-height:1.2;margin-bottom:24px}#welcome-title small{font-size:16px;vertical-align:middle}
#welcome .welcome-catch{font-size:30px;line-height:1.5;margin-bottom:22px}
.welcome-intro>p{margin-bottom:16px}
#welcome-start{display:block;width:100%;max-width:380px;border:1px solid #806294;background:#806294;color:white;border-radius:18px;padding:15px 20px;font:inherit;font-size:22px;cursor:pointer;margin-top:26px;box-shadow:0 6px 20px #76588c22}
#welcome-start:hover{background:#6b507d}#welcome-start:disabled{opacity:.6;cursor:wait}#welcome #welcome-status{font-size:15px;margin:10px 0}
.welcome-art{position:relative;align-self:stretch;min-height:420px;overflow:hidden;border-radius:160px 160px 28px 28px;background:radial-gradient(ellipse at 50% 42%,#fff8,#d9cce855 65%,#cdbbe244);border:1px solid #fff9}
.welcome-art img{position:absolute;bottom:0;width:100%;height:95%;object-fit:contain;object-position:bottom;image-rendering:pixelated}.welcome-art span{position:absolute;top:28px;width:100%;text-align:center;letter-spacing:.25em;font-size:13px}
.welcome-section{margin-top:48px;padding:30px;background:#fcfaff;border:1px solid #dacde4;border-radius:24px;scroll-margin-top:20px}
#welcome h2{font-size:27px;font-weight:400;line-height:1.4;margin-bottom:24px}.welcome-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:0;padding-left:24px}.welcome-steps li{padding-left:4px}.welcome-steps li::marker{color:#9876b0}.welcome-steps h3{font-size:23px;font-weight:400;margin-bottom:12px}.welcome-steps p{margin-bottom:0}
#welcome .welcome-fiction{font-size:16px;border-top:1px solid #e9dfef;margin:24px 0 0;padding-top:18px}.welcome-notes p:last-child{margin-bottom:0}
.welcome-footer{padding:30px 0;display:flex;justify-content:space-between;gap:16px;font-size:15px}.welcome-footer nav{display:flex;gap:20px;flex-wrap:wrap}
.welcome-links{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:16px;margin-top:16px}.welcome-history-note{font-size:16px;color:#776582}.welcome-update{border-top:1px solid #e9dfef;padding-top:22px;margin-top:22px}#welcome .welcome-update h3,#welcome-author h3{font-size:22px;font-weight:400;margin-bottom:10px}.welcome-update ul{padding-left:1.3em;margin:0}.welcome-update li+li{margin-top:8px}#welcome-author h3{margin-top:26px}
@media(max-width:760px){#welcome{padding:24px 20px 0;font-size:18px}.welcome-hero{gap:24px;min-height:0;grid-template-columns:1fr}.welcome-art{grid-row:1;min-height:230px;height:230px;border-radius:100px 100px 24px 24px}.welcome-art img{height:150%;bottom:-115px}.welcome-art span{top:16px}#welcome-title{font-size:40px;margin-bottom:16px}#welcome .welcome-catch{font-size:27px}.welcome-eyebrow{font-size:15px}#welcome-start{max-width:none}.welcome-section{margin-top:28px;padding:22px}.welcome-steps{grid-template-columns:1fr;gap:22px}.welcome-footer{display:block}.welcome-footer nav{margin-top:12px;gap:10px 20px}}

/* リリヤがいる白い部屋 */
.room .portrait,.welcome-art{background:#fff}
.room .portrait .halo{display:none}

.welcome-ad{margin:40px auto 24px;text-align:center;max-width:100%}
#welcome .welcome-ad-label{font-size:12px;color:#81728e;margin:0 0 8px}
.welcome-ad-slot{width:300px;min-height:250px;margin:0 auto;max-width:100%}

/* AdMax creates its right-side container outside #welcome. Hide both the
   container and its reserved margin after entering the game or on small screens. */
@media(max-width:1319px),(max-height:679px){
  [data-admax-sticky-wrapper]>div:has(>.admax-official-overlap-close-right){display:none!important}
  [data-admax-sticky-wrapper]>div:first-child{margin-right:0!important}
}

#game-entry-status{display:none;text-align:center;padding:40px 20px;font-family:var(--font-game)}
.game-entry #welcome{display:none}
.game-entry #game-entry-status:not([hidden]){display:block}
#game-entry-status button{display:block;margin:20px auto;padding:10px 20px}
