/*
 * HUBBY Editorial System — 2026-08
 *
 * This layer intentionally sits after the original stylesheet.  The existing
 * HTML, copy and application mock-ups stay intact; only their visual rhythm is
 * re-composed into a more personal, community-made official site.
 */

:root {
  --ink: #10272f;
  --muted: #5c7077;
  --paper: #f7f4ed;
  --white: #fffdfa;
  --cyan: #13c3df;
  --cyan-deep: #087e90;
  --cyan-soft: #dff7f8;
  --orange: #ff7900;
  --orange-soft: #fff0dc;
  --navy: #092932;
  --line: rgba(16, 39, 47, 0.17);
  --line-strong: rgba(16, 39, 47, 0.32);
  --shadow: 0 22px 60px rgba(9, 41, 50, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --content: 1240px;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 39, 47, 0.025) 1px, transparent 1px) 0 0 / 100% 26px,
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0.015em;
}

::selection {
  color: var(--navy);
  background: rgba(19, 195, 223, 0.34);
}

img {
  height: auto;
}

.wrap {
  width: min(calc(100% - 64px), var(--content));
}

.page-main {
  background: var(--paper);
}

/* Header: quiet navigation with one confident brand mark. */
.site-header {
  border-bottom: 1px solid rgba(9, 41, 50, 0.13);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(130%);
}

.header-inner {
  width: min(calc(100% - 64px), var(--content));
  min-height: 76px;
  gap: 42px;
}

.brand {
  gap: 11px;
  font-size: 1.14rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(19, 195, 223, 0.19);
}

.site-nav {
  justify-content: flex-end;
  gap: 22px;
  overflow: visible;
}

.site-nav a {
  position: relative;
  padding: 26px 0 22px;
  border-radius: 0;
  color: #3f555d;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Editorial typography */
.page-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  color: var(--cyan-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.page-kicker::after,
.section-kicker::after {
  width: 46px;
  height: 1px;
  border-radius: 0;
  background: currentColor;
  opacity: 0.48;
}

.page-title,
.section-title,
.hero-title,
.home-hero h1,
.final-cta-title {
  font-weight: 900;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.section-title {
  max-width: 900px;
  font-size: clamp(2.3rem, 4.7vw, 4.8rem);
  line-height: 1.08;
}

.section-title > span,
.hero-title > span,
.final-cta-title > span {
  width: fit-content;
}

.lead,
.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 2;
}

.section {
  position: relative;
  padding: clamp(88px, 9vw, 132px) 0;
}

.section + .section {
  border-top: 1px solid rgba(16, 39, 47, 0.09);
}

.surface {
  background: #edf8f7;
}

.button {
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: none;
}

.button-orange {
  color: #092932;
  background: var(--orange);
}

.button-orange:hover {
  background: #ff921f;
}

.button-dark {
  background: var(--navy);
}

/* Home hero: an app made by a real community, not a generic landing page. */
.home-hero {
  padding: 0;
  color: var(--white);
  background: var(--navy);
}

.home-hero::before,
.home-hero::after {
  opacity: 0.42;
}

.home-hero-grid {
  min-height: min(790px, calc(100svh - 76px));
  padding-block: clamp(72px, 8vw, 118px) 80px;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  gap: clamp(46px, 6vw, 96px);
}

.home-hero-copy {
  max-width: 670px;
}

.hero-badges {
  margin-bottom: 32px;
  gap: 9px;
}

.hero-badges > span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 0.69rem;
  letter-spacing: 0.09em;
}

.home-hero .section-kicker {
  margin-bottom: 24px;
  color: var(--cyan);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(4.25rem, 6.2vw, 6.9rem);
  line-height: 0.98;
}

.home-hero h1 span,
.home-hero h1 em {
  display: block;
}

.home-hero h1 em {
  margin-top: 8px;
  color: var(--cyan);
  font-style: normal;
}

.home-hero-lead {
  max-width: 600px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 2;
}

.hero-actions {
  margin-top: 34px;
  gap: 10px;
}

.hero-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.77rem;
}

.hero-product {
  position: relative;
  align-self: center;
  padding: 48px 0 0 36px;
}

.hero-product::before {
  inset: 7% 7% 8% 0;
  border: 1px solid rgba(19, 195, 223, 0.34);
  border-radius: 34px;
  transform: rotate(2deg);
}

