.title-home { display: block; padding: 0; border: 0; background: none; border-radius: 12px; }
.title-home img { display: block; }
body.title-open { overflow: hidden; }
#title-screen { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border: 0; color: #28334b; background: #fff8e9; }
#title-screen[open] { display: grid; align-items: safe center; justify-items: center; }
#title-screen::backdrop { background: #fff8e9; }
.title-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); width: min(1060px, 100%); }
.title-picture { margin: 0; }
.title-picture img { display: block; width: 100%; height: auto; border: 2px solid #465748; border-radius: 30px; box-shadow: 0 7px 0 #e2d5b7; }
.title-copy { padding-block: 12px; }
.title-copy h2 { margin: 0 0 24px; }
.title-copy h2 img { display: block; width: min(320px, 100%); height: auto; }
.title-premise { margin: 0 0 12px; font-size: clamp(24px, 2.7vw, 32px); font-weight: 800; line-height: 1.22; letter-spacing: -.025em; }
.title-instructions { max-width: 28em; margin: 0 0 26px; font-size: 18px; line-height: 1.5; color: #596073; }
.title-resume { margin-bottom: 16px; }
.title-resume p { margin: 0; }
#resume-question { font-size: 18px; font-weight: 800; }
#resume-place { margin-top: 5px; font-size: 15px; color: #626476; }
.title-actions { display: grid; gap: 10px; }
.title-actions button { min-height: 54px; padding: 12px 18px; font-size: 19px; border-radius: 15px; }
#title-play { background: #bce884; border-color: #38533d; box-shadow: 0 3px 0 #38533d; }
#title-alternative { background: transparent; border-color: #c1bba9; font-size: 16px; }
.title-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.title-links a, .how-link { color: #624591; font-size: 16px; font-weight: 800; text-underline-offset: 4px; }
.title-links a { padding: 12px 0; }
#title-screen [data-game-sound] { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: #fffdf6; border-color: #c1bba9; font-size: 14px; }
#how-to-play { width: min(650px, calc(100% - 28px)); max-height: min(90dvh, 800px); padding: 0; color: #28334b; background: #fffdf6; border: 2px solid #394255; border-radius: 24px; }
#how-to-play::backdrop { background: #28334b80; }
.how-copy { padding: 30px 30px 18px; }
.how-copy h2 { font-size: 32px; margin-bottom: 24px; }
.how-copy ol { padding-left: 24px; margin: 0; }
.how-copy li { padding-left: 6px; margin: 0 0 18px; font-size: 17px; line-height: 1.5; }
.how-copy strong { display: block; color: #38533d; }
.how-copy details { border-top: 1px solid #ddd5c5; padding-top: 16px; }
.how-copy summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.how-copy details p { font-size: 16px; line-height: 1.5; }
#how-to-play form { position: sticky; bottom: 0; margin: 0; padding: 14px 30px 22px; background: #fffdf6; border-top: 1px solid #e4dece; }
#how-to-play form button { width: 100%; min-height: 50px; background: #bce884; font-size: 17px; }
#chapter-help .how-link { display: inline-block; margin-top: 24px; padding: 8px 0; }
@media (max-width: 700px) {
  #title-screen { padding: max(18px, env(safe-area-inset-top)) 24px max(18px, env(safe-area-inset-bottom)); }
  .title-card { grid-template-columns: 1fr; gap: 20px; max-width: 430px; }
  .title-picture img { width: auto; max-width: 100%; max-height: 24dvh; margin: auto; border-radius: 20px; }
  .title-copy { padding: 0; }
  .title-copy h2 { margin-bottom: 16px; }
  .title-copy h2 img { width: 224px; }
  .title-premise { font-size: 24px; }
  .title-instructions { font-size: 16px; margin-bottom: 18px; }
  .title-links { margin-top: 12px; }
  .how-copy { padding: 24px 22px 14px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  #title-screen { padding-block: 20px; }
  .title-copy h2 { margin-bottom: 12px; }
  .title-copy h2 img { width: 220px; }
  .title-instructions { margin-bottom: 14px; font-size: 16px; }
  .title-premise { font-size: 24px; }
  .title-links { margin-top: 10px; }
}

.title-name{display:block;margin:0 0 18px;font-size:16px;font-weight:700}.title-name span{font-size:14px;font-weight:400;color:#626476}#title-player-name{display:block;box-sizing:border-box;width:100%;margin-top:7px;min-height:48px;padding:10px 14px;border:1px solid #b8b59e;border-radius:10px;background:#fffdf6;font-family:inherit;font-size:18px;line-height:1.3;color:#28334b}#title-player-name:focus-visible{outline:3px solid #b5550b;outline-offset:2px}@media(max-width:700px){.title-name{margin-bottom:14px}}

.title-secondary-actions{display:flex;gap:10px}.title-secondary-actions button{flex:1;min-width:0}.title-secondary-actions button[hidden]{display:none!important}#title-certificates{background:#f3ecfa;border-color:#baabc8;font-size:16px;color:#624591}
