/* MBTIスイカゲーム（2026-09-30・旧名 ぎゅうぎゅうズー）— 全画面のひとり用パズル。接頭辞 gz- */
html, body.gzb { margin: 0; height: 100%; overflow: hidden; background: #ffe9a8; overscroll-behavior: none; }
body.gzb { font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif; color: #5a3b1c; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gz, .gz * { box-sizing: border-box; }
.gz { position: fixed; inset: 0; display: flex; justify-content: center; align-items: stretch; background: radial-gradient(circle at 20% 10%, #fff6d8 0, transparent 40%), repeating-linear-gradient(45deg, #ffe9a8 0 18px, #ffe29a 18px 36px); }
.gz button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
.gz-boot { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.gz-boot b { font-size: 30px; font-weight: 900; color: #e0662a; text-shadow: 0 3px 0 #fff; }
.gz-boot span { font-size: 14px; color: #8a6a3a; line-height: 1.8; }

/* ---- 本体 ---- */
.gz-app { position: relative; width: 100%; max-width: 520px; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (min-width: 560px) { .gz-app { box-shadow: 0 0 0 4px #fff, 0 12px 40px rgba(120, 70, 20, .25); } }
/* 背景（きせかえ） */
.gz-app { background: linear-gradient(180deg, #bfe8ff 0%, #e4f6ff 46%, #c8ecb0 70%, #9fd889 100%); }
.gz-app[data-bg="sea"] { background: linear-gradient(180deg, #8fd6ff 0%, #d7f2ff 40%, #7cc9e8 62%, #3f9fd0 100%); }
.gz-app[data-bg="sunset"] { background: linear-gradient(180deg, #ffb37a 0%, #ffd49a 35%, #f59aa8 65%, #9a7ac8 100%); }
.gz-app[data-bg="starry"] { background: radial-gradient(1.5px 1.5px at 20% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 22%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 45% 8%, #fff7c2 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 10% 35%, #fff 50%, transparent 51%), linear-gradient(180deg, #1c2458 0%, #3a3f86 55%, #5a4f9a 100%); }
.gz-app[data-bg="sakura"] { background: radial-gradient(6px 4px at 15% 20%, #ffc4d8 50%, transparent 52%), radial-gradient(6px 4px at 80% 12%, #ffd0e0 50%, transparent 52%), radial-gradient(5px 3px at 60% 30%, #ffb8cf 50%, transparent 52%), radial-gradient(6px 4px at 35% 45%, #ffd6e4 50%, transparent 52%), linear-gradient(180deg, #ffe6ef 0%, #fff3f7 45%, #f7cfe0 100%); }
.gz-app[data-bg="starry"] .gz-top, .gz-app[data-bg="starry"] .gz-evo { color: #fff; }

/* 上の帯: 一時停止・点・次 */
.gz-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; min-height: 60px; }
.gz-ib { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 3px 0 #e2b866, 0 4px 10px rgba(120, 70, 20, .15); display: flex; align-items: center; justify-content: center; color: #b0621e; font-size: 18px; font-weight: 900; }
.gz-ib:active { transform: translateY(2px); box-shadow: 0 1px 0 #e2b866; }
.gz-ib svg { width: 20px; height: 20px; }
.gz-sc { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gz-sc b { font-size: 30px; font-weight: 900; color: #fff; -webkit-text-stroke: 6px #b0621e; paint-order: stroke fill; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.gz-sc small { margin-top: 3px; font-size: 11px; font-weight: 800; color: #8a5a22; background: rgba(255, 255, 255, .8); border-radius: 99px; padding: 2px 9px; }
.gz-sc.is-pop b { animation: gzPop .28s ease-out; }
@keyframes gzPop { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.gz-next { flex: none; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 0 #e2b866, 0 4px 10px rgba(120, 70, 20, .15); position: relative; display: flex; align-items: center; justify-content: center; }
.gz-next canvas { width: 44px; height: 44px; }
.gz-next i { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: 1px; background: #e0662a; color: #fff; border-radius: 99px; padding: 1px 7px; }

/* 盤面 */
.gz-stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
.gz-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 下の帯: 進化の順 */
.gz-evo { flex: none; display: flex; align-items: center; justify-content: center; gap: 1px; padding: 4px 6px 8px; min-height: 40px; }
.gz-evo img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.gz-evo img.is-no { filter: brightness(0) opacity(.25); }
.gz-evo span { font-size: 9px; color: #b88a4a; opacity: .8; }
.gz-evo.is-float { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; min-height: 0; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .72); box-shadow: 0 4px 12px rgba(120, 70, 20, .12); pointer-events: none; white-space: nowrap; }
.gz-evo.is-float img { width: 27px; height: 27px; }

/* 合体の知らせ（DOM で出す大きい文字） */
.gz-toast { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; text-align: center; white-space: nowrap; }
.gz-toast b { display: block; font-size: 34px; font-weight: 900; color: #fff; -webkit-text-stroke: 7px #e0662a; paint-order: stroke fill; animation: gzT 1.1s ease-out forwards; }
.gz-toast small { display: block; font-size: 14px; font-weight: 900; color: #fff; -webkit-text-stroke: 4px #b0621e; paint-order: stroke fill; animation: gzT 1.1s ease-out forwards; }
.gz-toast.is-crown b { font-size: 30px; -webkit-text-stroke-color: #c68a00; }
@keyframes gzT { 0% { transform: scale(.4); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }
.gz-newz { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 6px 14px 6px 6px; box-shadow: 0 6px 18px rgba(120, 70, 20, .25); font-size: 13px; font-weight: 900; color: #b0621e; white-space: nowrap; animation: gzNz 2.4s ease-out forwards; pointer-events: none; }
.gz-newz img { width: 36px; height: 36px; border-radius: 50%; }
.gz-newz em { font-style: normal; font-size: 10px; background: #ff5a7a; color: #fff; border-radius: 99px; padding: 1px 7px; margin-right: 2px; }
@keyframes gzNz { 0% { transform: translate(-50%, 30px); opacity: 0; } 12% { transform: translate(-50%, 0); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.gz-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #8a5a22; font-size: 15px; z-index: 4; pointer-events: none; }

/* ---- 画面（タイトル・一時停止・結果・図鑑など）: 上から重ねる1枚 ---- */
.gz-scr { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom)); animation: gzIn .22s ease-out; }
.gz-scr[hidden] { display: none; }
@keyframes gzIn { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.gz-scr.is-dim { background: rgba(60, 35, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gz-scr.is-paper { background: #fff8e6; }
.gz-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gz-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.gz-hd { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.gz-hd h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 900; color: #b0621e; text-align: center; }
.gz-hd .gz-ib { width: 40px; height: 40px; }
.gz-hd .gz-sp { width: 40px; flex: none; }

.gz-b { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 18px; font-size: 17px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #ff9a4a, #f0702a); box-shadow: 0 5px 0 #c4541a, 0 8px 16px rgba(196, 84, 26, .3); text-decoration: none; letter-spacing: .5px; }
.gz-b:active { transform: translateY(3px); box-shadow: 0 2px 0 #c4541a; }
.gz-b--sub { color: #b0621e; background: #fff; box-shadow: 0 5px 0 #e2b866, 0 8px 16px rgba(120, 70, 20, .12); }
.gz-b--sub:active { box-shadow: 0 2px 0 #e2b866; }
.gz-b--x { background: linear-gradient(180deg, #333, #111); box-shadow: 0 5px 0 #000; }
.gz-b--green { background: linear-gradient(180deg, #6ad07a, #3fae55); box-shadow: 0 5px 0 #2f8a41; }
.gz-b[disabled] { opacity: .5; filter: grayscale(.5); }
.gz-b small { font-size: 12px; font-weight: 800; opacity: .9; }
.gz-row { display: flex; gap: 8px; }
.gz-row > * { flex: 1; }

/* タイトル */
.gz-title { background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #c9ecff 0%, #fff4d6 52%, #ffe6a6 100%); }
.gz-app.is-title .gz-top, .gz-app.is-title .gz-evo { visibility: hidden; }
.gz-tt-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gz-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #b0621e; font-size: 12.5px; font-weight: 900; text-decoration: none; box-shadow: 0 2px 0 #e2b866; }
.gz-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 4px; border-radius: 99px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 900; color: #8a5a22; max-width: 60%; box-shadow: 0 2px 0 #e2b866; }
.gz-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff3cf; }
.gz-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-chip em { font-style: normal; color: #e0662a; white-space: nowrap; }
.gz-logo { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; }
.gz-logo h1 { margin: 0; line-height: .95; text-align: center; font-weight: 900; color: #fff; -webkit-text-stroke: 9px #e0662a; paint-order: stroke fill; text-shadow: 0 6px 0 #c4541a; transform: rotate(-3deg); }
.gz-logo h1 span { display: block; font-size: clamp(34px, 11vw, 50px); letter-spacing: 1px; }
.gz-logo h1 span + span { font-size: clamp(36px, 12vw, 56px); color: #ffe066; -webkit-text-stroke-color: #b0621e; letter-spacing: 1px; white-space: nowrap; }
.gz-logo img.gz-logo-art { max-width: 88%; max-height: 32vh; }
.gz-logo p { margin: 8px 0 0; font-size: 13px; font-weight: 900; color: #8a5a22; background: rgba(255, 255, 255, .85); border-radius: 99px; padding: 4px 14px; }
.gz-parade { display: flex; align-items: flex-end; justify-content: center; margin-top: 10px; min-height: 58px; }
.gz-parade img { border-radius: 50%; margin: 0 -4px; animation: gzHop 1.6s ease-in-out infinite; box-shadow: 0 3px 6px rgba(120, 70, 20, .2); }
@keyframes gzHop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } 50% { transform: translateY(0); } }
.gz-menu { flex: none; display: flex; flex-direction: column; gap: 10px; }
.gz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gz-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 #e2b866; color: #b0621e; font-size: 12px; font-weight: 900; }
.gz-tile:active { transform: translateY(2px); box-shadow: 0 2px 0 #e2b866; }
.gz-tile i { font-style: normal; font-size: 22px; line-height: 1; }
.gz-tile .gz-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ff4f6d; box-shadow: 0 0 0 2px #fff; }
.gz-qbar { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; color: #8a5a22; box-shadow: 0 3px 0 #e2b866; border: 0; width: 100%; text-align: left; }
.gz-qbar b { color: #e0662a; }
.gz-qbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 一時停止・設定 */
.gz-panel { margin: auto; width: 100%; max-width: 360px; background: #fff8e6; border-radius: 26px; padding: 18px 16px 16px; box-shadow: 0 0 0 5px #fff, 0 16px 40px rgba(60, 35, 10, .35); display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; }
.gz-panel h2 { margin: 0 0 4px; text-align: center; font-size: 22px; font-weight: 900; color: #b0621e; }
.gz-set { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: #8a5a22; min-height: 44px; }
.gz-set label { flex: none; width: 5.5em; }
.gz-set input[type=range] { flex: 1; min-width: 0; accent-color: #f0702a; height: 28px; }
.gz-sw { flex: none; margin-left: auto; width: 56px; height: 32px; border-radius: 99px; border: 0; background: #e8d6b0; position: relative; }
.gz-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: left .15s; }
.gz-sw.is-on { background: #f0702a; }
.gz-sw.is-on::after { left: 27px; }
.gz-note { font-size: 11.5px; color: #9a7a4a; line-height: 1.7; margin: 0; }

/* 遊び方 */
.gz-how { display: flex; flex-direction: column; gap: 10px; }
.gz-how li { list-style: none; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 12px; font-size: 13.5px; font-weight: 800; line-height: 1.6; color: #6a4520; box-shadow: 0 3px 0 #f0d9a8; }
.gz-how ol { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gz-how li b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f0702a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.gz-how .gz-pair { display: flex; align-items: center; gap: 2px; flex: none; }
.gz-how .gz-pair img { width: 30px; height: 30px; border-radius: 50%; }

/* チュートリアル（最初の1回。盤面の上に重ねる吹き出し） */
.gz-tut { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
.gz-tut-box { position: absolute; left: 12px; right: 12px; top: 74px; margin: 0 auto; max-width: 380px; background: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: 0 0 0 4px #ffd36a, 0 10px 24px rgba(120, 70, 20, .25); pointer-events: auto; display: flex; flex-direction: column; gap: 8px; animation: gzIn .25s ease-out; }
.gz-tut-box p { margin: 0; font-size: 14.5px; font-weight: 900; line-height: 1.6; color: #6a4520; }
.gz-tut-box p small { display: block; font-size: 12px; font-weight: 800; color: #9a7a4a; }
.gz-tut-box .gz-row .gz-b { min-height: 42px; font-size: 14.5px; }
.gz-tut-step { font-size: 11px; font-weight: 900; color: #e0662a; letter-spacing: 1px; }
.gz-hand { position: absolute; width: 46px; height: 46px; font-size: 40px; line-height: 1; pointer-events: none; animation: gzHand 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
@keyframes gzHand { 0% { transform: translateX(-60px); } 45% { transform: translateX(60px); } 60% { transform: translateX(60px) scale(.85); } 75%, 100% { transform: translateX(60px); } }

/* 結果 */
.gz-res { background: radial-gradient(circle at 50% 20%, rgba(255, 244, 200, .97), rgba(255, 232, 170, .97)); }
.gz-over { position: absolute; left: 0; right: 0; top: 38%; text-align: center; z-index: 12; pointer-events: none; }
.gz-over b { display: inline-block; font-size: 44px; font-weight: 900; color: #fff; -webkit-text-stroke: 9px #d6452f; paint-order: stroke fill; animation: gzOv .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes gzOv { 0% { transform: scale(0) rotate(-12deg); } 100% { transform: scale(1) rotate(-4deg); } }
.gz-rs-h { text-align: center; margin: 4px 0 6px; }
.gz-rs-h small { display: block; font-size: 13px; font-weight: 900; color: #b0621e; }
.gz-rs-h b { display: block; font-size: 54px; font-weight: 900; line-height: 1.05; color: #fff; -webkit-text-stroke: 9px #e0662a; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.gz-rs-h em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #ff5a7a, #ff9a4a); border-radius: 99px; padding: 3px 12px; animation: gzPulse 1s ease-in-out infinite; }
@keyframes gzPulse { 50% { transform: scale(1.08); } }
.gz-rs-best { font-size: 12.5px; font-weight: 800; color: #8a5a22; text-align: center; }
.gz-card { background: #fff; border-radius: 18px; padding: 12px; margin: 0 0 10px; box-shadow: 0 3px 0 #f0d9a8; }
.gz-card h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 900; color: #b0621e; display: flex; align-items: center; gap: 6px; }
.gz-card h3 small { margin-left: auto; font-size: 11.5px; color: #a58a5a; }
.gz-top1 { display: flex; align-items: center; gap: 12px; }
.gz-top1 img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.gz-top1 p { margin: 0; font-size: 12.5px; font-weight: 800; color: #8a5a22; line-height: 1.6; }
.gz-top1 p b { display: block; font-size: 18px; color: #6a4520; }
.gz-zrow { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.gz-zrow img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.gz-zrow img.is-no { filter: brightness(0) opacity(.2); }
.gz-zrow img.is-new { box-shadow: 0 0 0 3px #ff5a7a; animation: gzPulse .9s ease-in-out infinite; }
.gz-join { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(135deg, #fff1d6, #ffe0ec); border-radius: 18px; padding: 12px; margin: 0 0 10px; font-size: 12.5px; font-weight: 800; color: #8a4a5a; line-height: 1.6; }
.gz-join .gz-b { min-height: 44px; font-size: 14.5px; }

/* お題 */
.gz-q { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed #f0d9a8; }
.gz-q:first-child { border-top: 0; }
.gz-q-b { flex: 1; min-width: 0; }
.gz-q-b p { margin: 0 0 5px; font-size: 13.5px; font-weight: 900; color: #6a4520; line-height: 1.45; }
.gz-bar { height: 9px; border-radius: 99px; background: #f3e4c4; overflow: hidden; }
.gz-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb13a, #f0702a); }
.gz-q-b small { display: block; margin-top: 3px; font-size: 11px; font-weight: 800; color: #a58a5a; }
.gz-q-r { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; }
.gz-q-r em { font-style: normal; font-size: 12px; font-weight: 900; color: #c85a1a; }
.gz-q-r button { width: 100%; min-height: 38px; border-radius: 12px; border: 0; font-size: 13px; font-weight: 900; color: #fff; background: #f0702a; box-shadow: 0 3px 0 #c4541a; }
.gz-q-r button[disabled] { background: #e3d3b4; box-shadow: none; color: #fff; }
.gz-q-r button.is-got { background: #6ad07a; box-shadow: none; }

/* 図鑑 */
.gz-zk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gz-zc { background: #fff; border-radius: 16px; padding: 8px 4px; text-align: center; box-shadow: 0 3px 0 #f0d9a8; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gz-zc img { width: 58px; height: 58px; border-radius: 50%; }
.gz-zc b { font-size: 11.5px; font-weight: 900; color: #6a4520; line-height: 1.3; }
.gz-zc small { font-size: 10px; font-weight: 800; color: #a58a5a; }
.gz-zc.is-no img { filter: brightness(0) opacity(.2); }
.gz-zc.is-no b { color: #c8b48a; }
.gz-zc.is-top { grid-column: span 3; flex-direction: row; justify-content: center; gap: 12px; background: linear-gradient(135deg, #fff5c8, #ffe28a); }
.gz-zc.is-top img { width: 72px; height: 72px; }
.gz-stat { display: flex; gap: 8px; margin: 0 0 10px; }
.gz-stat div { flex: 1; background: #fff; border-radius: 14px; padding: 8px; text-align: center; box-shadow: 0 3px 0 #f0d9a8; }
.gz-stat small { display: block; font-size: 10.5px; font-weight: 800; color: #a58a5a; }
.gz-stat b { font-size: 18px; font-weight: 900; color: #e0662a; }

/* ランキング */
.gz-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f3e4c4; border-radius: 14px; padding: 4px; margin: 0 0 10px; }
.gz-tabs button { border: 0; background: none; border-radius: 11px; min-height: 38px; font-size: 13px; font-weight: 900; color: #a0703a; }
.gz-tabs button.is-on { background: #fff; color: #e0662a; box-shadow: 0 2px 5px rgba(120, 70, 20, .12); }
.gz-rk { list-style: none; margin: 0; padding: 0; }
.gz-rk li { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-top: 1px dashed #f0d9a8; min-height: 52px; }
.gz-rk li:first-child { border-top: 0; }
.gz-rk li.is-me { background: #fff1c8; border-radius: 12px; }
.gz-rk li > b { flex: none; width: 28px; text-align: center; font-size: 16px; font-weight: 900; color: #c85a1a; }
.gz-rk li.is-1 > b, .gz-rk li.is-2 > b, .gz-rk li.is-3 > b { font-size: 0; }
.gz-rk li.is-1 > b::after { content: "1"; font-size: 15px; color: #fff; background: #f2b31c; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.gz-rk li.is-2 > b::after { content: "2"; font-size: 15px; color: #fff; background: #a8b4c0; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.gz-rk li.is-3 > b::after { content: "3"; font-size: 15px; color: #fff; background: #d08a4a; border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.gz-rk .gz-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff3cf; }
.gz-rk span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 900; color: #6a4520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-rk em { flex: none; font-style: normal; font-size: 15px; font-weight: 900; color: #e0662a; font-variant-numeric: tabular-nums; }
.gz-rk .gz-lv { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.gz-rk-me { flex: none; margin-top: 8px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 900; color: #8a5a22; text-align: center; box-shadow: 0 3px 0 #f0d9a8; }
.gz-empty { text-align: center; color: #a58a5a; font-size: 13px; font-weight: 800; padding: 26px 0; line-height: 1.8; }

/* きせかえ */
.gz-sk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gz-skc { position: relative; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 3px 0 #f0d9a8; display: flex; flex-direction: column; gap: 6px; border: 3px solid transparent; }
.gz-skc.is-on { border-color: #f0702a; }
.gz-skc canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; display: block; }
.gz-skc b { font-size: 12.5px; font-weight: 900; color: #6a4520; }
.gz-skc button { min-height: 36px; border-radius: 11px; border: 0; font-size: 12.5px; font-weight: 900; color: #fff; background: #f0702a; box-shadow: 0 3px 0 #c4541a; }
.gz-skc button.is-eq { background: #fff; color: #b0621e; box-shadow: 0 0 0 2px #f0d9a8 inset; }
.gz-skc button[disabled] { background: #e3d3b4; box-shadow: none; }
.gz-sec { font-size: 14px; font-weight: 900; color: #b0621e; margin: 12px 0 8px; }
.gz-sec:first-child { margin-top: 0; }
.gz-bal { flex: none; text-align: center; font-size: 13px; font-weight: 900; color: #8a5a22; margin: 0 0 8px; }
.gz-bal b { color: #e0662a; font-size: 16px; }

/* 確認（下からのシート） */
.gz-sheet { position: absolute; inset: 0; z-index: 40; background: rgba(60, 35, 10, .45); display: flex; align-items: flex-end; justify-content: center; }
.gz-sheet > div { width: 100%; max-width: 520px; background: #fff8e6; border-radius: 24px 24px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; animation: gzUp .2s ease-out; }
.gz-sheet p { margin: 0; text-align: center; font-size: 15px; font-weight: 900; color: #6a4520; line-height: 1.6; }
@keyframes gzUp { 0% { transform: translateY(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.gz-msg { position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: rgba(60, 35, 10, .9); color: #fff; font-size: 13px; font-weight: 800; border-radius: 99px; padding: 9px 16px; max-width: 90%; text-align: center; pointer-events: none; animation: gzIn .2s ease-out; }

/* 低い画面（ブラウザの帯込みで 560〜680） */
@media (max-height: 700px) {
	.gz-top { min-height: 52px; padding-top: 6px; }
	.gz-ib { width: 40px; height: 40px; }
	.gz-sc b { font-size: 26px; }
	.gz-next { width: 52px; height: 52px; }
	.gz-next canvas { width: 38px; height: 38px; }
	.gz-evo { min-height: 32px; padding-bottom: 5px; }
	.gz-evo img { width: 22px; height: 22px; }
	.gz-parade { min-height: 44px; margin-top: 6px; }
	.gz-logo p { margin-top: 4px; }
	.gz-tile { min-height: 50px; }
	.gz-b { min-height: 48px; }
	.gz-rs-h b { font-size: 44px; }
}
@media (max-height: 600px) {
	.gz-parade { display: none; }
	.gz-logo h1 span { font-size: 34px; }
	.gz-logo h1 span + span { font-size: 38px; }
	.gz-tile { min-height: 44px; font-size: 11px; }
	.gz-tile i { font-size: 18px; }
}
@media (max-width: 360px) {
	.gz-evo img { width: 22px; height: 22px; }
	.gz-evo span { display: none; }
}
/* SGC1002 ガチャの入口とレアの印 */
.gz-gcbar { margin-top: 8px; background: linear-gradient(90deg, #fff4fa, #fff8e6); color: #b0407a; box-shadow: 0 3px 0 #f0a8c8; position: relative; }
.gz-gcbar b { color: #d0408a; }
.gz-gcbar .gz-dot { position: static; flex: none; }
.gz-gtag { display: inline-block; font-size: 10px; padding: 0 5px; border-radius: 5px; background: linear-gradient(90deg, #ff8ac0, #ffc46e); color: #fff; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) {
	.gz-parade img, .gz-hand, .gz-rs-h em, .gz-zrow img.is-new { animation: none; }
}
