/* © 2026 SUKIMA GAMES All rights reserved. */
/* 祭りの出動ポスター：紙・インク・型抜きのリズム。 */
#titleScreen .tHead, #titleScreen .tPick, #titleScreen .tAct { grid-area: auto; }
#titleScreen .btn.big { line-height: 1.15; }
#titleScreen { --paper: #fff5dc; --navy: #183b53; color: var(--navy); padding: max(34px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); overflow: hidden; background: #f6e6bd; isolation: isolate; }
#titleScreen::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(#bd9b6933 .8px, transparent 1px) 0 0 / 7px 7px, repeating-linear-gradient(110deg, transparent 0 100px, #fff8df88 101px 170px, transparent 171px 300px); }
#titleScreen::after { content: ''; position: absolute; inset: 9px; border: 1px solid #947b4840; pointer-events: none; z-index: -1; }
#titleScreen .back { z-index: 4; font-size: 11px; color: var(--navy); background: #fff9e8; border: 1px solid #173c5333; top: 10px; left: 24px; padding: 5px 10px; opacity: 1; }
.festivalDecor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.festivalDecor::before { content: ''; position: absolute; width: 110%; height: 90px; border-bottom: 3px solid #183b53; border-radius: 50%; top: -65px; left: -5%; transform: rotate(-3deg); }
.festivalDecor i { position: absolute; width: 50px; height: 80px; background: #e6533c; top: -26px; left: 22%; transform: rotate(12deg); clip-path: polygon(0 0,100% 0,100% 100%,50% 70%,0 100%); }
.festivalDecor i:nth-child(2) { left: 29%; height: 66px; background: #21a7b4; transform: rotate(-9deg); }
.festivalDecor i:nth-child(3) { left: 72%; background: #e9aa28; height: 55px; }
.festivalDecor i:nth-child(4) { left: 81%; background: #2194b1; height: 75px; transform: rotate(-12deg); }
.decorLantern { width: 110px; height: 160px; object-fit: contain; position: absolute; top: 35px; opacity: .92; }
.decorLantern.left { left: -30px; transform: rotate(14deg); }.decorLantern.right { right: -30px; transform: rotate(-14deg); }
.decorFirework { position: absolute; width: 350px; opacity: .14; right: -70px; bottom: -75px; transform: rotate(15deg); }
#titleScreen .tWrap { width: min(1240px, 100%); height: 100%; min-height: 0; margin: 0; padding: 0; gap: clamp(12px, 2vh, 22px); display: grid; grid-template: minmax(94px, 20%) minmax(0, 1fr) 76px / 1fr; align-items: stretch; }
#titleScreen .tHead { display: flex; align-items: center; justify-content: center; gap: clamp(25px, 5vw, 90px); min-height: 0; text-align: left; }
#titleScreen .logoImg { width: 44%; max-width: 510px; min-width: 0; animation: none; transform: rotate(-4deg); }
#titleScreen .logoImg img { width: 100%; max-height: 21vh; filter: drop-shadow(2px 5px 0 #173c5326); }
.festivalTag { display: inline-block; padding: 3px 12px; color: #fff9e8; background: #173d53; font-size: 11px; font-weight: 800; letter-spacing: .14em; transform: rotate(2deg); }
.festivalCopy p { margin: 8px 0 6px; font-size: clamp(17px, 2.6vw, 33px); line-height: 1.1; font-weight: 900; letter-spacing: .03em; }
.festivalCopy strong { display: block; font-size: 1.35em; color: #dc4933; }.festivalCopy strong span { display: inline-block; transform: rotate(12deg); }
.festivalCopy small { font-size: 11px; font-weight: 700; }
#titleScreen .tPick { padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; display: grid; grid-template-rows: 33px minmax(0,1fr); gap: 12px; min-height: 0; }
#titleScreen .pick { display: flex; align-items: center; gap: 10px; margin: 0; text-align: left; letter-spacing: 0; }
#titleScreen .pick .pickNumber { display: grid; place-items: center; background: #df4d36; border: 2px solid #fff9e8; box-shadow: 2px 2px 0 #183b53; color: #fff; width: 32px; height: 32px; border-radius: 50%; padding: 0; font: 900 14px system-ui; transform: rotate(-9deg); }
.pick h2 { margin: 0; font-size: clamp(16px, 2vw, 22px); font-weight: 900; }
#titleScreen .pick .pickHint { font-size: 11px; background: transparent; margin-left: auto; padding: 0; color: var(--navy); }
.rosterBack { display: none; margin-left: auto; background: #fff9e8; border: 1px solid #183b5366; border-radius: 4px; color: var(--navy); padding: 8px 12px; font: 800 11px var(--font); cursor: pointer; }
.selectionContent { min-height: 0; display: flex; gap: 20px; }
#titleScreen .chars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(10px, 2vw, 24px); width: 100%; min-height: 0; align-items: stretch; padding: 12px 5px; }
#titleScreen .chCard { position: relative; width: 100%; max-width: none; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0 0 16px; border: 3px solid #fffdf2; border-radius: 7px 7px 26px 7px; background: color-mix(in srgb, var(--cc) 24%, #fff8df); color: var(--navy); box-shadow: 5px 7px 0 var(--navy); transform: rotate(var(--rot)); transition: transform .2s, box-shadow .2s; cursor: pointer; overflow: visible; }
#titleScreen .chCard:nth-child(1) { --rot: -3deg; }#titleScreen .chCard:nth-child(2) { --rot: 2deg; }#titleScreen .chCard:nth-child(3) { --rot: -2deg; }#titleScreen .chCard:nth-child(4) { --rot: 3deg; }
#titleScreen .chCard:hover { transform: rotate(0) translateY(-8px); box-shadow: 5px 12px 0 var(--navy); z-index: 2; }
#titleScreen .chCard.sel { border-color: #fffdf2; box-shadow: 5px 7px 0 var(--navy); transform: rotate(var(--rot)); z-index: auto; }
#titleScreen .chCard.sel::after { display: none; }
.chPortrait { display: block; min-height: 0; flex: 1; position: relative; overflow: hidden; border-bottom: 2px dashed #183b5333; border-radius: 4px 4px 0 0; background: radial-gradient(circle, #fff9e899 2px, transparent 2.5px) 4px 4px / 13px 13px; }
.chPortrait::before { content: ''; position: absolute; width: 130%; aspect-ratio: 1; border: 1px solid #fff9e8; border-radius: 50%; top: 6%; left: -15%; }
.chPortrait img { position: relative; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; transform: scale(1.08); transform-origin: center bottom; filter: drop-shadow(3px 4px 0 #183b531c); }
#titleScreen .chCard .chNumber { position: absolute; top: -10px; left: 8px; z-index: 2; background: var(--navy); color: #fff9e8; padding: 3px 9px; font: 800 12px system-ui; transform: rotate(-6deg); margin: 0; }
#titleScreen .chCard .chName { padding: 12px 14px 4px; display: flex; align-items: center; justify-content: space-between; font-size: clamp(24px, 3.3vw, 43px); line-height: 1.1; font-weight: 900; margin: 0; letter-spacing: .02em; }
#titleScreen .chCard small { display: inline-block; background: var(--navy); border-radius: 2px; padding: 4px 8px; margin: 0; color: #fff; font-size: 11px; transform: rotate(-5deg); }
#titleScreen .chCard .chCatch { text-align: left; font-size: 11px; font-weight: 800; padding: 4px 16px; margin: 0; }
#titleScreen .chCard .chArrow { position: absolute; bottom: -11px; right: -8px; border: 2px solid var(--navy); width: 36px; height: 36px; background: #ffcb45; border-radius: 50%; display: grid; place-items: center; font: 900 23px system-ui; margin: 0; }
#titleScreen .selectionFocus { display: none; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; min-width: 0; }.selectionFocus::before { display: none; }
#titleScreen .tAct { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 0; }
#titleScreen .btn.big { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #e95135; border: 3px solid #fff9e8; border-radius: 8px 8px 22px 8px; color: #fff9e8; box-shadow: 4px 5px 0 var(--navy); text-shadow: none; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .03em; padding: 14px 22px; min-width: 280px; animation: none; margin: 0; transform: rotate(-2deg); }
#titleScreen .btn.big:hover { transform: rotate(0) translateY(-2px); background: #db4129; }#titleScreen .btn.big:active { transform: translateY(3px); box-shadow: 2px 2px 0 var(--navy); }
#titleScreen .btn.big i { font-style: normal; font-size: 28px; }
.festivalFootnote { text-align: left; margin: 0; padding-left: 12px; border-left: 4px solid #df4d36; }.festivalFootnote b { display: block; font-size: 20px; }.festivalFootnote span { font-size: 11px; }
#titleScreen .icons { justify-content: flex-end; gap: 8px; }#titleScreen .ibtn { flex-direction: row; gap: 6px; width: auto; padding: 7px 9px; border: 1px solid #183b53; border-radius: 4px; color: var(--navy); background: #fff9e8; box-shadow: 2px 3px 0 #183b5329; font-size: 10px; min-height: 44px; }
#titleScreen .ibtn i { background: none; color: var(--navy); width: 22px; height: 25px; font-size: 20px; }#titleScreen .ibtn.off { opacity: .65; }
#titleScreen .best { display: none; }.confetti { display: none !important; }
#titleScreen[data-expanded="true"] .pickHint { display: none; }#titleScreen[data-expanded="true"] .rosterBack { display: block; }
#titleScreen[data-expanded="true"] .chars { width: 22%; flex: 0 0 22%; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); padding: 5px 0 10px; gap: 14px; }
#titleScreen[data-expanded="true"] .chCard { padding-bottom: 3px; border-width: 2px; box-shadow: 3px 4px 0 #183b5366; border-radius: 4px 4px 13px 4px; }
#titleScreen[data-expanded="true"] .chName { font-size: 18px; justify-content: center; padding: 5px 0 3px; }#titleScreen[data-expanded="true"] .chName small, #titleScreen[data-expanded="true"] .chCatch, #titleScreen[data-expanded="true"] .chArrow, #titleScreen[data-expanded="true"] .chNumber { display: none; }
#titleScreen[data-expanded="true"] .chCard.sel { border-color: #183b53; box-shadow: 0 0 0 3px #ffcb45, 4px 5px 0 #183b53; transform: rotate(0); }
#titleScreen[data-expanded="true"] .selectionFocus { flex: 1; display: grid; grid-template-columns: .95fr 1fr; gap: 16px; min-height: 0; }
.selectedCharacter { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.selectedTitle { z-index: 2; flex: 0 0 auto; text-align: center; position: relative; }
.selectedTitle small { display: inline-block; border-bottom: 2px solid var(--selected); font-size: 12px; letter-spacing: .14em; }.selectedTitle h3 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; letter-spacing: .08em; font-weight: 900; }.selectedTitle p { margin: 4px 0 0; font-size: 11px; }
.fullStage { min-height: 0; flex: 1; position: relative; width: 100%; display: flex; justify-content: center; }
.fullStage img { position: relative; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(4px 5px 0 #173d531f); animation: paperEntrance .3s ease-out both; }
.fullOrbit { position: absolute; border: 2px dashed color-mix(in srgb, var(--selected) 70%, #fff9e8); border-radius: 50%; width: 95%; aspect-ratio: 1; bottom: 12%; }
.fullSticker { position: absolute; right: -6px; bottom: 8%; border-radius: 50%; width: 70px; height: 70px; background: #ffcb45; border: 3px double var(--navy); font-size: 10px; padding-top: 9px; transform: rotate(14deg); line-height: 1.3; }.fullSticker b { color: var(--navy); font: 900 25px system-ui; }
.demoPanel { min-height: 0; display: grid; grid-template-rows: 29px minmax(90px,1fr) auto 3px 32px auto; padding: 12px; border: 2px solid var(--navy); background: #fffaf0; border-radius: 6px 6px 22px 6px; box-shadow: 4px 5px 0 #173d5322; gap: 6px; position: relative; text-align: left; }
.demoHeading { display: flex; justify-content: space-between; align-items: center; }.demoHeading span { font-size: 11px; font-weight: 900; letter-spacing: .07em; }.demoHeading button { font: 700 10px var(--font); color: var(--navy); background: transparent; border: 1px solid #173d5340; padding: 5px 8px; border-radius: 3px; cursor: pointer; }
.demoStage { position: relative; overflow: hidden; min-height: 0; border-radius: 3px; background: radial-gradient(#fffdf4aa 1px,transparent 1.5px) 0 0 / 10px 10px, #cee8dd; border-bottom: 10px solid #94b7a1; }
.demoStage::after { content: ''; position: absolute; height: 1px; border-bottom: 1px dashed #42695555; bottom: 8%; width: 100%; }
.demoSun { position: absolute; right: 8%; top: 15%; width: 30px; height: 30px; border-radius: 50%; background: #ffca62; box-shadow: 0 0 0 9px #ffca6230; }
.demoAvatar { position: absolute; left: 10%; bottom: 2%; width: 49%; height: 94%; object-fit: contain; object-position: center bottom; z-index: 2; filter: drop-shadow(2px 3px 0 #173d5322); }
.demoGhost { position: absolute; right: 5%; bottom: 15%; width: 23%; height: 44%; object-fit: contain; opacity: .92; transform: rotate(8deg); }
.demoPuddle { position: absolute; width: 68%; height: 26%; bottom: -4%; left: 0; opacity: 0; object-fit: fill; }
.demoProjectile { position: absolute; width: 18%; height: 28%; object-fit: contain; bottom: 35%; left: 40%; opacity: 0; }.demoSub { position: absolute; left: 42%; bottom: 8%; width: 35%; height: 58%; object-fit: contain; opacity: 0; }.demoImpact { position: absolute; width: 25%; height: 30%; bottom: 28%; right: 1%; opacity: 0; }
.demoPaperTag { position: absolute; top: 9px; left: -5px; background: #fff9e8; padding: 3px 10px; transform: rotate(-6deg); font-size: 9px; z-index: 3; }
.demoStage[data-action="attack"] .demoProjectile { animation: paperShot 1.3s steps(10) infinite; }.demoStage[data-action="attack"] .demoImpact { animation: paperHit 1.3s steps(2) infinite; }.demoStage[data-action="attack"] .demoGhost { animation: ghostHit 1.3s steps(3) infinite; }
.demoStage[data-action="swim"] .demoPuddle { opacity: 1; }.demoStage[data-action="swim"] .demoAvatar { height: 58%; bottom: -2%; animation: paperSwim 1s steps(6) infinite; }
.demoStage[data-action="jump"] .demoAvatar { animation: paperJump 1.4s steps(10) infinite; }.demoStage[data-action="sub"] .demoSub { opacity: 1; animation: subPop 1.8s steps(8) infinite; }.demoStage[data-action="sub"][data-character="dolphin"] .demoAvatar { animation: paperDash 1.8s steps(8) infinite; }
.demoStage.demoPaused *, .demoPaused::after { animation-play-state: paused !important; }
.demoCaption { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }.demoCaption b { color: var(--navy); font-size: 16px; }.demoCaption kbd { font: 800 10px var(--font); background: #173d53; color: #fff9e8; padding: 4px 7px; border-radius: 3px; }.demoCaption small { flex-basis: 100%; font-size: 10px; line-height: 1.4; min-height: 14px; }
.demoProgress { background: #173d5312; overflow: hidden; }.demoProgress i { display: block; height: 100%; width: var(--progress); background: #e6533c; }
.demoSteps { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }.demoSteps button { padding: 4px 0; color: var(--navy); font: 800 10px var(--font); border: 1px solid #173d5340; border-radius: 2px; background: #fff9e8; cursor: pointer; }.demoSteps button.active { background: #173d53; color: #fff9e8; }
.abilityNote { border-top: 1px dashed #173d5340; padding-top: 5px; }.abilityNote p { margin: 4px 0; display: flex; align-items: center; gap: 5px; font-size: 10px; }.abilityNote p span { font-size: 8px; padding: 1px 4px; background: color-mix(in srgb,var(--selected) 20%,#fff9e8); border-radius: 2px; }.abilityNote b { color: var(--navy); font-size: 11px; }.abilityNote small { font-size: 9px; line-height: 1.4; display: block; }.abilityNote .trait + small { color: #4b6269; }
button:focus-visible, a:focus-visible { outline: 3px solid #e6533c; outline-offset: 4px; }
@keyframes paperShot { 0%,12% { opacity:0; transform:translateX(0) scale(.6); } 18% { opacity:1; } 75% { opacity:1; transform:translateX(150%) scale(1); } 85%,100% { opacity:0; transform:translateX(170%) scale(.2); } }
@keyframes paperHit { 0%,70%,100% { opacity:0; transform:scale(.4) rotate(-10deg); } 75%,90% { opacity:1; transform:scale(1.1) rotate(8deg); } }
@keyframes ghostHit { 0%,72%,100% { transform:rotate(8deg) scale(1); } 80%,95% { transform:rotate(25deg) scale(.8); } }
@keyframes paperJump { 0%,100% { transform:translateY(0); } 40%,60% { transform:translateY(-20%); } }
@keyframes paperSwim { 0%,100% { transform:translateX(-5%) rotate(-3deg); } 50% { transform:translateX(5%) rotate(3deg); } }
@keyframes subPop { 0%,100% { transform:scale(.8) rotate(-7deg); } 50% { transform:scale(1) rotate(6deg); } }
@keyframes paperDash { 0%,100% { transform:translateX(0) rotate(0); } 40%,65% { transform:translateX(25%) rotate(12deg); } }
@keyframes paperEntrance { from { opacity:0; transform:translateY(10px) rotate(-2deg); } to { opacity:1; transform:none; } }
/* HUDも、祭りの紙札に合わせる。 */
.hSaved, .hFire { background: #fff5dcf2; color: #183b53; border: 2px solid #fff; border-radius: 4px 4px 13px 4px; box-shadow: 2px 3px 0 #183b5377; }.hSaved b { color: #12768f; }.hFire b { color: #cb422d; }.hTime { background: #183b53ed; border: 2px solid #fff5dc; padding: 3px 15px; font-size: 28px; border-radius: 3px; transform: rotate(-2deg); }.subHud { background: #fff5dced; color: #183b53; border: 2px solid #fff; border-radius: 4px 4px 12px 4px; }.subHud i { color: #126376; }.bPause { background: #fff5dc; color: #183b53; border: 2px solid #183b53; border-radius: 6px; }.bubble { background: #fff5dcf5; color: #183b53; border: 3px solid #fff; border-radius: 4px 15px 15px 15px; box-shadow: 3px 4px 0 #183b5377; }.bubble b { color: #cb422d; }
@media (max-width: 850px) and (min-height: 501px) { #titleScreen { padding: 38px 22px 16px; }#titleScreen .tWrap { grid-template-rows: 18% minmax(0,1fr) 73px; gap: 14px; }.festivalCopy small { display: none; }.festivalCopy p { font-size: 24px; }.festivalTag { font-size: 9px; padding: 3px 7px; }#titleScreen .tHead { gap: 20px; }#titleScreen .logoImg { width: 48%; }#titleScreen .chars { gap: 14px; }.chPortrait img { object-fit: cover; object-position: top; }#titleScreen .chCard .chName { font-size: 25px; padding: 12px 8px 4px; }#titleScreen .chCard .chName small { font-size: 9px; padding: 3px 5px; }#titleScreen .chCard .chCatch { padding: 4px 8px; font-size: 10px; }#titleScreen .tAct { grid-template-columns: auto 1fr; gap: 12px; }.festivalFootnote { display: none; }#titleScreen .icons { gap: 6px; }#titleScreen .ibtn { padding: 5px 7px; flex-direction: column; gap: 0; font-size: 9px; }#titleScreen .btn.big { min-width: 210px; font-size: 21px; padding: 12px 16px; }#titleScreen[data-expanded="true"] .chars { width: 17%; flex-basis: 17%; grid-template-columns: 1fr; grid-template-rows: repeat(4,minmax(0,1fr)); gap: 12px; }#titleScreen[data-expanded="true"] .chName { font-size: 13px; padding: 2px; }.selectionContent { gap: 12px; }#titleScreen[data-expanded="true"] .selectionFocus { gap: 10px; grid-template-columns: .9fr 1fr; }.demoPanel { padding: 8px; }.selectedTitle h3 { font-size: 36px; }.fullSticker { width: 50px; height: 50px; font-size: 8px; padding-top: 6px; right: 0; }.fullSticker b { font-size: 18px; }.abilityNote small { font-size: 9px; } }
@media (max-width: 560px) and (min-height: 501px) { #titleScreen { padding: 38px 16px max(15px,env(safe-area-inset-bottom)); }#titleScreen .tWrap { grid-template-rows: 15% minmax(0,1fr) 100px; gap: 10px; }#titleScreen .tHead { gap: 12px; }.festivalCopy p { font-size: 17px; }.festivalTag { font-size: 7px; letter-spacing: .03em; }#titleScreen .logoImg { width: 52%; }.pick h2 { font-size: 15px; }#titleScreen .pick { gap: 8px; }#titleScreen .pick .pickHint { font-size: 9px; }#titleScreen .tPick { grid-template-rows: 28px minmax(0,1fr); gap: 10px; }#titleScreen .chars { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 15px 20px; padding: 8px 5px 12px; }#titleScreen .chCard { padding-bottom: 5px; box-shadow: 3px 5px 0 #183b53; }.chPortrait img { object-fit: contain; transform: scale(1.08); }#titleScreen .chCard .chName { padding: 5px 9px 2px; font-size: 26px; }#titleScreen .chCard .chCatch { font-size: 9px; padding: 2px 10px; }#titleScreen .chCard .chArrow { width: 27px; height: 27px; font-size: 18px; right: -7px; bottom: -8px; }#titleScreen .tAct { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; gap: 9px; }#titleScreen .btn.big { width: 100%; min-width: 0; padding: 10px 19px; font-size: 22px; box-shadow: 3px 4px 0 #183b53; }#titleScreen .icons { justify-content: center; width: 100%; gap: 10px; }#titleScreen .ibtn { flex-direction: row; min-height: 34px; padding: 3px 8px; font-size: 9px; }#titleScreen .ibtn i { font-size: 17px; height: 20px; }.rosterBack { font-size: 9px; padding: 7px 8px; }.decorLantern { width: 70px; height: 90px; top: 32px; }#titleScreen[data-expanded="true"] .selectionContent { flex-direction: column; gap: 10px; }#titleScreen[data-expanded="true"] .chars { flex: 0 0 20%; width: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: 1fr; padding: 0 3px 4px; gap: 11px; }#titleScreen[data-expanded="true"] .chCard { padding-bottom: 1px; }#titleScreen[data-expanded="true"] .chName { padding: 2px; font-size: 12px; }#titleScreen[data-expanded="true"] .selectionFocus { grid-template-columns: .85fr 1.15fr; gap: 10px; }.selectedTitle small { font-size: 9px; }.selectedTitle h3 { font-size: 28px; }.selectedTitle p { font-size: 9px; margin: 3px 0; }.fullSticker { width: 42px; height: 42px; font-size: 7px; bottom: 3%; right: -7px; padding-top: 5px; }.fullSticker b { font-size: 15px; }.demoPanel { grid-template-rows: 24px minmax(50px,1fr) auto 2px 28px auto; gap: 4px; padding: 6px; border-width: 1px; }.demoHeading span { font-size: 8px; letter-spacing: 0; }.demoHeading button { font-size: 8px; padding: 4px; }.demoCaption { gap: 4px; }.demoCaption b { font-size: 13px; }.demoCaption kbd { font-size: 8px; padding: 3px 4px; }.demoCaption small { font-size: 8px; line-height: 1.3; }.demoSteps button { font-size: 8px; }.abilityNote p { margin: 3px 0; font-size: 9px; }.abilityNote p span { font-size: 7px; }.abilityNote b { font-size: 9px; }.abilityNote small { font-size: 8px; }.abilityNote .trait, #selectedHint { display: none; }.demoPaperTag { font-size: 7px; top: 5px; }.demoGhost { width: 25%; }.demoSun { width: 19px; height: 19px; } }
@media (orientation: landscape) and (max-height: 500px) { #titleScreen { padding: max(25px,env(safe-area-inset-top)) max(25px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(25px,env(safe-area-inset-left)); }#titleScreen .tWrap { width: min(1100px,100%); grid-template: 58px minmax(0,1fr) 50px / 1fr; gap: 5px; }#titleScreen .tHead { gap: 35px; }.festivalCopy p { font-size: 17px; margin: 3px 0; }.festivalCopy strong { display: inline; margin-left: 5px; }.festivalCopy small { display: none; }.festivalTag { font-size: 8px; padding: 2px 8px; }#titleScreen .logoImg { width: 260px; }#titleScreen .logoImg img { max-height: 62px; }#titleScreen .tPick { grid-template-rows: 22px minmax(0,1fr); gap: 5px; }.pick h2 { font-size: 14px; }#titleScreen .pick .pickNumber { height: 23px; width: 23px; font-size: 10px; }#titleScreen .pick .pickHint { font-size: 9px; }.rosterBack { font-size: 9px; padding: 4px 9px; }#titleScreen .chars { gap: 15px; padding: 5px 10px; }#titleScreen .chCard { padding-bottom: 4px; box-shadow: 3px 4px 0 #183b53; }#titleScreen .chCard .chName { font-size: 22px; padding: 4px 10px 2px; }#titleScreen .chCard small { font-size: 9px; padding: 2px 5px; }#titleScreen .chCard .chCatch { display: none; }#titleScreen .chCard .chArrow { width: 26px; height: 26px; font-size: 18px; bottom: -6px; right: -6px; }#titleScreen .tAct { display: flex; justify-content: space-between; flex-wrap: nowrap; flex-direction: row; gap: 15px; }.festivalFootnote { display: block; }.festivalFootnote b { font-size: 14px; }.festivalFootnote span { font-size: 9px; }#titleScreen .btn.big { min-width: 220px; font-size: 20px; padding: 7px 15px; }#titleScreen .btn.big i { font-size: 22px; }#titleScreen .icons { gap: 6px; }#titleScreen .ibtn { min-height: 36px; padding: 5px 7px; font-size: 9px; width: auto; }#titleScreen .ibtn i { width: 16px; height: 18px; font-size: 16px; }#titleScreen[data-expanded="true"] .chars { width: 20%; flex-basis: 20%; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 10px; padding: 4px; }#titleScreen[data-expanded="true"] .chName { font-size: 11px; padding: 2px; }.selectionContent { gap: 12px; }#titleScreen[data-expanded="true"] .selectionFocus { grid-template-columns: .8fr 1.4fr; gap: 10px; }.selectedTitle small { display: none; }.selectedTitle h3 { font-size: 26px; }.selectedTitle p { font-size: 8px; margin-top: 1px; }.fullSticker { width: 45px; height: 45px; font-size: 7px; right: 0; padding-top: 5px; }.fullSticker b { font-size: 17px; }.demoPanel { display: grid; grid-template: 20px minmax(0,1fr) 28px / 1.1fr 1fr; gap: 5px 9px; padding: 6px 9px; border-width: 1px; }.demoHeading { grid-column: 1/-1; }.demoHeading span { font-size: 9px; }.demoHeading button { font-size: 8px; padding: 3px 6px; }.demoStage { grid-column: 1; grid-row: 2; border-bottom-width: 5px; }.demoCaption { grid-column: 2; grid-row: 2; align-content: start; gap: 5px; padding-top: 8px; }.demoCaption b { font-size: 14px; }.demoCaption kbd { font-size: 8px; }.demoCaption small { font-size: 9px; }.demoSteps { grid-column: 1/-1; grid-row: 3; }.demoSteps button { font-size: 9px; }.demoProgress, .abilityNote { display: none; }.demoPaperTag { font-size: 7px; }.decorLantern { width: 60px; height: 90px; top: 10px; }.decorFirework { width: 200px; } }
@media (prefers-reduced-motion: reduce) { #titleScreen *, #titleScreen *::before, #titleScreen *::after { animation: none !important; transition: none !important; } }

/* 小さな見た目のラベルでも、押せる範囲は確保する。 */
@media (pointer: coarse), (max-width: 560px) {
 #titleScreen .ibtn { min-height:44px; }
 .demoSteps { min-height:44px; position:relative; z-index:2; }
 .demoSteps button { min-height:44px; }
 .demoPanel { grid-template-rows:24px minmax(45px,1fr) auto 2px 44px auto; }
 .rosterBack { min-height:36px; }
 .demoHeading button { position:relative; }
 .demoHeading button::before { content:""; position:absolute; inset:-9px -4px; }
}
@media (orientation:landscape) and (max-height:500px) {
 #titleScreen .ibtn { min-height:40px; }
 .demoSteps, .demoSteps button { min-height:36px; }
 .demoPanel { grid-template:20px minmax(0,1fr) 36px / 1.1fr 1fr; }
}

.hStallN { display:block; font-style:normal; font-size:10px; font-weight:800; margin-top:1px; color:#46606d; }
/* いつもの出動と、部屋番号で入る対戦の入口。 */
.battleLink{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff8e7;background:#d6514b;border:1px solid #183b53;border-radius:5px;padding:4px 9px;margin:0;min-height:44px;flex-shrink:0;font-size:10px;font-weight:900;text-decoration:none;box-shadow:2px 3px 0 #183b5329}
.battleLink small{display:block;font-size:8px;margin-top:2px}
.battleLink:focus-visible{outline:4px solid #2185a0}
@media(max-width:560px) and (min-height:501px){.battleLink{min-height:34px;padding:3px 7px;font-size:9px}}
@media(orientation:landscape) and (max-height:500px){.battleLink{min-height:36px;padding:3px 7px;font-size:9px}}
