/* Dear Blue の作品紹介。水面から深いところへ潜っていく1枚の海。文字は白、卓の上は実物のカード。 */
body:has([data-db-feature]) .gd-hero,
body:has([data-db-feature]) .gd-intro { display: none; }
body:has([data-db-feature]) { padding-bottom: 0; }


.dbs {
  --ink: #06173f;
  --foam: #e9f7ff;
  --sun: #ffd95a;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #fff;
  font-family: 'Rounded Mplus', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  font-weight: 700;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.dbs *, .dbs *::before, .dbs *::after { box-sizing: border-box; }
.dbs img { display: block; max-width: 100%; }
.detail .dbs h2 { margin: 0; padding: 0; font-family: inherit; letter-spacing: .02em; }
.detail .dbs h2::before { content: none; }
.detail .dbs .dbs-head { letter-spacing: .02em; }
.dbs p, .dbs ol, .dbs ul, .dbs h1, .dbs h2, .dbs h3 { margin: 0; padding: 0; list-style: none; }
/* 海。水面から深いところへ */
.dbs-water { position: relative; background: linear-gradient(180deg, #49b4ec 0, #1f7fd0 7%, #0f4fa6 20%, #0a3180 50%, #071f58 80%, #06173f 100%); }
.dbs-water > * { position: relative; z-index: 1; }
/* 泡。全体にうっすら */
.dbs-water::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.35) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(255,255,255,.28) 0 3px, transparent 4px);
  background-size: 190px 260px, 310px 420px, 250px 340px;
  background-position: 30px 60px, 140px 200px, 220px 20px;
}

/* ---------- 入口 ---------- */
.dbs-hero { position: relative; min-height: min(100svh, 880px); display: flex; flex-direction: column; padding: 76px 20px 34px; }
.dbs-crumb { position: relative; z-index: 2; font-size: 12px; font-weight: 500; opacity: .85; }
.dbs-crumb a { color: inherit; }
.dbs-hero-in { position: relative; z-index: 2; margin: auto; width: 100%; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dbs-hero h1 { width: min(86%, 400px); filter: drop-shadow(0 6px 18px rgba(4, 30, 90, .55)); }
.dbs-hero h1 img { width: 100%; height: auto; }
.dbs-catch { margin-top: 18px !important; font-size: clamp(23px, 6.6vw, 32px); line-height: 1.5; font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(6, 23, 63, .35); }
.dbs-sub { margin-top: 12px !important; font-size: clamp(15px, 4.2vw, 18px); line-height: 1.7; font-weight: 700; color: rgba(255,255,255,.92); text-shadow: 0 1px 0 rgba(6, 23, 63, .35); }
.dbs-meta { margin: 16px 0 0 !important; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dbs-meta li { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.12)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5), 0 4px 10px rgba(2, 20, 70, .25); backdrop-filter: blur(6px); }
.dbs-meta li:first-child { color: #3b2a00; background: linear-gradient(180deg, #ffe58a, var(--sun)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 4px 10px rgba(120, 80, 0, .35); }
.dbs-meta-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dbs-meta li:first-child .dbs-meta-ico { background: rgba(255,255,255,.55); }
.dbs-meta-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dbs-hero-cards { position: relative; width: min(78%, 330px); aspect-ratio: 100 / 62; margin-top: 30px; }
.dbs-hero-cards img { position: absolute; width: 36%; top: 6%; border-radius: 7% / 5%; box-shadow: 0 12px 26px rgba(3, 16, 52, .5); animation: dbsBob 4.6s ease-in-out infinite; }
.dbs-hero-cards img:nth-child(1) { left: 4%; --r: -11deg; animation-delay: -.8s; }
.dbs-hero-cards img:nth-child(2) { left: 32%; top: 0; --r: 0deg; z-index: 2; }
.dbs-hero-cards img:nth-child(3) { left: 60%; --r: 11deg; animation-delay: -2.1s; }
@keyframes dbsBob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-7px) rotate(var(--r)); } }
.dbs-next { margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 800; }
.dbs-next span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0f4fa6; font-size: 20px; animation: dbsNudge 1.5s ease-in-out infinite; }
@keyframes dbsNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
/* 泳ぐおさかな */
.dbs-sea { position: absolute; inset: 0; pointer-events: none; }
.dbs-swim { position: absolute; width: 22%; max-width: 150px; opacity: .95; filter: drop-shadow(0 8px 14px rgba(3, 16, 52, .35)); animation: dbsSwim 7s ease-in-out infinite; }
.dbs-swim-0 { left: -4%; top: 9%; width: 30%; animation-duration: 9s; }
.dbs-swim-1 { right: -3%; top: 14%; animation-delay: -2s; }
.dbs-swim-2 { left: 2%; bottom: 16%; width: 18%; animation-delay: -4s; }
.dbs-swim-3 { right: 1%; bottom: 22%; width: 19%; animation-delay: -1s; animation-duration: 8s; }
.dbs-swim-4 { left: 44%; bottom: -3%; width: 15%; opacity: .7; animation-delay: -3s; }
@keyframes dbsSwim { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(10px, -14px) rotate(3deg); } }

