:root {
  --ink: #f8f7ff;
  --ink-soft: #b9bfd7;
  --night: #080d24;
  --night-2: #101735;
  --night-3: #182047;
  --panel: #151c3e;
  --panel-bright: #202a58;
  --line: rgb(255 255 255 / 13%);
  --violet: #7767ff;
  --cyan: #55d7ff;
  --coral: #ff5f72;
  --yellow: #ffd54a;
  --green: #65e6a4;
  --danger: #ff8792;
  --shadow: 0 24px 70px rgb(0 0 0 / 38%);
  --header-height: 64px;
  --gutter: clamp(14px, 3vw, 34px);
  --radius: 24px;
  --font: Inter, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px; min-height: 100dvh; margin: 0; overflow-x: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 20% 0%, rgb(119 103 255 / 18%), transparent 31rem),
    radial-gradient(circle at 90% 28%, rgb(85 215 255 / 9%), transparent 28rem),
    var(--night);
  color: var(--ink); font: 16px/1.6 var(--font); letter-spacing: .01em;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(100%, 1480px); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
main { flex: 1; width: 100%; padding-bottom: 72px; outline: none; }
main:focus-visible { outline: 0; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--night); }
.skip:focus-visible { top: 8px; }
.skip:focus:not(:focus-visible) { top: -100px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.small { font-size: .84rem; }
.eyebrow { margin: 0; color: var(--yellow); font-size: .69rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: rgb(8 13 36 / 82%); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 8px; }
.brand { min-width: 0; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { position: relative; width: 34px; height: 34px; flex: none; transform: rotate(-5deg); }
.brand-mark i { position: absolute; width: 20px; height: 20px; border-radius: 7px; box-shadow: 0 7px 18px rgb(0 0 0 / 32%); }
.brand-mark i:nth-child(1) { inset: 0 auto auto 0; background: var(--violet); }
.brand-mark i:nth-child(2) { inset: 0 0 auto auto; background: var(--yellow); }
.brand-mark i:nth-child(3) { inset: auto 7px 0 auto; background: var(--cyan); }
.brand-copy { min-width: 0; display: grid; line-height: 1; }
.brand-name { font-size: .92rem; font-weight: 950; letter-spacing: -.03em; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: var(--ink-soft); font-size: .52rem; font-weight: 800; letter-spacing: .24em; }
.header-nav { flex: none; display: flex; margin-left: auto; }
/* スマホはロゴがゲーム一覧への入口を兼ねる。投稿は主役にしすぎず、黄縁と「＋」で発見しやすくする。 */
.header-nav a[href="/games"] { display: none; }
.header-nav + .account { margin-left: 0; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--ink-soft); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.header-nav .creator-entry { gap: 2px; padding-inline: 10px; border: 1px solid rgb(255 213 74 / 48%); border-radius: 999px; background: rgb(255 213 74 / 8%); color: var(--yellow); }
.creator-entry__icon { font-size: 1rem; line-height: 1; }
.creator-entry__desktop-label { display: none; }
.account { flex: none; margin-left: auto; }
.account-btn { min-height: 44px; white-space: nowrap; }
.account-btn--signed-in { width: 44px; height: 44px; padding: 0; }
.account-btn--login { padding: 8px 12px; font-size: .82rem; }
.account-icon { flex: none; line-height: 1; }
.account-name { display: none; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn, .play-cta {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-bright);
  color: var(--ink); text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.btn:hover, .play-cta:hover { transform: translateY(-2px); }
.btn:active, .play-cta:active { transform: scale(.97); }
.btn-primary { border-color: transparent; background: var(--yellow); color: #12162b; }
.btn-ghost { background: rgb(255 255 255 / 5%); }
.btn-lg { min-height: 54px; padding-inline: 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.icon-btn { width: 46px; height: 46px; padding: 0; border-radius: 15px; font-size: 1.1rem; }
.link-btn { min-height: 44px; border: 0; background: transparent; color: var(--cyan); text-decoration: underline; cursor: pointer; }

/* Spotlight carousel */
.spotlight { position: relative; margin-top: clamp(12px, 2vw, 26px); border: 1px solid var(--line); border-radius: clamp(22px, 4vw, 38px); overflow: hidden; box-shadow: var(--shadow); background: #111a3d; }
.hero-viewport { overflow: hidden; touch-action: pan-y; }
.hero-track { display: flex; will-change: transform; transition: transform .62s cubic-bezier(.22,.72,.18,1); }
.hero-track.is-jumping { transition: none; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; height: clamp(470px, 70dvh, 660px); overflow: hidden; }
.hero-slide > img, .hero-slide > picture, .hero-slide > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 8 25 / 96%) 0%, rgb(5 8 25 / 50%) 44%, rgb(5 8 25 / 4%) 76%), linear-gradient(90deg, rgb(5 8 25 / 26%), transparent 70%); }
.hero-slide__content { position: absolute; inset: auto 18px 32px; max-width: 650px; }
.hero-slide h1 { margin: 4px 0 8px; max-width: 11ch; font-size: clamp(2.25rem, 10vw, 4.9rem); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.hero-slide__summary { max-width: 37rem; margin: 0 0 12px; color: #e1e5f7; font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero-slide__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-slide__facts span { padding: 4px 9px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: rgb(8 13 36 / 48%); font-size: .71rem; font-weight: 750; }
.play-cta { min-height: 54px; padding: 7px 8px 7px 20px; background: var(--yellow); color: #11162f; border: 0; }
.play-cta i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #11162f; color: var(--yellow); font-style: normal; }
.hero-controls { position: absolute; z-index: 3; right: 13px; top: 13px; display: flex; align-items: center; gap: 5px; }
.hero-controls > button { width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: rgb(8 13 36 / 68%); color: white; cursor: pointer; backdrop-filter: blur(9px); }
.hero-dots { display: flex; gap: 5px; padding: 8px; border-radius: 99px; background: rgb(8 13 36 / 68%); backdrop-filter: blur(9px); }
.hero-dots button { width: 8px; height: 8px; min-width: 8px; padding: 0; border: 0; border-radius: 99px; background: rgb(255 255 255 / 42%); cursor: pointer; transition: width .2s, background .2s; }
.hero-dots button[aria-current="true"] { width: 22px; background: var(--yellow); }

/* Discovery */
.discovery-bar { position: relative; z-index: 4; margin: 14px 0 0; display: grid; gap: 10px; }
.genre-strip, .tag-strip { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.genre-strip::-webkit-scrollbar, .tag-strip::-webkit-scrollbar, .game-rail::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-soft); text-decoration: none; font-size: .82rem; font-weight: 800; }
.chip[aria-current="true"] { background: var(--ink); color: var(--night); }
.search { position: relative; min-width: 0; }
.search input { width: 100%; min-height: 48px; padding: 10px 54px 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 7%); color: var(--ink); }
.search input::placeholder { color: #8f96b4; }
.search-submit { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--violet); color: white; font-size: 1.4rem; cursor: pointer; }

/* Shelves and game cards */
.shelf, .all-games, .catalog-results { margin-top: clamp(40px, 7vw, 84px); }
.section { margin-top: 34px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.section-head, .results-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-head p, .results-heading p { margin: 0 0 2px; color: var(--cyan); font-size: .66rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.section-head h2, .results-heading h1 { margin: 0; font-size: clamp(1.45rem, 5vw, 2.45rem); line-height: 1.08; letter-spacing: -.04em; }
.rail-buttons { display: none; gap: 7px; }
.rail-buttons button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); cursor: pointer; }
.rail-shell { position: relative; margin-inline: calc(var(--gutter) * -1); }
.game-rail { display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px var(--gutter) 14px; overscroll-behavior-inline: contain; }
.game-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.game-card--rail, .game-card--compact { flex: 0 0 min(76vw, 310px); }
.game-card__art { position: relative; display: block; overflow: hidden; border-radius: 21px; background: var(--panel); box-shadow: 0 18px 32px rgb(0 0 0 / 20%); }
.game-card__art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 15%); border-radius: inherit; pointer-events: none; }
.game-card__art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .38s cubic-bezier(.2,.75,.2,1), filter .3s; }
.game-card:hover .game-card__art img { transform: scale(1.045); filter: saturate(1.08); }
.game-card__play { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--night); font-size: .74rem; box-shadow: 0 10px 25px rgb(0 0 0 / 28%); transform: translateY(5px); opacity: 0; transition: .2s; }
.game-card:hover .game-card__play, .game-card:focus-visible .game-card__play { transform: none; opacity: 1; }
.game-badge { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 99px; background: var(--coral); color: white; font-size: .62rem; font-weight: 950; letter-spacing: .12em; }
.game-card__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 3px 0; }
.game-card__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.02em; }
.game-card__reason {
  grid-column: 1/-1; width: fit-content; max-width: 100%; margin: 0 0 5px; padding: 5px 9px;
  overflow: hidden; border: 1px solid rgb(85 215 255 / 22%); border-radius: 10px;
  background: linear-gradient(90deg, rgb(119 103 255 / 20%), rgb(85 215 255 / 10%));
  color: #dff8ff; font-size: .69rem; font-weight: 800; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis;
}
.game-card__reason::before { content: "✦"; margin-right: 6px; color: var(--cyan); }
.game-card__creator { align-self: center; color: var(--ink-soft); font-size: .7rem; }
.game-card__facts { grid-column: 1/-1; display: flex; gap: 10px; color: var(--ink-soft); font-size: .7rem; }
.game-card__facts span + span::before { content: "•"; margin-right: 10px; color: var(--violet); }
.mosaic-grid, .catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card--mosaic .game-card__body, .game-card--feature .game-card__body { padding-inline: 2px; }
.game-card--feature { grid-column: 1/-1; }
.game-card--feature .game-card__body strong { font-size: 1.25rem; }
.game-card--feature .game-card__art { border-radius: 25px; }
.game-card--catalog { margin-bottom: 12px; }
.catalog-results .tag-strip { margin: 0 0 22px; }
.results-heading { align-items: center; }