.app-preview-label {
  top: 8px;
  left: 8px;
  gap: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.app-preview-label b {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--cyan);
}

.hero-product .app-shell {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: #071d25;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.31);
  transform: none;
}

.app-bar {
  padding-inline: 24px;
}

.recruitment-card-featured {
  border-radius: 20px;
}

.app-flow {
  border-radius: 14px;
}

.floating-message {
  right: -28px;
  bottom: 18px;
  border: 1px solid rgba(16, 39, 47, 0.13);
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.hero-marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

.hero-marquee-track span {
  padding-block: 13px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

/* Home sections */
.section-heading-row {
  align-items: end;
  gap: 80px;
}

.section-heading-row > p {
  max-width: 440px;
  margin-bottom: 8px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  line-height: 1.9;
}

.experience-section {
  background: #f7f4ed;
}

.experience-grid {
  margin-top: 62px;
  align-items: start;
  grid-template-columns: 0.92fr 1.08fr 0.92fr;
  gap: 18px;
}

.experience-card {
  min-height: 450px;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: none;
}

.experience-card:nth-child(2) {
  margin-top: 34px;
  color: var(--white);
  background: var(--cyan-deep);
}

.experience-card:nth-child(3) {
  margin-top: 8px;
  background: var(--orange-soft);
}

.experience-card h3 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  letter-spacing: -0.035em;
}

.experience-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.experience-no {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.recruitment-showcase {
  background: #fffdfa;
}

.recruitment-carousel {
  margin-top: 48px;
}

.recruitment-preview-card {
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(9, 41, 50, 0.08);
}

.wide-link {
  border-radius: 12px;
}

.naming-section {
  color: var(--white);
  background: var(--navy);
}

.naming-grid {
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
}

.naming-section .section-kicker,
.naming-section .section-title {
  color: var(--white);
}

.naming-section .section-kicker {
  color: var(--cyan);
}

.naming-section .section-intro {
  color: rgba(255, 255, 255, 0.63);
}

.name-parts {
  gap: 8px;
}

.name-parts > div {
  min-height: 112px;
  padding: 25px 26px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.name-parts > div:nth-child(2) {
  color: var(--navy);
  background: var(--cyan-soft);
}

.name-parts strong {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.games-home-section {
  background: var(--orange-soft);
}

.games-home-grid {
  gap: clamp(48px, 8vw, 112px);
}

.game-icon-grid {
  gap: 10px;
  transform: rotate(1.4deg);
}

.game-icon-grid span {
  aspect-ratio: 1.25 / 1;
  border: 1px solid rgba(16, 39, 47, 0.11);
  border-radius: 14px;
  background: var(--white);
  box-shadow: none;
  transform: none;
}

.explore-section {
  background: #f7f4ed;
}

.explore-list {
  margin-top: 56px;
  border-top: 1px solid var(--line-strong);
}

.explore-list a {
  min-height: 142px;
  padding: 28px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: 74px minmax(0, 1fr) 48px;
}

.explore-list a:hover {
  color: var(--ink);
  background: rgba(19, 195, 223, 0.075);
  transform: none;
}

.explore-list > a > span {
  color: var(--orange);
  font-size: 1.9rem;
}

.explore-list h3 {
  margin: 0 0 5px;
  font-size: 1.55rem;
}

.explore-list p {
  margin: 0;
  color: var(--muted);
}

.story-home-section {
  background: #eaf6f5;
}

.story-home-grid {
  gap: clamp(58px, 9vw, 124px);
  align-items: center;
}

.story-home-art {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: none;
  transform: rotate(-1.5deg);
}

.story-home-art::before {
  border-radius: 13px;
}

.story-home-art img {
  border-radius: 10px;
}

.story-home-art span {
  color: var(--cyan-deep);
  font-size: 0.68rem;
}

.final-cta-section {
  padding-block: 110px;
  background: var(--paper);
}

.final-cta {
  padding: clamp(48px, 6vw, 78px);
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: none;
}

.final-cta-title {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 1.06;
}

/* Subpage system */
.subpage-v3 {
  --page-accent: var(--cyan);
  --page-soft: #dff7f8;
}

.subpage-games,
.subpage-guide {
  --page-accent: var(--orange);
  --page-soft: #fff0dc;
}

.subpage-beta {
  --page-accent: #35d0e4;
  --page-soft: #ddf8fb;
}

.subpage-support {
  --page-accent: #14c5df;
  --page-soft: #e1f8f8;
}

.subpage-operator {
  --page-accent: #ff7f79;
  --page-soft: #fff0ed;
}

.subpage-hero {
  padding: 32px 0 0;
  background: var(--paper);
}

.subpage-hero::before,
.subpage-hero::after {
  display: none;
}

.subpage-hero-grid {
  min-height: 620px;
  padding: clamp(52px, 6vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.025), transparent 50%),
    var(--navy);
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.87fr);
  gap: clamp(50px, 7vw, 100px);
  overflow: hidden;
}

.subpage-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.subpage-hero .page-kicker {
  color: var(--page-accent);
}

.subpage-hero .page-title {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--white);
  font-size: clamp(3.45rem, 6vw, 6.7rem);
  line-height: 0.98;
}

.subpage-hero .hero-title {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--white);
  font-size: clamp(2.5rem, 4vw, 4.65rem);
  line-height: 1.08;
}