/* ---------- 場面 ---------- */
.dbs-scene { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px 30px; }
/* 見出し：泡に入った番号＋ひとこと */
.dbs-head { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.35; font-weight: 900; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(6, 23, 63, .4); }
.dbs-num { position: relative; flex: none; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; font-size: .8em; letter-spacing: 0; color: var(--ink); background: radial-gradient(circle at 34% 28%, #fff 0 16%, #d8f2ff 40%, #9fdcff 100%); box-shadow: inset 0 -3px 6px rgba(15, 79, 166, .35), 0 0 0 3px rgba(255,255,255,.35), 0 6px 14px rgba(3, 16, 52, .35); }
/* 急ぐ人向けの固定の説明。目立たせない */
.dbs .dbs-note-text { max-width: 400px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 500; line-height: 1.75; color: rgba(255,255,255,.82); text-align: left; }
/* 泡のボタン（アプリの中のボタンと同じ見た目） */
.dbs-ctrl { display: flex; gap: 12px; margin-top: 16px; }
.dbs-bub { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 136px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(3, 16, 52, .8); cursor: pointer; background: radial-gradient(120% 90% at 50% 110%, rgba(190, 150, 255, .28), transparent 60%), radial-gradient(90% 80% at 20% 0, rgba(140, 245, 255, .3), transparent 62%), rgba(255,255,255,.07); box-shadow: 0 8px 18px rgba(3, 16, 52, .28); transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
/* 縁の虹色 */
.dbs-bub::before { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: conic-gradient(from 210deg, #b8f6ff, #ffffff, #ffc9f3, #fff3b0, #b9ffd9, #b8f6ff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
/* 上の白いつや */
.dbs-bub::after { content: ''; position: absolute; left: 16px; top: 7px; width: 30px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.9); transform: rotate(-9deg); pointer-events: none; }
.dbs-bub:active { transform: scale(.94); }
.dbs-bub[hidden] { display: none; }
.dbs-bub-go { background: radial-gradient(120% 90% at 50% 110%, rgba(255, 217, 90, .45), transparent 62%), radial-gradient(90% 80% at 20% 0, rgba(140, 245, 255, .3), transparent 62%), rgba(255,255,255,.1); }
.dbs-bub span { font-size: 1.05em; }
/* もぐるときの泡 */
.dbs-dive { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.dbs-dive i { position: absolute; bottom: -80px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 10%, rgba(255,255,255,.25) 30%, rgba(160, 225, 255, .22) 70%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); animation: dbsRise 1.1s cubic-bezier(.3, .1, .4, 1) both; }
@keyframes dbsRise { from { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-125vh) scale(1.15); opacity: .7; } }

/* 動きが無い環境では、字幕を上から順に読める一覧として出す */
.dbs-caps { margin-top: 18px !important; display: grid; gap: 12px; text-align: center; font-size: 19px; line-height: 1.6; }
.dbs-caps .big { font-size: 26px; color: var(--sun); }
.dbs-scene:not(.is-live) .dbs-caps { display: none; }
.dbs-scene.is-live .dbs-caps { display: none; }
.dbs-table { display: none; }
.dbs-scene.is-live .dbs-table { display: block; }

/* 字幕：いつも2行ぶんの高さを取っておく（出るたびに卓がずれない） */
.dbs-say { font-size: clamp(19px, 5.9vw, 25px); line-height: 1.55; font-weight: 800; text-align: center; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(6, 23, 63, .4); }
.dbs-line { margin-top: 10px; display: grid; align-items: start; justify-items: center; white-space: normal; }
.dbs-line > p { grid-area: 1 / 1; margin: 0; }
.dbs-line > .dbs-ghost { visibility: hidden; pointer-events: none; }
.dbs-line span { opacity: 0; animation: dbsChar 90ms linear both; }
@keyframes dbsChar { to { opacity: 1; } }

/* 卓 */
.dbs-table { position: relative; width: min(100%, 400px, calc((100svh - 400px) / 1.14), 400px); min-width: min(100%, 300px); margin-top: 10px; }
.dbs-table.is-shake { animation: dbsShake .5s; }
@keyframes dbsShake { 0%, 100% { transform: translate(0); } 15% { transform: translate(-7px, 3px); } 30% { transform: translate(6px, -4px); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); } }
.dbs-tank { position: absolute; }
.dbs-tank img { width: 100%; border-radius: 5% / 7%; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 16px 30px rgba(3, 16, 52, .45); }
.dbs-count { position: absolute; right: 3%; top: 5%; min-width: 2.6em; padding: 2px 10px; border-radius: 99px; background: #fff; color: var(--ink); font-size: clamp(14px, 4.4vw, 18px); font-weight: 800; text-align: center; }
.dbs-count:empty { display: none; }
.dbs-count.is-three { background: var(--sun); }
.dbs-count.is-pop, .dbs-handcount.is-pop { animation: dbsPop .45s; }
@keyframes dbsPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.dbs-card { position: absolute; aspect-ratio: 480 / 686; border-radius: 7% / 5%; transform-origin: 50% 50%; box-shadow: 0 6px 14px rgba(3, 16, 52, .45); transition: left .6s cubic-bezier(.3, 1.15, .45, 1), top .6s cubic-bezier(.3, 1.15, .45, 1), transform .45s ease, opacity .25s ease; background: url('/assets/dear-blue-tutorial/cards/back.webp') center / cover; }
.dbs-card img { width: 100%; height: 100%; border-radius: inherit; }
.dbs-card.is-back img { visibility: hidden; }
.dbs-card.is-hidden { opacity: 0; transform: scale(.4); transition: none; }
.dbs-card.is-lift { transform: translateY(-16%) scale(1.1); box-shadow: 0 0 0 3px var(--sun), 0 0 22px 6px rgba(255, 217, 90, .8), 0 14px 22px rgba(3, 16, 52, .5); animation: dbsBeat .7s ease-in-out infinite; }
.dbs-card.is-glow, .dbs-deck.is-glow img { animation: dbsBeat .7s ease-in-out infinite; }
@keyframes dbsBeat { 0%, 100% { box-shadow: 0 0 0 3px var(--sun), 0 0 8px 2px rgba(255, 217, 90, .5), 0 6px 14px rgba(3, 16, 52, .45); } 50% { box-shadow: 0 0 0 4px #fff, 0 0 26px 9px rgba(255, 217, 90, .95), 0 6px 14px rgba(3, 16, 52, .45); } }
.dbs-card.is-taken { transform: scale(.28); opacity: 0; transition-delay: 0s, 0s, 0s, .3s; }
.dbs-card.is-still { transition: none; }
.dbs-card.is-drawn { transform: translate(-18%, -20%) rotate(-9deg) scale(1.12); box-shadow: 0 16px 24px rgba(3, 16, 52, .55); }
.dbs-card.is-flip { animation: dbsFlip .62s ease both; }
@keyframes dbsFlip { 0% { transform: rotate(-9deg) scale(1.12); } 38% { transform: rotate(-4deg) scaleX(.04) scale(1.12); } 100% { transform: none; } }
.dbs-card.is-swept { transition: left .95s cubic-bezier(.45, 0, .2, 1), top .95s cubic-bezier(.2, .9, .3, 1), transform .95s ease-in, opacity .2s ease .85s; transform: rotate(var(--spin)) scale(.7); }
.dbs-card.is-swept.is-taken { transform: rotate(var(--spin)) scale(.3); opacity: 0; }
.dbs-deck.is-pop img { animation: dbsPop .35s; }
.dbs-plus { position: absolute; left: 50%; bottom: -8%; translate: -50% 0; padding: 0 9px; border-radius: 99px; background: var(--sun); color: var(--ink); font-style: normal; font-size: clamp(14px, 4.4vw, 18px); font-weight: 800; white-space: nowrap; opacity: 0; transform: scale(.3); transition: opacity .2s, transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.dbs-card.is-plus .dbs-plus { opacity: 1; transform: scale(1); }
.dbs-card.is-taken .dbs-plus { opacity: 0; }

/* あなた／あいて */
.dbs-chip { position: absolute; width: 25%; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: clamp(11px, 3.4vw, 13px); line-height: 1.25; text-align: center; }
.dbs-chip img { width: 62%; aspect-ratio: 1; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.92); border: 2.5px solid #fff; padding: 6%; }
.dbs-chip i { display: block; font-style: normal; }
.dbs-chip b { font-size: 1.7em; }
.dbs-chip-me { left: 0; top: 73%; }
.dbs-chip-opp { right: 2%; top: -3%; flex-direction: row; width: auto; gap: 6px; text-align: left; }
.dbs-chip-opp img { width: clamp(38px, 11vw, 46px); padding: 3px; }
.dbs-chip.is-bump { animation: dbsPop .5s; }
.dbs-handlabel { position: absolute; left: 30%; width: 67%; top: 64.5%; text-align: center; font-size: clamp(11px, 3.4vw, 13px); opacity: .9; }
.dbs-handcount { position: absolute; left: 50%; top: 58.5%; translate: -50% 0; padding: 2px 14px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.6); font-size: clamp(13px, 4vw, 16px); white-space: nowrap; }
.dbs-handcount b { font-size: 1.25em; }
.dbs-handcount.is-alarm { background: #ff5d5d; border-color: #fff; animation: dbsPop .5s 3; }
.dbs-deck span { display: block; margin-top: 5px; text-align: center; font-size: clamp(11px, 3.4vw, 13px); }
.dbs-deck { position: absolute; }
.dbs-deck img { width: 100%; border-radius: 7% / 5%; box-shadow: 3px 3px 0 #cfe6ff, 6px 6px 0 #9cc6f2, 0 12px 20px rgba(3, 16, 52, .45); }

.dbs-sum { position: absolute; left: 0; right: 0; top: 27%; text-align: center; font-size: clamp(22px, 7vw, 30px); font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(6, 23, 63, .8); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.7, .5, 1); pointer-events: none; }
.dbs-sum.is-on { opacity: 1; transform: scale(1); }
.dbs-note { position: absolute; left: 0; right: 0; top: 99%; text-align: center; font-size: clamp(12px, 3.6vw, 14px); opacity: 0; transition: opacity .4s; }
.dbs-note.is-on { opacity: .95; }
/* 山場のひとこと。卓の真ん中に大きく */
.dbs-big { position: absolute; z-index: 90; left: -4%; right: -4%; top: 30%; text-align: center; font-size: clamp(38px, 12.5vw, 54px); line-height: 1.2; font-weight: 900; color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(6, 23, 63, .55); opacity: 0; pointer-events: none; }
.dbs-big.is-on { animation: dbsBigIn .6s both; }
@keyframes dbsBigIn { 0% { opacity: 0; transform: scale(2.2) rotate(-9deg); } 50% { opacity: 1; transform: scale(.94) rotate(-5deg); } 75% { transform: scale(1.04) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(-5deg); } }
@keyframes dbsBig { 0% { opacity: 0; transform: scale(2.2) rotate(-9deg); } 12% { opacity: 1; transform: scale(.94) rotate(-5deg); } 18% { transform: scale(1.04) rotate(-5deg); } 24%, 88% { opacity: 1; transform: scale(1) rotate(-5deg); } 100% { opacity: 0; transform: scale(1) rotate(-5deg); } }
[data-dbs-scene="school"] .dbs-big { color: var(--sun); }

.dbs-fx { position: absolute; inset: 0; pointer-events: none; z-index: 80; }
/* 大きな波：3枚の水の層と白い波がしら。卓の外（画面の端）まで広げる */
.dbs-fx:has(.dbs-wave) { left: -50vw; right: -50vw; overflow: hidden; bottom: -30%; }
.dbs-wave { position: absolute; left: 0; bottom: 0; width: 220%; height: 68%; animation: dbsWave 2.4s cubic-bezier(.3, 0, .3, 1) both; }
.dbs-wave path { transform-box: fill-box; }
.dbs-wave .w3 { fill: #1b63c4; }
.dbs-wave .w2 { fill: #2f93e6; animation: dbsSway 1.1s ease-in-out infinite alternate; }
.dbs-wave .w1 { fill: #86d6ff; animation: dbsSway 1.4s ease-in-out infinite alternate-reverse; }
.dbs-wave .foam { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; opacity: .95; }
@keyframes dbsWave { 0% { transform: translate(-100%, 30%); opacity: 1; } 34% { transform: translate(-52%, 0); } 66% { transform: translate(-18%, 0); opacity: 1; } 100% { transform: translate(30%, 60%); opacity: 0; } }
@keyframes dbsSway { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes dbsFoam { to { stroke-dashoffset: -48; } }
.dbs-splash { position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(90, 190, 255, .35)); animation: dbsSplash 2.3s ease both; }
@keyframes dbsSplash { 0%, 100% { opacity: 0; } 35%, 65% { opacity: 1; } }
.dbs-drop { position: absolute; top: 62%; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 18%, rgba(255,255,255,.3) 40%, rgba(160, 225, 255, .3)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); opacity: 0; animation: dbsDrop 1.2s ease-out var(--t) both; }
@keyframes dbsDrop { 0% { opacity: 0; transform: translateY(40px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px) scale(1.1); } }
.dbs-rays { position: absolute; left: 50%; top: 36%; width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 217, 90, .5) 0 9deg, transparent 9deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); z-index: -1; animation: dbsRays 3.4s linear both; }
@keyframes dbsRays { 0% { opacity: 0; rotate: 0deg; scale: .4; } 12% { opacity: 1; scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; rotate: 50deg; } }
.dbs-star { position: absolute; left: 50%; top: 36%; width: 4.5%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: dbsStar 1.3s ease-out var(--t) both; }
@keyframes dbsStar { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -9)) scale(1.3); } }
.dbs-fx:has(.dbs-rays) { z-index: 0; }

/* ---------- アプリの映像 ---------- */
.dbs-film, .dbs-play, .dbs-block { display: flex; flex-direction: column; align-items: center; padding: 56px 20px; text-align: center; }
.dbs-phone { margin-top: 26px; width: min(62vw, 270px); aspect-ratio: 780 / 1688; border-radius: 30px; overflow: hidden; border: 5px solid #fff; background: #06173f; box-shadow: 0 22px 44px rgba(2, 10, 36, .6); }
.dbs-phone video, .dbs-phone img { width: 100%; height: 100%; object-fit: cover; }
.dbs-film-cta { margin-top: 26px; }
.dbs-film-cta p { font-size: 16px; font-weight: 800; }
.dbs-film-cta .stores { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dbs-title { font-size: clamp(21px, 6.2vw, 27px); line-height: 1.5; font-weight: 800; text-shadow: 0 2px 0 rgba(6, 23, 63, .4); }
.dbs-block p { font-size: 15px; font-weight: 500; line-height: 1.8; color: rgba(255,255,255,.88); }
/* 知りたいこと：絵＋問い＋答え */
.dbs-know-list { width: 100%; max-width: 440px; margin-top: 22px !important; display: grid; gap: 12px; text-align: left; }
.dbs-know-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.dbs-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 14%, #d8f2ff 40%, #9fdcff 100%); box-shadow: inset 0 -3px 6px rgba(15, 79, 166, .3); }
.dbs-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dbs-know-list h3 { font-size: 13px; font-weight: 700; line-height: 1.5; color: rgba(255,255,255,.78); }
.dbs-know-list p { margin-top: 2px !important; font-size: 15px; font-weight: 700; line-height: 1.6; color: #fff; }
/* 感想 */
.dbs-posts { width: 100%; max-width: 980px; margin-top: 20px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dbs-post { min-height: 120px; border-radius: 16px; background: #fff; padding: 4px 10px; }
.dbs-post a { color: #0f4fa6; }
/* アナログ版・つくった人 */
.dbs-analog { flex-direction: row; justify-content: center; gap: 18px; text-align: left; }
.dbs-analog img { width: 108px; height: auto; flex: none; filter: drop-shadow(0 12px 18px rgba(2, 10, 36, .55)); transform: rotate(-4deg); }
.dbs-analog .dbs-title { font-size: clamp(18px, 5.2vw, 22px); }
.dbs-analog p { margin-top: 4px !important; font-size: 13px; }
.dbs-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 14px rgba(2, 10, 36, .35); }
.dbs-link svg { width: 16px; height: 16px; }
.dbs-author { padding-top: 24px; }
.dbs-by { font-size: 13px !important; letter-spacing: .14em; }
.dbs-author .dbs-title + p { font-size: 13px; }
/* しめ：ダウンロード */
.dbs-play { padding-bottom: 84px; }
.dbs-box { width: min(52vw, 220px); height: auto; filter: drop-shadow(0 18px 26px rgba(2, 10, 36, .6)); animation: dbsBob 5s ease-in-out infinite; --r: -3deg; }
.dbs-play .dbs-say { margin-top: 22px; }
.dbs-play-sub { margin-top: 8px !important; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.dbs-play .stores { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* ほかの作品：トップと同じ棚 */
.dbs-shelf { padding: 56px 16px 72px; background: #ededf0; color: #1e1b18; text-align: center; }
.dbs-shelf h2 { font-size: clamp(21px, 6.2vw, 27px); font-weight: 900; }
.dbs-shelf .game-wall { max-width: 1080px; margin: 28px auto 0; }
.dbs-shelf .g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
.dbs-shelf .g-item { display: flex; flex-direction: column; }
.dbs-shelf .g-open { display: flex; flex-direction: column; color: inherit; text-decoration: none; text-align: left; -webkit-tap-highlight-color: transparent; }
.dbs-shelf .g-box { display: flex; align-items: flex-end; justify-content: center; height: 128px; padding: 0 9%; }
.dbs-shelf .g-box img { max-height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 8px 8px #2b201638); transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.dbs-shelf .g-open:hover .g-box img, .dbs-shelf .g-open:active .g-box img { transform: translateY(-10px) rotate(-3deg); }
.dbs-shelf .g-plank { display: block; height: 12px; margin-top: 6px; border-radius: 6px; background: #d6d6dd; }
.dbs-shelf .g-name { padding: 8px 8px 0; font-size: 12px; font-family: 'LP Black', 'Rounded Mplus', 'Hiragino Maru Gothic ProN', sans-serif; font-weight: 900; line-height: 1.5; }
.dbs-all { display: inline-flex; gap: 8px; margin-top: 32px; padding: 12px 24px; border-radius: 999px; background: #1e1b18; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; }

/* ---------- 広い画面：字幕を左、卓を右 ---------- */
@media (min-width: 900px) {
  .dbs-hero-in { max-width: 640px; }
  .dbs-swim { width: 13%; max-width: 210px; }
  .dbs-swim-0 { width: 17%; left: 6%; } .dbs-swim-1 { right: 8%; } .dbs-swim-2 { left: 12%; width: 10%; } .dbs-swim-3 { right: 12%; width: 11%; } .dbs-swim-4 { width: 8%; }
  .dbs-scene.is-live { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 460px); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 72px; justify-content: center; justify-items: start; }
  .dbs-scene.is-live .dbs-head { grid-column: 1; grid-row: 2; font-size: 36px; }
  .dbs-scene.is-live .dbs-line { grid-column: 1; grid-row: 3; text-align: left; font-size: 34px; margin-top: 18px; }
  .dbs-scene.is-live .dbs-note-text { grid-column: 1; grid-row: 4; font-size: 14px; }
  .dbs-scene.is-live .dbs-ctrl { grid-column: 1; grid-row: 5; }
  .dbs-scene.is-live .dbs-table { grid-column: 2; grid-row: 1 / 7; width: min(460px, calc((100svh - 120px) / 1.14)); align-self: center; justify-self: center; margin-top: 0; }
  .dbs-count, .dbs-plus { font-size: 20px; } .dbs-chip { font-size: 14px; } .dbs-handlabel, .dbs-deck span, .dbs-note { font-size: 14px; } .dbs-handcount { font-size: 17px; }
  .dbs-big { font-size: 62px; }
  .dbs-film { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 72px; text-align: left; }
  .dbs-film-cta { flex-basis: 100%; text-align: center; margin-top: 0; }
  .dbs-film .dbs-say, .dbs-play .dbs-say { font-size: 34px; }
  .dbs-film .dbs-phone { margin-top: 0; width: 280px; }
  .dbs-know-list { max-width: 900px; grid-template-columns: 1fr 1fr; }
  .dbs-shelf .g-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
  .dbs-shelf .g-box { height: 180px; padding: 0 10%; }
  .dbs-shelf .g-name { font-size: 14px; padding: 12px 10px 0; }
}

/* 進み具合の点。途中は点が1つずつ光り、最後まで見終わると「おわり」を出して次へを跳ねさせる */
.dbs-prog { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 30px; margin-top: 4px; }
.dbs-prog button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 4px; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.dbs-prog button:focus-visible { outline: 2px solid #fff; border-radius: 99px; }
.dbs-prog i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .3s, transform .3s, width .3s; }
.dbs-prog i.is-past { background: rgba(255,255,255,.8); }
.dbs-prog i.is-now { width: 22px; border-radius: 99px; background: var(--sun, #ffd84a); }
.dbs-prog em { display: none; font-style: normal; font-size: 13px; font-weight: 800; color: var(--sun, #ffd84a); margin-left: 4px; }
.dbs-prog.is-done i { background: var(--sun, #ffd84a); width: 9px; }
.dbs-prog.is-done em { display: inline; animation: dbsPop .5s; }
.dbs-bub-go.is-cue { animation: dbsCue 1.1s ease-in-out infinite; }
@keyframes dbsCue { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(5px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .dbs-bub-go.is-cue { animation: none; } }
@media (min-width: 900px) {
  .dbs-scene.is-live { column-gap: 96px; grid-template-columns: minmax(0, 420px) minmax(0, 460px); }
  .dbs-scene.is-live .dbs-line { font-size: 24px; line-height: 1.5; max-width: 420px; justify-items: start; }
  .dbs-scene.is-live { grid-template-rows: 1fr auto auto auto auto auto 1fr; }
  .dbs-scene.is-live .dbs-prog { grid-column: 1; grid-row: 4; justify-content: flex-start; margin: 10px 0 14px; }
  .dbs-scene.is-live .dbs-note-text { grid-row: 5; }
  .dbs-scene.is-live .dbs-ctrl { grid-row: 6; }
  .dbs-scene.is-live .dbs-table { grid-row: 1 / 8; }
  .dbs-scene.is-live .dbs-head { font-size: 30px; line-height: 1.35; }
  .dbs-scene.is-live .dbs-line { margin-top: 24px; }
}

/* 棚の箱にマウスを乗せると一言がひょいと出る（トップの棚（lp-top.css の .g-catch）と同じ値） */
.dbs-shelf .g-open { position: relative; }
.dbs-shelf .g-catch { position: absolute; z-index: 4; left: 50%; bottom: calc(100% - 18px); width: max-content; max-width: 220px; padding: 8px 14px; border-radius: 14px; background: #fff; color: #1e1b18; box-shadow: 0 8px 18px #2b201633; font-family: 'LP Black', 'Rounded Mplus', 'Hiragino Maru Gothic ProN', sans-serif; font-weight: 900; font-size: 14px; line-height: 1.5; text-align: left; pointer-events: none;
  opacity: 0; transform: translate(-50%, 18px) scale(.5); transform-origin: 50% 100%; transition: opacity .2s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.dbs-shelf .g-catch::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: #fff; }
.dbs-shelf .g-open:hover .g-catch, .dbs-shelf .g-open:focus-visible .g-catch { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) { .dbs-shelf .g-catch { display: none; } }

/* 作者：ガラスのカードにして、Xは黒い丸ボタン */
.dbs-author { padding-top: 24px; }
.dbs-author .dbs-author-card { width: 100%; max-width: 440px; padding: 24px 20px 26px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28), 0 14px 30px rgba(2, 10, 36, .35); display: flex; flex-direction: column; align-items: center; }
.dbs-author .dbs-by { margin: 0; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.18); font-weight: 800; }
.dbs-author .dbs-title { margin-top: 12px; }
.dbs-author .dbs-title + p { margin-top: 2px; }
.dbs-link.dbs-x { margin-top: 18px; padding: 12px 22px 12px 18px; background: #0f1419; color: #fff; font-size: 15px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28), 0 10px 20px rgba(2, 10, 36, .45); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.dbs-link.dbs-x svg { width: 18px; height: 18px; }
.dbs-link.dbs-x:hover, .dbs-link.dbs-x:active { transform: translateY(-3px) scale(1.04); }
.dbs-link { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.dbs-link:not(.dbs-x):hover { transform: translateY(-3px) scale(1.04); }

/* 感想・レビュー：投稿の囲いは作らず、投稿そのものを並べる */
.dbs-voices { padding-bottom: 40px; }
.dbs-voices .dbs-voices-lead { margin-top: 6px; }
.dbs-voices .community-grid { width: 100%; max-width: 980px; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 20px; justify-items: center; align-items: start; text-align: left; }
.dbs-voices .community-card { width: 100%; max-width: 420px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; display: flex; flex-direction: column; align-items: center; }
.dbs-voices .community-card:hover { transform: none; }
.dbs-voices .community-card::before { content: none; }
.dbs-voices .twitter-tweet { margin: 0 auto !important; }
.dbs-voices .review-game-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.dbs-voices .review-game-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.12)); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.dbs-voices .review-game-tag:hover { transform: translateY(-2px) scale(1.05); }

/* 投稿の下の「X ↗」の素のリンクと読み込み中の骨組みは出さない（埋め込みが読めない時は投稿の中のリンクが残る） */
.dbs-voices .review-fallback, .dbs-voices .review-loading { display: none; }
@media (min-width: 900px) { .dbs-meta li { font-size: 14px; padding: 7px 14px 7px 9px; gap: 6px; } .dbs-meta-ico { width: 22px; height: 22px; } .dbs-meta-ico svg { width: 14px; height: 14px; } .dbs-meta { gap: 8px; } }

/* ---------- タップで進む ---------- */
/* 場面のどこを押しても進む。押した所から輪が広がる */
.dbs-scene.is-live { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.dbs-scene.is-live a, .dbs-scene.is-live button { cursor: pointer; }
.dbs-ripple { position: absolute; z-index: 50; width: 20px; height: 20px; margin: -10px; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); animation: dbsRipple .6s ease-out forwards; }
@keyframes dbsRipple { to { transform: scale(7); opacity: 0; } }
/* 合図：卓の右下で、指が画面を押す。動きの途中は隠れ、進めるようになったら出る。最後の段では出ない */
.dbs-tap { position: absolute; z-index: 9500; right: -6px; bottom: -6px; width: 64px; height: 64px; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; pointer-events: none; }
.dbs-tap.is-ready { opacity: 1; transform: scale(1); }
.dbs-tap b { grid-area: 1 / 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #1e1b18; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.dbs-tap svg { width: 34px; height: 34px; margin-top: 3px; }
.dbs-tap.is-ready b { animation: dbsPress 1.3s ease-in-out infinite; }
@keyframes dbsPress { 0%, 55%, 100% { transform: translateY(0) scale(1); } 28% { transform: translateY(5px) scale(.9); } }
/* 指が押すたびに、輪が2つ広がる */
.dbs-tap i { grid-area: 1 / 1; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; opacity: 0; }
.dbs-tap.is-ready i { animation: dbsRing 1.3s ease-out infinite; animation-delay: .36s; }
.dbs-tap.is-ready i + i { animation-delay: .62s; }
@keyframes dbsRing { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
/* ことばは、まだ1回も押していない間だけ出す */
.dbs-tap em { display: none; position: absolute; right: 58px; bottom: 14px; padding: 9px 14px; border-radius: 99px 99px 4px 99px; font-style: normal; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; color: #1e1b18; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.dbs-fresh .dbs-tap em { display: block; }
.dbs-tap .t-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .dbs-tap .t-touch { display: none; } .dbs-tap .t-mouse { display: inline; } }
.dbs-tap:focus-visible b { outline: 3px solid var(--sun, #ffd84a); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dbs-tap.is-ready b, .dbs-tap.is-ready i { animation: none; } }
/* 最後の字幕まで見終わったら、合図は「次の場面へ」に変わる（押すと次の場面へ進む） */
.dbs-tap .t-end { display: none; }
.dbs-tap.is-end em { display: block; }
.dbs-tap.is-end .t-touch, .dbs-tap.is-end .t-mouse { display: none; }
.dbs-tap.is-end .t-end { display: inline; }