/* Shared content */
.crumbs { margin: 14px 0; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: .84rem; }
.detail { display: grid; gap: clamp(22px, 5vw, 64px); align-items: start; }
.detail-media { position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.detail-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail-media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.detail-genre { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 99px; background: rgb(8 13 36 / 72%); font-size: .74rem; font-weight: 800; backdrop-filter: blur(8px); }
.detail-copy h1 { margin: 4px 0 6px; font-size: clamp(2.3rem, 8vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
.detail-creator { margin: 0 0 16px; color: var(--ink-soft); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); text-decoration: none; font-size: .72rem; }
.facts-panel, .panel, .empty { border: 1px solid var(--line); border-radius: 22px; background: rgb(255 255 255 / 5%); }
.facts-panel, .panel { padding: clamp(16px, 3vw, 25px); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0; font-size: .87rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.detail-sections { display: grid; gap: 12px; margin-top: 34px; }
.panel h2 { margin: 0 0 8px; font-size: 1.15rem; }
.panel p:last-child { margin-bottom: 0; }
.panel-highlight { background: linear-gradient(135deg, rgb(119 103 255 / 22%), rgb(85 215 255 / 8%)); }
.note { color: var(--ink-soft); font-size: .84rem; }
.empty { padding: 28px; text-align: center; color: var(--ink-soft); }
.page-title { margin: 12px 0 18px; font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.segs { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); overflow-x: auto; }
.seg { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 99px; color: var(--ink-soft); text-decoration: none; font-size: .78rem; font-weight: 800; }
.seg.on { background: var(--ink); color: var(--night); }

/* Rankings / profile */
.board { max-width: 820px; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.board li { min-height: 66px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.board li:first-child { background: linear-gradient(110deg, rgb(255 213 74 / 20%), var(--panel)); }
.board li.you { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.board .rank { font-size: 1.1rem; font-weight: 950; text-align: center; }
.board .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .score { color: var(--yellow); font-weight: 900; font-variant-numeric: tabular-nums; }
.ranking-hero { position: relative; min-height: 285px; overflow: hidden; display: flex; align-items: end; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); }
.ranking-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ranking-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 8 25 / 94%), rgb(5 8 25 / 35%)); }
.ranking-hero > div { position: relative; z-index: 1; padding: clamp(22px, 5vw, 48px); }
.ranking-hero h1 { margin: 4px 0 18px; font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.ranking-layout { display: grid; gap: 18px; }
.ranking-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.ranking-empty { display: grid; gap: 3px; }
.ranking-empty strong { color: var(--yellow); font-size: 1.15rem; }
.ranking-note { display: flex; gap: 12px; height: max-content; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgb(101 230 164 / 8%); }
.ranking-note > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--night); font-weight: 950; }
.ranking-note p { margin: 4px 0 0; color: var(--ink-soft); font-size: .82rem; }
.personal-best { color: var(--ink-soft); }
.personal-best b { margin-left: 8px; color: var(--yellow); font-size: 1.4rem; }
.profile-guest { min-height: min(660px, calc(100dvh - var(--header-height))); max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.profile-guest h1 { margin: 6px 0 18px; font-size: clamp(2.5rem, 10vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.profile-guest > p:not(.eyebrow) { max-width: 530px; color: var(--ink-soft); }
.profile-orb { width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 31px; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: white; box-shadow: 0 24px 50px rgb(85 215 255 / 18%); transform: rotate(-7deg); }
.profile-orb span { font-size: 2.2rem; font-weight: 950; transform: rotate(7deg); }
.profile-head { display: flex; align-items: center; gap: 20px; padding-top: 34px; }
.profile-head .profile-orb { margin: 0; }
.profile-head h1 { margin: 4px 0; font-size: clamp(2rem, 7vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.profile-head p { margin: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.profile-summary {
  position: relative; overflow: hidden; margin-top: 26px; padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgb(119 103 255 / 34%); border-radius: 28px;
  background: linear-gradient(135deg, rgb(119 103 255 / 19%), rgb(85 215 255 / 7%) 58%, rgb(255 213 74 / 6%));
  box-shadow: 0 22px 54px rgb(0 0 0 / 18%);
}
.profile-summary::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -80px; top: -105px;
  border: 34px solid rgb(85 215 255 / 8%); border-radius: 50%; pointer-events: none;
}
.profile-summary__heading { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.profile-summary__heading h2 { margin: 3px 0 0; font-size: clamp(1.25rem, 5vw, 1.9rem); line-height: 1.1; letter-spacing: -.035em; }
.privacy-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgb(101 230 164 / 12%); color: #a9f4cb; font-size: .68rem; font-weight: 800; }
.privacy-chip i { color: var(--green); font-size: .55rem; font-style: normal; }
.profile-summary__grid { display: grid; gap: 10px; margin-top: 20px; }
.profile-summary__item { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: rgb(8 13 36 / 43%); }
.profile-summary__item > span { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.profile-summary__item strong { display: block; font-size: 1.15rem; }
.profile-summary__item small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .69rem; }
.profile-summary__item--genres .tag { margin: 2px 4px 2px 0; border-color: rgb(85 215 255 / 22%); background: rgb(85 215 255 / 7%); color: #dff8ff; }
.profile-summary__edit { margin-top: 14px; border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 8%); }

/* Profile onboarding */
.profile-setup { width: min(100%, 1040px); margin-inline: auto; padding-top: clamp(24px, 5vw, 58px); }
.profile-setup__intro { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); margin-bottom: clamp(22px, 4vw, 36px); }
.profile-setup__intro h1 { max-width: 16ch; margin: 4px 0 10px; font-size: clamp(2rem, 7vw, 4.5rem); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.profile-setup__intro p:last-child { max-width: 620px; margin: 0; color: var(--ink-soft); }
.profile-setup__spark { width: clamp(64px, 10vw, 98px); height: clamp(64px, 10vw, 98px); flex: none; display: grid; place-items: center; border-radius: 30%; background: linear-gradient(145deg, var(--violet), #5e93ff 55%, var(--cyan)); color: white; font-size: clamp(1.7rem, 4vw, 2.7rem); box-shadow: 0 24px 58px rgb(85 215 255 / 18%); transform: rotate(-6deg); }
.profile-form { display: grid; gap: 16px; }
.profile-fields, .genre-picker { margin: 0; padding: clamp(17px, 3vw, 26px); border: 1px solid var(--line); border-radius: 26px; background: rgb(21 28 62 / 68%); box-shadow: 0 18px 44px rgb(0 0 0 / 16%); }
.profile-form__heading, .genre-picker legend { display: flex; align-items: center; gap: 11px; }
.profile-form__heading > span, .genre-picker legend > span:first-child { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--yellow); color: var(--night); font-size: .68rem; font-weight: 950; }
.profile-form__heading h2, .genre-picker legend strong { margin: 0; font-size: 1.04rem; line-height: 1.15; }
.profile-form__heading p, .genre-picker legend small { display: block; margin: 2px 0 0; color: var(--ink-soft); font-size: .7rem; font-weight: 500; }
.profile-fields__grid { display: grid; gap: 12px; margin-top: 18px; }
.profile-fields .field { margin: 0; }
.profile-fields .field label { display: flex; justify-content: space-between; color: var(--ink); font-size: .78rem; }
.profile-fields .field label small { color: var(--ink-soft); font-weight: 500; }
.profile-fields .field input { min-height: 54px; border-radius: 16px; background: rgb(8 13 36 / 68%); }
.profile-fields .field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(85 215 255 / 12%); outline: 0; }
.profile-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 11px 13px; border-radius: 14px; background: rgb(101 230 164 / 8%); color: #cceedd; font-size: .73rem; line-height: 1.55; }
.profile-privacy span { flex: none; color: var(--green); font-size: .58rem; line-height: 2.5; }
.genre-picker { min-width: 0; }
.genre-picker legend { width: auto; padding: 0 8px; color: var(--ink); }
.genre-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.genre-option { --genre-color: var(--violet); position: relative; min-width: 0; cursor: pointer; }
.genre-option[data-genre="reflex"], .genre-option[data-genre="runner"] { --genre-color: var(--coral); }
.genre-option[data-genre="order-puzzle"], .genre-option[data-genre="merge-puzzle"] { --genre-color: var(--green); }
.genre-option[data-genre="falling-puzzle"], .genre-option[data-genre="number-puzzle"] { --genre-color: var(--cyan); }
.genre-option[data-genre="creative"] { --genre-color: var(--yellow); }
.genre-option[data-genre="puzzle"] { --genre-color: var(--violet); }
.genre-option[data-genre="shooting"] { --genre-color: var(--coral); }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
.genre-option[data-genre="romance-sim"] { --genre-color: var(--coral); }
.genre-option[data-genre="action"] { --genre-color: var(--yellow); }
.genre-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.genre-option__tile { min-height: 112px; display: grid; grid-template: 1fr auto / 1fr auto; align-items: start; gap: 8px; padding: 13px; overflow: hidden; border: 2px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%)); transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.genre-option__icon { align-self: center; color: var(--genre-color); font-size: clamp(1.55rem, 7vw, 2.25rem); font-weight: 950; line-height: 1; letter-spacing: -.12em; text-shadow: 0 8px 24px color-mix(in srgb, var(--genre-color) 32%, transparent); }
.genre-option__label { align-self: end; min-width: 0; overflow: hidden; color: var(--ink); font-size: .76rem; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.genre-option__state { width: 24px; height: 24px; grid-column: 2; grid-row: 1; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 28%); border-radius: 50%; color: var(--night); font-size: .72rem; font-weight: 950; }
.genre-option:hover .genre-option__tile { transform: translateY(-2px); border-color: rgb(255 255 255 / 28%); }
.genre-option input:focus-visible + .genre-option__tile { outline: 3px solid var(--yellow); outline-offset: 3px; }
.genre-option input:checked + .genre-option__tile { border-color: var(--genre-color); background: linear-gradient(145deg, color-mix(in srgb, var(--genre-color) 20%, var(--panel)), rgb(255 255 255 / 5%)); box-shadow: 0 14px 32px color-mix(in srgb, var(--genre-color) 16%, transparent); transform: translateY(-2px); }
.genre-option input:checked + .genre-option__tile .genre-option__state { border-color: var(--genre-color); background: var(--genre-color); }
.genre-option input:checked + .genre-option__tile .genre-option__state::before { content: "✓"; }
.profile-form > .profile-actions { position: sticky; bottom: 10px; z-index: 4; justify-content: flex-end; margin: 2px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgb(8 13 36 / 82%); box-shadow: 0 14px 40px rgb(0 0 0 / 26%); backdrop-filter: blur(14px); }

/* Personalized shelf and age guidance */
.shelf--for-you { position: relative; padding: clamp(18px, 4vw, 32px); border: 1px solid rgb(119 103 255 / 25%); border-radius: 30px; background: linear-gradient(145deg, rgb(119 103 255 / 12%), rgb(85 215 255 / 4%) 55%, transparent); }
.shelf--for-you .rail-shell { margin-inline: calc(clamp(18px, 4vw, 32px) * -1); }
.shelf--for-you .game-rail { padding-inline: clamp(18px, 4vw, 32px); }
.for-you-prompt { min-height: 86px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 13px; border: 1px solid rgb(255 213 74 / 25%); border-radius: 20px; background: linear-gradient(100deg, rgb(255 213 74 / 14%), rgb(119 103 255 / 12%)); text-decoration: none; }
.for-you-prompt__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--yellow); color: var(--night); font-size: 1.3rem; box-shadow: 0 10px 24px rgb(255 213 74 / 18%); }
.for-you-prompt strong, .for-you-prompt small { display: block; }
.for-you-prompt strong { line-height: 1.3; }
.for-you-prompt small { margin-top: 3px; color: var(--ink-soft); font-size: .71rem; line-height: 1.45; }
.for-you-prompt i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 10%); font-style: normal; }
.age-note { padding: 8px 11px; border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; background: rgb(255 213 74 / 9%); color: #fff0ad; font-weight: 750; }

/* Creator publishing flow */
.creator-guest {
  width: min(100%, 1120px); min-height: min(720px, calc(100dvh - var(--header-height))); margin-inline: auto;
  display: grid; align-items: center; gap: clamp(34px, 7vw, 86px); padding-block: clamp(44px, 8vw, 100px);
}
.creator-guest__copy h1 { max-width: 12ch; margin: 8px 0 20px; font-size: clamp(2.75rem, 8vw, 6rem); line-height: .93; letter-spacing: -.065em; text-wrap: balance; }
.creator-guest__copy > p:not(.eyebrow) { max-width: 570px; color: var(--ink-soft); font-size: clamp(.95rem, 2vw, 1.15rem); }
.creator-flow { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.creator-flow::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(var(--yellow), var(--cyan)); }
.creator-flow li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 88px; padding: 13px 16px 13px 0; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(115deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 3%)); }
.creator-flow li > span { z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgb(255 213 74 / 40%); border-radius: 18px; background: var(--night-2); color: var(--yellow); font-size: .72rem; font-weight: 950; }
.creator-flow strong, .creator-flow small { display: block; }
.creator-flow small { margin-top: 2px; color: var(--ink-soft); font-size: .75rem; }
.creator-head { display: grid; gap: 24px; align-items: end; padding-top: clamp(38px, 7vw, 80px); }
.creator-head h1 { max-width: 10ch; margin: 5px 0 14px; font-size: clamp(2.7rem, 8vw, 6.2rem); line-height: .92; letter-spacing: -.07em; }
.creator-head > div > p:last-child { max-width: 690px; margin: 0; color: var(--ink-soft); }
.creator-progress { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.creator-progress li { position: relative; min-width: 76px; display: grid; justify-items: center; gap: 6px; color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.creator-progress li + li::before { content: ""; position: absolute; right: 50%; top: 17px; width: 100%; height: 1px; background: var(--line); }
.creator-progress span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--night-2); }
.creator-progress .is-current { color: var(--ink); }
.creator-progress .is-current span { border-color: var(--yellow); background: var(--yellow); color: var(--night); }
.creator-required { flex: none; padding: 6px 10px; border-radius: 99px; background: rgb(255 213 74 / 10%); color: #ffe99b; font-size: .68rem; font-weight: 800; }
.creator-form { display: grid; gap: 18px; }
.creator-step { min-width: 0; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgb(21 28 62 / 88%), rgb(12 18 45 / 82%)); box-shadow: 0 22px 55px rgb(0 0 0 / 16%); }
.creator-step > header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.creator-step > header > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--violet), #5d8cff); color: white; font-size: .73rem; font-weight: 950; box-shadow: 0 10px 26px rgb(119 103 255 / 20%); }
.creator-step > header h3 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.15; }
.creator-step > header p { margin: 3px 0 0; color: var(--ink-soft); font-size: .74rem; }
.creator-step .field { min-width: 0; margin-bottom: 14px; }
.creator-step .field label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--ink); }
.creator-step .field label b { color: #ffe99b; font-size: .66rem; font-weight: 750; }
.creator-step .field label small { color: var(--ink-soft); font-weight: 500; }
.creator-step .field input, .creator-step .field select, .creator-step .field textarea { border-color: rgb(255 255 255 / 14%); background: rgb(8 13 36 / 72%); }
.creator-step .field input:focus, .creator-step .field select:focus, .creator-step .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(85 215 255 / 11%); outline: 0; }
.creator-fields { display: grid; gap: 0 14px; }
.creator-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgb(101 230 164 / 17%); border-radius: 16px; background: rgb(101 230 164 / 7%); }
.creator-identity > span, .creator-identity small { color: var(--ink-soft); font-size: .7rem; }
.creator-identity small { grid-column: 1/-1; }
.creator-art-grid { display: grid; gap: 14px; }
.upload-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 22px; background: rgb(8 13 36 / 46%); }
.upload-card__heading { display: grid; gap: 5px; margin-bottom: 12px; }
.upload-card__heading strong, .upload-card__heading small { display: block; }
.upload-card__heading small, .upload-card__heading > span { color: var(--ink-soft); font-size: .68rem; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.file-drop { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 18px; border: 1px dashed rgb(85 215 255 / 42%); border-radius: 17px; background: linear-gradient(145deg, rgb(85 215 255 / 7%), rgb(119 103 255 / 7%)); text-align: center; cursor: pointer; }
.file-drop > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; background: var(--cyan); color: var(--night); font-size: 1.45rem; line-height: 1; }
.file-drop small { max-width: 32ch; color: var(--ink-soft); font-size: .68rem; }
.file-input:focus-visible + .thumb-preview, .file-input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.file-drop:has(+ .file-input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.thumb-preview[hidden] { display: none; }
.thumb-preview { display: grid; gap: 9px; margin-top: 12px; }
.thumb-preview__art { position: relative; overflow: hidden; border-radius: 18px; background: var(--panel); box-shadow: 0 14px 30px rgb(0 0 0 / 24%); }
.thumb-preview__art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.thumb-preview__art > i { position: absolute; right: 11px; bottom: 11px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--night); font-size: .7rem; font-style: normal; }
.thumb-preview__copy { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .7rem; }
.thumb-preview__copy strong { color: var(--ink); }
.thumb-preview--portrait { width: min(100%, 260px); margin-inline: auto; }
.thumb-preview--portrait .thumb-preview__art img { aspect-ratio: 2/3; }
.thumb-preview__overlay { position: absolute; inset: 55% 0 0; display: flex; align-items: end; padding: 14px; background: linear-gradient(transparent, rgb(5 8 25 / 94%)); color: white; font-size: .73rem; font-weight: 900; line-height: 1.25; }
.age-picker { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.age-picker legend { width: 100%; margin-bottom: 13px; color: var(--ink); font-size: .86rem; font-weight: 850; }
.age-picker legend b { color: #ffe99b; font-size: .66rem; }
.age-picker legend small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .7rem; font-weight: 500; }
.age-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.age-option { position: relative; min-width: 0; cursor: pointer; }
.age-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.age-option__tile { min-height: 108px; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-content: center; gap: 3px 8px; padding: 13px; border: 2px solid var(--line); border-radius: 18px; background: rgb(255 255 255 / 4%); transition: transform .18s, border-color .18s, background .18s; }
.age-option__tile b { font-size: .9rem; }
.age-option__tile small { grid-column: 1; color: var(--ink-soft); font-size: .65rem; line-height: 1.35; }
.age-option__tile i { grid-column: 2; grid-row: 1/3; align-self: center; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 28%); border-radius: 50%; font-style: normal; }
.age-option input:focus-visible + .age-option__tile { outline: 3px solid var(--yellow); outline-offset: 3px; }
.age-option input:checked + .age-option__tile { transform: translateY(-2px); border-color: var(--yellow); background: rgb(255 213 74 / 11%); box-shadow: 0 12px 28px rgb(255 213 74 / 10%); }
.age-option input:checked + .age-option__tile i { border-color: var(--yellow); background: var(--yellow); color: var(--night); }
.age-option input:checked + .age-option__tile i::before { content: "✓"; font-size: .72rem; font-weight: 950; }
.age-guidance { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; background: rgb(85 215 255 / 7%); color: #d9f7ff; font-size: .72rem; }
.age-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rec-hint, .field-note { color: var(--ink-soft); font-size: .7rem; line-height: 1.4; }
.rec-hint:empty { display: none; }
.field[hidden] { display: none; }
.creator-verify__card { padding: clamp(18px, 4vw, 28px); border: 1px solid rgb(255 213 74 / 40%); border-radius: 24px; background: rgb(255 213 74 / 6%); }
.creator-verify__card p { margin: 0 0 10px; }
.creator-verify__card ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink-soft); font-size: .82rem; line-height: 1.6; }
.creator-contact small a { color: var(--cyan); }
.support-panel__contact { font-weight: 800; overflow-wrap: anywhere; }
.support-panel__contact a { color: var(--cyan); }
.field select:disabled { opacity: .6; }
.age-option__tile b em { margin-left: 4px; color: var(--ink-soft); font-size: .62rem; font-style: normal; font-weight: 700; }
.age-guide-link { min-height: 32px; padding: 2px 4px; border: 0; background: none; color: var(--cyan); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 対象年齢の区分の窓 (public/js/age-guide.js) */
dialog.age-guide-dialog { width: min(calc(100% - 28px), 640px); max-height: calc(100dvh - 28px); }
.age-guide { font-size: .8rem; line-height: 1.55; }
.age-guide__intro { margin: 0 0 12px; color: var(--ink-soft); }
.age-guide__rows { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.age-guide__row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 4%); }
.age-guide__row h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .95rem; }
.age-guide__row p { margin: 0 0 6px; color: var(--ink-soft); }
.age-guide__cero { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: var(--night); font-size: .8rem; font-weight: 950; }
.age-guide__cero[data-cero="B"] { background: var(--cyan); }
.age-guide__cero[data-cero="C"] { background: var(--yellow); }
.age-guide__cero[data-cero="D"] { background: #ff9f5a; }
.age-guide__cero[data-cero="Z"] { background: var(--danger); }
.age-guide__ok, .age-guide__ng { display: block; margin-top: 4px; font-size: .7rem; }
.age-guide__ok { color: var(--green); }
.age-guide__ng { color: var(--danger); }
.age-guide__list { margin: 2px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: .74rem; }
.age-guide__list--ok li::marker { content: "✓ "; color: var(--green); }
.age-guide__list--ng li::marker { content: "✕ "; color: var(--danger); }
.age-guide__note { margin: 6px 0 0 !important; color: #ffe99b !important; font-size: .72rem; }
.age-guide__box { margin-top: 10px; padding: 11px 13px; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; background: rgb(85 215 255 / 7%); }
.age-guide__box--warn { border-left-color: var(--danger); background: rgb(255 135 146 / 7%); }
.age-guide__box strong { display: block; margin-bottom: 3px; font-size: .76rem; }
.age-guide__box ol, .age-guide__box ul { margin: 0; padding-left: 1.3em; color: var(--ink-soft); font-size: .74rem; }
.rights-check { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 1px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgb(255 255 255 / 4%); cursor: pointer; }
.rights-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rights-check > span { width: 26px; height: 26px; grid-row: 1/3; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / 30%); border-radius: 8px; }
.rights-check small { color: var(--ink-soft); font-size: .7rem; line-height: 1.45; }
.rights-check input:focus-visible ~ span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.rights-check input:checked ~ span { border-color: var(--green); background: var(--green); color: var(--night); }
.rights-check input:checked ~ span::before { content: "✓"; font-size: .8rem; font-weight: 950; }
.creator-submit { display: grid; gap: 15px; align-items: center; margin-top: 18px; padding: 16px; border-radius: 19px; background: linear-gradient(110deg, rgb(119 103 255 / 16%), rgb(85 215 255 / 8%)); }
.creator-submit strong, .creator-submit small { display: block; }
.creator-submit small { margin-top: 3px; color: var(--ink-soft); font-size: .7rem; line-height: 1.5; }
.creator-submit .btn { width: 100%; }
.creator-step > .form-error { margin-top: 10px; }
.submission-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.submission { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 3%)); }
.submission__art { position: relative; }
.submission__art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.submission__art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(8 13 36 / 72%)); pointer-events: none; }
.submission .status-badge { z-index: 1; left: 12px; top: 12px; }
.status-badge { position: absolute; padding: 6px 10px; border: 1px solid transparent; border-radius: 99px; color: white; font-size: .66rem; font-weight: 900; letter-spacing: .04em; backdrop-filter: blur(8px); }
.status-pending { border-color: rgb(255 213 74 / 42%); background: rgb(92 72 5 / 84%); color: #fff3b7; }
.status-approved { border-color: rgb(101 230 164 / 42%); background: rgb(12 73 48 / 86%); color: #c8ffe1; }
.status-rejected { border-color: rgb(255 135 146 / 42%); background: rgb(92 30 43 / 86%); color: #ffd4d8; }
.status-withdrawn { border-color: rgb(185 191 215 / 30%); background: rgb(40 45 68 / 88%); color: #d9dced; }
.submission__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px; }
.submission__body strong, .submission__host { display: block; }
.submission__host { overflow: hidden; color: var(--ink-soft); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.submission__age { align-self: start; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); font-size: .65rem; }
.submission__status-copy { grid-column: 1/-1; margin: 0; color: var(--ink-soft); font-size: .75rem; }
.submission__review { grid-column: 1/-1; margin: 0; padding: 11px; border-left: 3px solid var(--danger); border-radius: 0 12px 12px 0; background: rgb(255 135 146 / 7%); font-size: .77rem; }
.submission__review span { display: block; color: #ffbdc4; font-size: .65rem; font-weight: 900; }
.submission__actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.submission__actions .btn { min-height: 44px; padding: 8px 13px; font-size: .75rem; }
.game-badge--external { border: 1px solid rgb(85 215 255 / 35%); background: rgb(8 38 70 / 86%); color: #c9f6ff; letter-spacing: .05em; backdrop-filter: blur(8px); }
.game-badge--external::before { content: "↗"; margin-right: 4px; }
.game-badge--external + .game-badge { top: 42px; }
.detail-actions .ext::after { content: "↗"; font-size: .82em; }
.detail-copy > .age-note { margin-block: 18px; padding: 14px 16px; border-left-width: 4px; border-radius: 0 16px 16px 0; line-height: 1.55; }

/* Play shell */
body.playing .site-footer { display: none; }
body.playing main { padding-bottom: 0; }
/* 遊ぶ画面ではサイトの見出し帯を隠し、ゲームの枠を大きくする (戻るのは遊ぶ画面の「←」) */
body.playing .site-header { display: none; }
body.playing { --header-height: 0px; }
.play-bg { position: fixed; inset: 0; z-index: -2; background: center/cover no-repeat; opacity: .4; filter: saturate(.86); }
.play-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(8 13 36 / 35%), var(--night)); }
.play { min-height: calc(100dvh - var(--header-height)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 18px; }
.play-bar { width: 100%; display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: rgb(8 13 36 / 72%); backdrop-filter: blur(12px); }
.play-bar h1 { flex: 1; min-width: 0; margin: 0; padding-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.stage-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
/* 全画面の左右の縦長の欄 (300×600 / 160×600 / 300×250)。大きさと位置 (--gx = 枠の横の空きの真ん中) は play.js の layoutSides が決める */
.play-side { display: none; position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); }
.play-side--side:first-child { left: var(--gx, 16px); }
.play-side--side:not(:first-child) { right: var(--gx, 16px); }
/* 縦のスマホの全画面: 枠の上に横長の欄。枠は欄の分だけ下げ、残りの高さの真ん中に */
.play-side--top { top: 16px; left: 50%; transform: translateX(-50%); }
.stage-wrap.has-top { padding-top: var(--top-pad, 0px); }
.play-side[data-size="r320x100"] { display: block; width: 320px; height: 100px; }
.play-side[data-size="r320x50"] { display: block; width: 320px; height: 50px; }
.play-side[data-size="r320x100"] .side-card, .play-side[data-size="r320x50"] .side-card { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 14px; }
.play-side[data-size="r320x100"] .side-card__wide, .play-side[data-size="r320x50"] .side-card__wide { display: block; flex: none; height: 100%; width: auto; aspect-ratio: 16 / 9; }
.play-side[data-size="r320x100"] .side-card__text, .play-side[data-size="r320x50"] .side-card__text { flex: 1; min-width: 0; }
.play-side[data-size="r320x100"] .side-card__text strong, .play-side[data-size="r320x50"] .side-card__text strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.play-side[data-size="r320x50"] .side-card__text small, .play-side[data-size="r320x50"] .side-card__sum, .play-side[data-size="r320x100"] .side-card__text small { display: none; }
.play-side[data-size="r320x100"] .side-card__sum { -webkit-line-clamp: 2; font-size: 11px; }
.play-side[data-size="r320x100"] .side-card .pick-card__cta, .play-side[data-size="r320x50"] .side-card .pick-card__cta { align-self: center; min-height: 36px; padding: 6px 10px; font-size: 12px; }
.play-side[data-size="r300x600"] { display: block; width: 300px; height: 600px; }
.play-side[data-size="r160x600"] { display: block; width: 160px; height: 600px; }
.play-side[data-size="r300x250"] { display: block; width: 300px; height: 250px; }
.side-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; padding: 10px; overflow: hidden;
  border: 1px solid rgb(119 103 255 / 34%); border-radius: 18px; color: inherit; text-decoration: none;
  background: radial-gradient(circle at 20% 10%, rgb(85 215 255 / 14%), transparent 40%), linear-gradient(170deg, rgb(119 103 255 / 18%), rgb(8 13 36 / 88%) 70%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 30%); transition: transform .18s, border-color .18s;
}
.side-card:hover, .side-card:focus-visible { transform: translateY(-2px); border-color: rgb(85 215 255 / 60%); }
.side-card img { display: none; width: 100%; min-height: 0; flex: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgb(0 0 0 / 30%); }
.side-card__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.side-card__text small { color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.side-card__text strong { font-size: 1.05rem; letter-spacing: -.015em; }
.side-card__sum { color: var(--ink-soft); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-card .pick-card__cta { align-self: stretch; justify-content: center; }
.play-side[data-size="r300x600"] .side-card__tall, .play-side[data-size="r160x600"] .side-card__tall { display: block; }
.play-side[data-size="r300x250"] .side-card__wide { display: block; }
.play-side[data-size="r160x600"] .side-card__sum, .play-side[data-size="r300x250"] .side-card__sum { display: none; }
.play-side[data-size="r160x600"] .side-card__text strong { font-size: .9rem; }
.play-side[data-size="r300x250"] .side-card { gap: 6px; padding: 8px; }
.stage { --ar: .75; position: relative; width: min(100%, calc((100dvh - var(--header-height) - 124px - min(var(--ad-count, 0), var(--ad-cap, 2)) * var(--ad-h, 0px)) * var(--ar))); aspect-ratio: var(--ar); overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--night-2); box-shadow: var(--shadow); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 全画面 (と、全画面の無い iPhone の「画面いっぱい」): おすすめの欄と作者の行を隠し、上の帯の下を全部ゲームの枠に。
   開始・一時停止・結果の覆いも同じ入れ物の中なので、全画面のまま見える */
.play-shell.is-full {
  position: fixed; inset: 0; z-index: 40; overflow: hidden; background: var(--night);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.play-shell.is-full .play { min-height: 0; height: 100%; padding: 6px 8px; gap: 6px; }
.play-shell.is-full .play-pick, .play-shell.is-full .play-credit { display: none; }
.play-shell.is-full .stage-wrap { flex: 1; min-height: 0; align-items: center; }
.play-shell.is-full .stage {
  width: min(100%, calc((100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * var(--ar)));
  border-radius: 14px;
}
body.play-full { overflow: hidden; }
.full-opt { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 6px 0 2px; font-weight: 700; cursor: pointer; }
.full-opt input { width: 20px; height: 20px; accent-color: var(--accent, #e9b93c); }
.play-credit { margin: 0; text-align: center; text-shadow: 0 1px 5px black; }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgb(5 8 25 / 72%); backdrop-filter: blur(15px); }
.overlay[hidden] { display: none; }
.overlay.solid { background: rgb(5 8 25 / 96%); }
.sheet { width: min(100%, 430px); max-height: 100%; overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, var(--panel-bright), var(--panel)); box-shadow: var(--shadow); }
.sheet h2 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.1; }
.score-big { margin: 8px 0; color: var(--yellow); font-size: clamp(3rem, 14vw, 5rem); font-weight: 950; line-height: .95; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.badge-best { display: inline-flex; padding: 4px 10px; border-radius: 99px; background: var(--yellow); color: var(--night); font-size: .72rem; font-weight: 900; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.stat { padding: 11px; border-radius: 16px; background: rgb(255 255 255 / 7%); }
.stat b { display: block; font-size: 1.2rem; }
.stack { display: grid; gap: 8px; margin-top: 14px; }
.stack .btn { width: 100%; }
.modes { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; border: 0; }
.modes legend { width: 100%; color: var(--ink-soft); font-size: .8rem; }
.mode { position: relative; }
.mode input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mode span { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 15px; border: 2px solid var(--line); border-radius: 99px; font-weight: 850; }
.mode input:checked + span { border-color: var(--yellow); background: rgb(255 213 74 / 15%); }
.mode input:checked + span::before { content: "✓ "; }
.help, .cta { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / 7%); }
.help p, .cta p { margin: 4px 0; }

/* Dialogs and forms */
dialog { width: min(calc(100% - 28px), 470px); padding: 0; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, var(--panel-bright), var(--panel)); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(5 8 25 / 76%); backdrop-filter: blur(10px); }
.dialog-body { padding: clamp(20px, 5vw, 30px); }
.dialog-body h2 { margin: 3px 0 6px; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.035em; }
.auth-kicker { margin: 0; color: var(--cyan); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.auth-lead { margin: 0 0 18px; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.oauth-buttons[hidden] { display: none; }
.btn-google { width: 100%; min-height: 52px; justify-content: center; gap: 10px; padding: 6px 14px; border: 1px solid #747775; background: #fff; color: #1f1f1f; font: 600 14px/20px Arial, sans-serif; }
.btn-google:hover { background: #f8f8f8; }
.g-mark { position: relative; width: 20px; height: 20px; flex: none; overflow: hidden; }
.g-mark img { position: absolute; left: -10px; top: -10px; width: 40px; max-width: none; height: 40px; }
.or-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-soft); font-size: .7rem; white-space: nowrap; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--line); }
.field { display: grid; gap: 5px; margin-bottom: 13px; }
.field label { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.form-error { min-height: 1.4em; margin: 0; color: var(--danger); font-size: .82rem; }
.switch { margin: 12px 0 0; text-align: center; color: var(--ink-soft); font-size: .82rem; }
.mock-oidc { min-height: 100dvh; display: grid; place-items: center; padding-block: 24px; }
.mock-oidc__panel { width: min(100%, 520px); padding: clamp(22px, 5vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, var(--panel-bright), var(--panel)); box-shadow: var(--shadow); }
.mock-oidc h1 { margin: 4px 0 8px; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
.mock-accounts { display: grid; gap: 9px; padding: 0; margin: 22px 0 16px; list-style: none; }
.mock-accounts .btn { width: 100%; justify-content: space-between; text-align: left; }
.mock-accounts .btn::after { content: "→"; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100% - 28px); padding: 11px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--ink); color: var(--night); font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.prose { max-width: 760px; padding-top: 24px; }
.prose h1 { font-size: clamp(2rem, 8vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.prose h2 { margin-top: 30px; }
.site-footer { margin-top: auto; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #060a1d; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-inner nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); }

@media (min-width: 680px) {
  .header-inner { gap: 14px; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark i { width: 22px; height: 22px; border-radius: 8px; }
  .brand-name { font-size: 1rem; }
  .header-nav a[href="/games"] { display: inline-flex; }
  .header-nav .creator-entry { gap: 0; padding-inline: 12px; border: 0; background: transparent; color: var(--ink-soft); }
  .creator-entry__icon, .creator-entry__mobile-label { display: none; }
  .creator-entry__desktop-label, .account-name { display: inline; }
  .account-btn--signed-in { width: auto; height: auto; padding: 8px 15px; }
  .account-btn--login { padding: 8px 15px; font-size: inherit; }
  .discovery-bar { grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); align-items: center; }
  .rail-buttons { display: flex; }
  .game-card--rail { flex-basis: min(36vw, 330px); }
  .game-card--compact { flex-basis: min(30vw, 270px); }
  .mosaic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-card--feature { grid-column: span 2; grid-row: span 2; }
  .game-card--feature .game-card__art, .game-card--feature .game-card__art img { height: 100%; min-height: 335px; }
  .game-card--feature .game-card__art img { object-fit: cover; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .detail-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-highlight { grid-row: span 2; }
  .profile-summary__grid, .profile-fields__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .creator-guest { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
  .creator-head { grid-template-columns: minmax(0, 1fr) auto; }
  .creator-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-fields--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* おすすめ年齢の目安を隠した時 (12 歳以上から上) は、残りの 2 つで並べる */
  .creator-fields--three:has(> .field[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-art-grid { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); align-items: start; }
  .age-picker__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .age-option:last-child:nth-child(odd) { grid-column: auto; }
  .creator-submit { grid-template-columns: minmax(0, 1fr) auto; }
  .creator-submit .btn { width: auto; }
  .submission-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .hero-slide { height: min(71vh, 690px); }
  .hero-slide__shade { background: linear-gradient(90deg, rgb(5 8 25 / 94%) 0%, rgb(5 8 25 / 50%) 46%, transparent 74%), linear-gradient(0deg, rgb(5 8 25 / 58%), transparent 45%); }
  .hero-slide__content { inset: 50% auto auto clamp(40px, 6vw, 92px); width: 46%; transform: translateY(-48%); }
  .hero-slide h1 { max-width: 9ch; }
  .hero-controls { top: auto; bottom: 22px; right: 22px; }
  .detail { grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); }
  .detail-media { position: sticky; top: calc(var(--header-height) + 20px); }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ranking-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .profile-form { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); align-items: start; }
  .profile-form > .profile-actions, .profile-form > .form-error { grid-column: 1/-1; }
  .profile-form > .profile-actions { position: static; width: fit-content; justify-self: end; }
  .creator-form { width: min(100%, 1120px); margin-inline: auto; }
  .submission-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 419px) {
  .hide-narrow { display: none; }
  .brand-copy small { display: none; }
  .hero-controls > [data-carousel-prev], .hero-controls > [data-carousel-next] { display: none; }
  .hero-slide__summary { font-size: .88rem; }
  .mosaic-grid, .catalog-grid { gap: 11px; }
  .game-card--mosaic .game-card__body { grid-template-columns: 1fr; }
  .game-card--mosaic .game-card__creator { display: none; }
  .game-card--mosaic .game-card__facts { gap: 5px; font-size: .62rem; flex-wrap: wrap; }
  .game-card--mosaic .game-card__facts span + span::before { margin-right: 5px; }
  .profile-setup__intro { align-items: flex-start; }
  .profile-setup__spark { width: 54px; height: 54px; border-radius: 18px; }
  .profile-setup__intro h1 { font-size: 1.9rem; }
  .profile-fields, .genre-picker { padding: 14px; border-radius: 22px; }
  .genre-option__tile { min-height: 100px; padding: 11px; }
  .genre-option__label { font-size: .69rem; }
  .profile-form > .profile-actions { justify-content: stretch; border-radius: 22px; }
  .profile-form > .profile-actions .btn { flex: 1 1 auto; }
  .profile-summary__heading { display: grid; }
  .privacy-chip { width: fit-content; }
  .or-divider { gap: 7px; font-size: .64rem; }
  .dialog-actions .btn { padding-inline: 15px; }
  .creator-progress li { min-width: 68px; }
  .creator-step { border-radius: 23px; }
  .creator-step > header { align-items: flex-start; }
  .creator-art-grid { grid-template-columns: minmax(0, 1fr); }
  .upload-card--portrait .file-drop { min-height: 118px; }
  .creator-submit .btn { min-height: 52px; }
}

@media (max-width: 679px) {
  .creator-head h1 { max-width: none; font-size: clamp(2.15rem, 11.5vw, 3.05rem); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- 広告枠 (プレイ画面の上・下の帯)。高さを先に確保して後からずれないようにする。
   いまの中身は自社のゲームの紹介 (おすすめ)。部品の名前に ad を使わない (広告ブロックに隠されるため) ---- */
.play { --ad-h: 68px; }
.play-pick { position: relative; isolation: isolate; width: min(100%, 728px); min-height: 56px; }
.play-pick--bottom { margin-top: 12px; } /* ゲームの操作ボタンと離す (誤タップを防ぐ) */
/* 縦の短い画面 (Safari のバーを除くと 548px ほどの iPhone など) では上の 1 本だけ。2 本だとゲームの枠が 168×224 まで縮む */
@media (max-height: 600px) {
  .play { --ad-cap: 1; }
  .play-pick--bottom { display: none; }
}
.play-pick__label { position: absolute; top: -7px; left: 12px; z-index: 2; padding: 0 7px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 99px; background: var(--night-2); color: var(--ink-soft); font-size: 9px; font-weight: 800; line-height: 15px; letter-spacing: .12em; }
.pick-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; height: 56px; padding: 4px 8px 4px 4px; border: 1px solid rgb(119 103 255 / 34%); border-radius: 14px; background: radial-gradient(circle at 15% 20%, rgb(85 215 255 / 13%), transparent 32%), linear-gradient(100deg, rgb(119 103 255 / 13%), rgb(255 255 255 / 4%) 60%, rgb(255 213 74 / 8%)); color: inherit; text-decoration: none; box-shadow: 0 10px 28px rgb(0 0 0 / 16%); transition: transform .18s, border-color .18s, background .18s; }
.pick-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px rgb(255 255 255 / 9%); pointer-events: none; }
.pick-card:hover, .pick-card:focus-visible { transform: translateY(-1px); border-color: rgb(85 215 255 / 55%); background-color: rgb(119 103 255 / 12%); }
.pick-card img { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; flex: none; box-shadow: 0 7px 18px rgb(0 0 0 / 28%); }
.pick-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pick-card__text small { overflow: hidden; color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pick-card__text strong { overflow: hidden; font-size: .86rem; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.pick-card__cta { flex: none; min-height: 40px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--yellow, #ffd447); color: var(--night, #080d24); font-weight: 900; font-size: 13px; box-shadow: 0 7px 18px rgb(255 213 74 / 16%); }
.pick-card__cta i { font-style: normal; }
@media (min-width: 1024px) {
  .play { --ad-h: 108px; }
  .play-pick { min-height: 90px; }
  .pick-card { height: 90px; padding: 8px 20px 8px 8px; gap: 16px; }
  .pick-card img { width: 74px; height: 74px; }
  .pick-card__text small { font-size: 10px; }
  .pick-card__text strong { font-size: 20px; }
  .pick-card__cta { min-height: 48px; padding-inline: 20px; font-size: 15px; }
}