.subpage-hero .lead {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 2;
}

.subpage-visual {
  align-self: center;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.subpage-visual::before {
  border-radius: 20px;
  background: var(--page-soft);
  transform: rotate(2.2deg);
}

.about-party-card,
.games-visual-face,
.beta-visual-face,
.guide-visual-face,
.support-visual,
.operator-logo {
  border-radius: 18px;
}

.about-party-card,
.games-visual-face,
.guide-visual-face,
.operator-logo {
  background: var(--white);
}

.visual-flow {
  border-radius: 12px;
}

.games-visual-face,
.guide-visual-face,
.beta-visual-face {
  transform: none;
}

.beta-visual-face {
  color: var(--navy);
  background: #6bdce8;
}

.support-visual-wrap::before {
  background: #ffffff;
}

.support-visual {
  background: var(--cyan);
}

.operator-visual::before {
  background: #ff9c96;
}

.operator-logo {
  overflow: hidden;
}

.operator-logo img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  object-position: center;
}

.operator-badge {
  border: 1px solid rgba(16, 39, 47, 0.13);
  border-radius: 14px;
  color: var(--ink);
  background: var(--cyan-soft);
}

/* Common information blocks lose the repeated template-card feeling. */
.feature-grid,
.info-grid,
.support-grid,
.step-grid,
.showcase-grid {
  margin-top: 54px;
  gap: 16px;
}

.feature-grid,
.info-grid,
.support-grid {
  grid-template-columns: repeat(12, 1fr);
}

.feature-card,
.info-card,
.support-card,
.step-card,
.showcase-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.76);
  box-shadow: none;
}

.feature-card,
.info-card,
.support-card {
  grid-column: span 4;
}

.feature-card {
  min-height: 360px;
  padding: 30px;
}

.feature-card:nth-child(2) {
  margin-top: 34px;
  color: var(--white);
  background: var(--cyan-deep);
}

.feature-card:nth-child(3) {
  margin-top: 10px;
  background: var(--orange-soft);
}

.feature-card:hover,
.info-card:hover,
.support-card:hover,
.step-card:hover,
.showcase-panel:hover {
  transform: none;
}

.feature-icon {
  border-radius: 10px;
}

.journey-grid {
  gap: 18px;
}

.journey {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: none;
}

.journey:first-child {
  color: var(--white);
  background: var(--navy);
}

.journey li {
  border-radius: 9px;
}

.journey li + li::before {
  color: var(--orange);
}

.related-panel {
  display: grid;
  min-height: 310px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 50px;
}

.related-panel .section-kicker,
.related-panel h2,
.related-panel p {
  grid-column: 1;
}

.related-panel .button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.story-grid {
  align-items: center;
  gap: clamp(52px, 8vw, 110px);
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.story-art {
  aspect-ratio: 1 / 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: none;
  transform: rotate(-1deg);
}

.story-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.story-copy p:not(.section-kicker) {
  max-width: 720px;
  color: var(--muted);
  line-height: 2;
}

.page-end {
  border-top: 0 !important;
  background: var(--paper);
}

.dark-callout {
  padding: clamp(48px, 6vw, 72px);
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: none;
}

.dark-callout .section-kicker {
  color: var(--cyan);
}

.dark-callout h2 {
  max-width: 820px;
  font-size: clamp(2.25rem, 4vw, 4.35rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.dark-callout p {
  color: rgba(255, 255, 255, 0.62);
}

.button-light {
  border-radius: 10px;
}

/* Games */
.game-carousel-wrap {
  margin-top: 48px;
}

.game-carousel {
  gap: 12px;
  padding-block: 6px 20px;
}

.game-card {
  flex-basis: 270px;
  min-height: 310px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: none;
}

.game-card:hover {
  border-color: var(--cyan-deep);
  transform: none;
}

.game-tile {
  border-radius: 10px;
}

.carousel-controls {
  margin-top: 13px;
}

.carousel-controls button {
  border-radius: 9px;
}

.showcase-grid {
  grid-template-columns: 1.07fr 0.93fr;
}

.showcase-panel {
  min-height: 320px;
  padding: 38px;
}

.showcase-panel:nth-child(1) {
  color: var(--white);
  background: var(--navy);
}

.showcase-panel:nth-child(2) {
  margin-top: 44px;
  background: var(--orange-soft);
}

.showcase-panel:nth-child(3) {
  margin-top: -16px;
  margin-left: 11%;
  background: var(--cyan-soft);
}

.showcase-number {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--orange);
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.candidate-marquee {
  padding-block: 26px 2px;
}

.candidate-card {
  border: 1px solid rgba(16, 39, 47, 0.13);
  border-radius: 13px;
  box-shadow: none;
}

/* Beta, guide, support and operator */
.info-card,
.support-card {
  min-height: 280px;
  padding: 31px;
}

.info-card:nth-child(2) {
  margin-top: 28px;
  background: var(--cyan-soft);
}

.info-card:nth-child(3) {
  margin-top: 7px;
  background: var(--orange-soft);
}

.info-card::before,
.support-card::before {
  display: none;
}

.support-grid .support-card:nth-child(2) {
  margin-top: 28px;
  color: var(--white);
  background: var(--cyan-deep);
}

.support-grid .support-card:nth-child(3) {
  margin-top: 7px;
  background: var(--orange-soft);
}

.support-card strong {
  color: var(--ink);
}

.support-grid .support-card:nth-child(2) strong {
  color: var(--white);
}

.notice {
  margin-top: 26px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 9px;
  background: var(--white);
}

.mail-form {
  max-width: 820px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: none;
}

.mail-form input,
.mail-form select,
.mail-form textarea {
  border-radius: 8px;
  background: #fbfaf6;
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card {
  min-height: 300px;
  padding: 34px;
}

.step-card:nth-child(2),
.step-card:nth-child(3) {
  background: var(--orange-soft);
}

.step-card:nth-child(4) {
  color: var(--white);
  background: var(--cyan-deep);
}

.account-delete-content {
  padding: 30px 0 0;
  border-top: 1px solid var(--line-strong);
}

.subpage-operator .surface {
  background: #fff1ed;
}

.subpage-operator .info-card:nth-child(1) {
  background: var(--cyan-soft);
}

.subpage-operator .info-card:nth-child(2) {
  background: var(--white);
}

.subpage-operator .info-card:nth-child(3) {
  background: var(--orange-soft);
}

/* Legal pages read like a carefully typeset document. */
.legal-page {
  padding: 72px 0 110px;
  background: var(--paper);
}

.legal-page > .wrap {
  width: min(calc(100% - 64px), 1040px);
}

.legal-sheet {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-intro {
  padding: 50px 0 44px;
  border-bottom: 3px solid var(--ink);
  text-align: left;
}

.legal-intro .eyebrow {
  color: var(--cyan-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-intro h1 {
  margin-block: 10px 14px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: 58px 0 0;
}

.legal-document h2 {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

.legal-document p,
.legal-document li {
  color: #435960;
  line-height: 2;
}

/* Footer */
.site-footer {
  margin: 0;
  padding: 72px 0 28px;
  color: rgba(255, 255, 255, 0.7);
  background: #061f27;
}

.footer-top {
  align-items: start;
  gap: clamp(70px, 10vw, 150px);
}

.footer-brand {
  gap: 10px;
  color: var(--white);
  font-size: 1.25rem;
}

.footer-brand img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
}

.footer-tagline {
  margin-top: 22px;
  color: var(--white);
  font-size: 0.98rem;
}

.footer-disclaimer {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.footer-links {
  gap: 0 38px;
}

.footer-links a {
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.79rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.71rem;
}

/* Tablet */
@media (max-width: 1020px) {
  .header-inner,
  .wrap {
    width: min(calc(100% - 42px), var(--content));
  }

  .site-nav {
    gap: 13px;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .home-hero-grid,
  .subpage-hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
  }

  .home-hero-grid {
    min-height: 700px;
  }

  .home-hero h1 {
    font-size: clamp(3.6rem, 7vw, 5.2rem);
  }

  .subpage-hero-grid {
    min-height: 550px;
    padding: 46px;
  }

  .subpage-hero .page-title {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .experience-card {
    padding-inline: 24px;
  }

  .feature-card,
  .info-card,
  .support-card {
    padding: 26px;
  }
}

/* Mobile is deliberately re-composed, not merely shrunk. */
@media (max-width: 720px) {
  :root {
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 12px;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
    background: var(--paper);
  }

  .wrap,
  .header-inner,
  .legal-page > .wrap {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    background: rgba(19, 195, 223, 0.96);
    border-bottom: 1px solid rgba(9, 41, 50, 0.14);
  }

  .header-inner {
    position: relative;
    justify-content: center;
    min-height: 66px;
  }

  .brand {
    position: relative;
    z-index: 3;
    color: var(--orange);
    font-size: 1.22rem;
    font-weight: 950;
    text-shadow:
      -1px -1px 0 #fff,
      1px -1px 0 #fff,
      -1px 1px 0 #fff,
      1px 1px 0 #fff;
  }

  .brand img {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    z-index: 4;
    right: 4px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 11px 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    place-content: center;
    gap: 5px;
  }

  .menu-toggle span {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: var(--navy);
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    top: 66px;
    right: 12px;
    left: 12px;
    display: grid;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    color: var(--white);
    background: rgba(6, 31, 39, 0.97);
    box-shadow: 0 24px 55px rgba(6, 31, 39, 0.3);
    counter-reset: mobile-nav;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    gap: 0;
  }

  .menu-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    display: grid;
    min-height: 52px;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    grid-template-columns: 34px 1fr;
    align-items: center;
    counter-increment: mobile-nav;
  }

  .site-nav a::before {
    color: var(--cyan);
    content: "0" counter(mobile-nav);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"] {
    color: var(--white);
    background: rgba(19, 195, 223, 0.12);
  }

  .section {
    padding: 64px 0;
  }

  .section-kicker,
  .page-kicker {
    margin-bottom: 16px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .section-kicker::after,
  .page-kicker::after {
    width: 28px;
  }

  .section-title {
    max-width: 100%;
    font-size: clamp(2rem, 10.2vw, 2.85rem);
    line-height: 1.12;
    letter-spacing: -0.05em;
  }

  .lead,
  .section-intro {
    font-size: 0.91rem;
    line-height: 1.85;
  }

  .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 0.82rem;
  }

  /* Home mobile */
  .home-hero-grid {
    min-height: 0;
    padding: 56px 0 44px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .home-hero-copy {
    max-width: none;
  }

  .hero-badges {
    margin-bottom: 25px;
  }

  .hero-badges > span {
    padding: 6px 9px;
    font-size: 0.61rem;
  }

  .home-hero h1 {
    font-size: clamp(2.85rem, 13.5vw, 4.05rem);
    line-height: 1.02;
  }

  .home-hero-lead {
    margin-top: 24px;
    font-size: 0.88rem;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    margin-top: 27px;
    gap: 8px;
  }

  .hero-note {
    margin-top: 16px;
    font-size: 0.67rem;
  }

  .hero-product {
    width: calc(100% + 8px);
    margin-left: -4px;
    padding: 38px 8px 0 0;
  }

  .hero-product::before {
    inset: 4% 0 3% 4%;
    border-radius: 23px;
  }

  .app-preview-label {
    top: 0;
    left: 0;
    font-size: 0.61rem;
  }

  .app-preview-label b {
    padding: 6px 8px;
  }

  .hero-product .app-shell {
    border-radius: 22px;
  }

  .floating-message {
    right: 6px;
    bottom: -8px;
    max-width: 230px;
    padding: 9px 11px;
  }

  .hero-marquee-track span {
    padding-block: 11px;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    margin-top: 22px;
    padding: 0;
    border: 0;
    font-size: 0.84rem;
  }

  .experience-grid {
    display: grid;
    margin-top: 38px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .experience-card,
  .experience-card:nth-child(2),
  .experience-card:nth-child(3) {
    min-height: 0;
    margin: 0;
    padding: 22px;
    border-radius: 14px;
  }

  .experience-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 15px;
  }

  .experience-no {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }

  .experience-icon {
    width: 48px;
    height: 48px;
    grid-row: 2 / span 2;
  }

  .experience-card h3 {
    margin: 1px 0 5px;
    font-size: 1.32rem;
  }

  .experience-card > p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.7;
  }

  .mini-filter,
  .mini-chat,
  .mini-call {
    display: none;
  }

  .recruitment-showcase .section-title {
    font-size: 2.45rem;
  }

  .recruitment-preview-card {
    border-radius: 13px;
  }

  .naming-grid,
  .games-home-grid,
  .story-home-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .name-parts > div {
    min-height: 82px;
    padding: 18px;
  }

  .name-parts strong {
    font-size: 1.55rem;
  }

  .game-icon-grid {
    transform: rotate(0.7deg);
  }

  .game-icon-grid span {
    border-radius: 11px;
  }

  .explore-list {
    margin-top: 36px;
  }

  .explore-list a {
    min-height: 0;
    padding: 22px 0;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .explore-list > a > span {
    font-size: 1.1rem;
  }

  .explore-list small {
    font-size: 0.56rem;
  }

  .explore-list h3 {
    font-size: 1.08rem;
  }

  .explore-list p {
    display: none;
  }

  .story-home-grid {
    display: flex;
    flex-direction: column;
  }

  .story-home-art {
    order: 2;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 58px 14px 14px;
    border-radius: 15px;
  }

  .story-home-art::before {
    inset: 10px;
  }

  .story-home-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .story-home-art span {
    top: 23px;
    left: 24px;
    font-size: 0.58rem;
  }

  .final-cta-section {
    padding-block: 64px;
  }

  .final-cta {
    display: block;
    padding: 28px 23px;
    border-radius: 15px;
  }

  .final-cta-title {
    font-size: 2.3rem;
  }

  .final-cta-actions {
    display: grid;
    margin-top: 28px;
    gap: 8px;
  }

  /* Subpages mobile */
  .subpage-hero {
    padding-top: 14px;
  }

  .subpage-hero-grid {
    width: calc(100% - 20px);
    min-height: 0;
    padding: 38px 22px 30px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .subpage-hero .page-title {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .subpage-hero .hero-title {
    margin-bottom: 20px;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .subpage-hero .lead {
    font-size: 0.84rem;
    line-height: 1.8;
  }

  .subpage-visual {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    justify-self: center;
  }

  .subpage-visual::before {
    border-radius: 15px;
    transform: rotate(1.2deg);
  }

  .about-party-card,
  .games-visual-face,
  .beta-visual-face,
  .guide-visual-face,
  .support-visual,
  .operator-logo {
    border-radius: 14px;
  }

  .about-party-card {
    padding: 19px;
  }

  .visual-flow {
    margin-top: 10px;
  }

  .games-visual-face,
  .beta-visual-face,
  .guide-visual-face {
    padding: 22px;
  }

  .support-visual {
    padding: 16px;
  }

  .support-bubble {
    padding: 13px;
    border-radius: 11px;
  }

  .support-bubble span {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .support-bubble p {
    font-size: 0.76rem;
  }

  .subpage-operator .operator-logo {
    aspect-ratio: 1 / 1;
  }

  .subpage-operator .operator-logo img {
    padding: 12px;
  }

  .operator-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 14px);
    margin: -26px auto 0;
    padding: 17px;
    border-radius: 12px;
  }

  .feature-grid,
  .info-grid,
  .support-grid,
  .step-grid,
  .showcase-grid {
    display: grid;
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card,
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .info-card,
  .info-card:nth-child(2),
  .info-card:nth-child(3),
  .support-card,
  .support-grid .support-card:nth-child(2),
  .support-grid .support-card:nth-child(3),
  .step-card,
  .showcase-panel,
  .showcase-panel:nth-child(2),
  .showcase-panel:nth-child(3) {
    min-height: 0;
    margin: 0;
    padding: 22px;
    border-radius: 13px;
    grid-column: auto;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 0 14px;
  }

  .feature-card .card-label {
    grid-column: 1 / -1;
    margin-bottom: 13px;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    grid-row: 2 / span 2;
  }

  .feature-card h3,
  .info-card h3,
  .support-card h3,
  .step-card h3,
  .showcase-panel h3 {
    margin-block: 0 6px;
    font-size: 1.2rem;
  }

  .feature-card p,
  .info-card p,
  .support-card p,
  .step-card p,
  .showcase-panel p {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .info-card .showcase-number,
  .step-card .showcase-number,
  .showcase-panel .showcase-number {
    display: block;
    margin-bottom: 14px;
  }

  .journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .journey {
    padding: 22px;
    border-radius: 13px;
  }

  .journey h3 {
    font-size: 1.25rem;
  }

  .journey li {
    padding: 13px 12px;
    font-size: 0.77rem;
  }

  .related-panel {
    display: block;
    min-height: 0;
    padding: 27px 22px;
    border-radius: 14px;
  }

  .related-panel .button {
    margin-top: 20px;
  }

  .story-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  .subpage-v3 .story-art {
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1 / 1;
    padding: 12px;
    border-radius: 15px;
  }

  .subpage-v3 .story-art img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: contain;
  }

  .story-copy p:not(.section-kicker) {
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .dark-callout {
    display: block;
    padding: 28px 23px;
    border-radius: 15px;
  }

  .dark-callout h2 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  .dark-callout p {
    font-size: 0.8rem;
  }

  .dark-callout .button {
    margin-top: 22px;
  }

  .game-card {
    flex-basis: min(74vw, 255px);
    min-height: 245px;
    padding: 20px;
    border-radius: 13px;
  }

  .carousel-controls {
    justify-content: flex-end;
  }

  .candidate-card {
    border-radius: 11px;
  }

  .notice {
    padding: 21px;
    border-radius: 8px;
  }

  .mail-form {
    padding: 22px;
    border-radius: 13px;
  }

  .account-delete-content {
    display: block;
  }

  .account-delete-content .button {
    margin-top: 18px;
  }

  .page-main > .page-end:last-child,
  .page-main > .section:last-child {
    padding-bottom: 48px;
  }

  /* Legal mobile */
  .legal-page {
    padding: 34px 0 70px;
  }

  .legal-intro {
    padding: 28px 0 30px;
  }

  .legal-intro h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .legal-document {
    padding-top: 28px;
  }

  .legal-document h2 {
    margin-top: 36px;
    padding-top: 18px;
    font-size: 1.05rem;
  }

  .legal-document p,
  .legal-document li {
    font-size: 0.82rem;
    line-height: 1.85;
  }

  /* Compact footer with no empty band above it. */
  .site-footer {
    padding: 38px 0 18px;
  }

  .footer-top {
    display: block;
  }

  .footer-brand img {
    width: 38px;
    height: 38px;
  }

  .footer-brand {
    font-size: 1.05rem;
  }

  .footer-tagline {
    margin-top: 16px;
    font-size: 0.83rem;
  }

  .footer-disclaimer {
    margin-top: 10px;
    font-size: 0.64rem;
    line-height: 1.65;
  }

  .footer-links {
    display: grid;
    margin-top: 23px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .footer-links a {
    padding: 6px 0;
    font-size: 0.7rem;
  }

  .footer-bottom {
    display: block;
    margin-top: 23px;
    padding-top: 13px;
    font-size: 0.61rem;
  }

  .footer-bottom span + span {
    display: block;
    margin-top: 3px;
  }

  .mobile-effects .mobile-reveal {
    transform: translateY(14px);
    opacity: 0;
    transition: opacity 520ms ease, transform 520ms ease;
  }

  .mobile-effects .mobile-reveal.is-visible {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 26px);
  }

  .home-hero h1 {
    font-size: 2.75rem;
  }

  .subpage-hero-grid {
    width: calc(100% - 14px);
    padding-inline: 18px;
  }

  .subpage-hero .page-title {
    font-size: 2.65rem;
  }

  .subpage-hero .hero-title,
  .section-title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after,
  .site-nav,
  .mobile-reveal {
    transition: none;
  }
}
