/* Game palette: vivid orange + deep navy/indigo + sky blue. */
:root {
  --ink: #151b3f;
  --muted: #596684;
  --cream: #edf8ff;
  --paper: #fbfdff;
  --green: #3437a8;
  --green-dark: #101842;
  --lime: #8ee7ff;
  --orange: #ff6b00;
  --line: #d9e6f2;
  --shadow: 0 18px 50px rgba(22, 35, 92, .14);
}

body { background: var(--paper); }
.site-header { background: rgba(251,253,255,.94); border-bottom-color: rgba(25,38,92,.1); }
.header-home { color: var(--green-dark); background: #fff; }
.hero { min-height: 100svh; background: var(--green-dark); }
.hero-shade { background: transparent; }
.hero-media img,
.hero-media video,
.event-single-media img { filter: none !important; opacity: 1; }
.hero-content,
.event-single-heading { text-shadow: 0 2px 14px rgba(3,8,34,.78); }
.hero-content {
  width: min(calc(100% - 28px), 680px);
  margin: 0 auto 24px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(142,231,255,.28);
  border-radius: 24px;
  background: rgba(9,18,58,.64);
  box-shadow: 0 18px 52px rgba(2,7,30,.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}
.hero--media-only .hero-content { width: min(calc(100% - 32px), 430px); padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero--media-only .hero-button { min-height: 64px; justify-content: center; gap: 18px; border: 2px solid rgba(255,255,255,.88); border-radius: 18px; font-size: 1.08rem; letter-spacing: .06em; box-shadow: 0 12px 32px rgba(5,9,37,.42), inset 0 1px 0 rgba(255,255,255,.28); }
.event-single-heading {
  width: min(calc(100% - 28px), 680px);
  margin: 0 auto 24px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(142,231,255,.28);
  border-radius: 24px;
  background: rgba(9,18,58,.68);
  box-shadow: 0 18px 52px rgba(2,7,30,.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.eyebrow { color: #111842; text-shadow: none; background: var(--lime); }
.section-kicker { color: #3a42b3; }

.hero .primary-button,
.event-start,
.mobile-cta a {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 10px 28px rgba(255,107,0,.3);
}
.hero .primary-button:hover,
.event-start:hover { background: #e75600; }
.event-card-link,
.ggss-event-card > div > a {
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 24px rgba(52,55,168,.22);
}
.event-card-link:hover,
.ggss-event-card > div > a:hover { background: #252887; }
.events-more a,
.back-link a,
.event-card-facts dt,
.event-details dt { color: var(--green); }
.event-card-label,
.ggss-event-label { color: #e95d00; }

.events-section { position: relative; width: min(calc(100% - 24px), 1120px); max-width: none; margin: 26px auto 70px; padding: clamp(28px, 6vw, 58px); overflow: hidden; color: #fff; border: 1px solid rgba(142,231,255,.28); border-radius: 30px; background: radial-gradient(circle at 100% 0,rgba(68,189,233,.26),transparent 35%),linear-gradient(145deg,#101842,#262b87 62%,#3437a8); box-shadow: 0 24px 60px rgba(16,24,66,.25); }
.events-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(circle,#8ee7ff 1px,transparent 1.5px); background-size: 24px 24px; }
.events-section > * { position: relative; z-index: 1; }
.events-section .section-kicker { color: #8ee7ff; }
.events-section > h2 { font-size: clamp(2rem,7vw,3.4rem); text-shadow: 0 3px 18px rgba(0,0,0,.3); }
.events-section .ggss-event-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; width: 100%; margin: 0; }
.events-section .ggss-event-card,
.events-section .event-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: #151b3f; border: 1px solid rgba(142,231,255,.36); border-radius: 22px; background: #fbfdff; box-shadow: 0 14px 34px rgba(2,7,30,.32); transition: transform .2s ease, box-shadow .2s ease; }
.events-section .ggss-event-image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none; background: linear-gradient(135deg,#2637a5,#44bde9); }
.events-section .ggss-event-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.events-section .ggss-event-image--placeholder { display: grid; place-items: center; color: rgba(255,255,255,.45); font: 900 2.5rem/1 Georgia,serif; }
.events-section .ggss-event-card > div { display: flex; flex: 1; flex-direction: column; padding: clamp(18px,4vw,25px); }
.events-section .ggss-event-card h3 { margin: 4px 0 10px; color: #17233d; font-size: 1.3rem; line-height: 1.35; }
.events-section .ggss-event-card p { margin-top: 8px; color: #596684; line-height: 1.65; }
.events-section .ggss-event-card .ggss-event-label { margin: 0; color: #e95d00; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.events-section .ggss-event-card .ggss-event-period { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 800; }
.events-section .ggss-event-card > div > a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-top: 14px; padding: 11px 16px; color: #fff; font-weight: 900; text-decoration: none; border-radius: 15px; background: linear-gradient(135deg,#ff6b00,#f05400); }
.events-section .ggss-event-card:hover,
.events-section .event-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(2,7,30,.42); }
.events-section .events-more { text-align: center; }
.events-section .events-more a { display: inline-flex; align-items: center; gap: 16px; min-height: 54px; padding: 12px 22px; color: #fff; text-decoration: none; border: 2px solid #8ee7ff; border-radius: 16px; background: rgba(16,24,66,.62); box-shadow: 0 8px 22px rgba(2,7,30,.3); }
.events-section .events-more a:hover { background: #3437a8; transform: translateY(-2px); }
.primary-button,
.event-card-link,
.ggss-event-card > div > a,
.mobile-cta a { border-radius: 16px; letter-spacing: .04em; box-shadow: 0 9px 0 rgba(16,24,66,.24),0 15px 28px rgba(16,24,66,.2); }
.primary-button:active,
.event-card-link:active,
.ggss-event-card > div > a:active { transform: translateY(3px); box-shadow: 0 4px 0 rgba(16,24,66,.24),0 8px 16px rgba(16,24,66,.18); }
@media (min-width: 700px) { .events-section .ggss-event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1000px) { .events-section .ggss-event-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }

.guide { background: var(--cream); }
.guide-card:nth-child(1) .step-icon { background: #8ee7ff; }
.guide-card:nth-child(2) .step-icon { background: #c5c8ff; }
.guide-card:nth-child(3) .step-icon { background: #ffe0c7; }
.guide-dots i.active { background: var(--green); }
.notice-icon { color: #27339d; background: #e5f7ff; }
.game-help { background: #e7f6ff; }
.game-shell .ggss-recovery { background: #eaf8ff; }

.final-cta { background: linear-gradient(135deg,#101842 0%,#3437a8 58%,#4056c8 100%); }
.final-cta .section-kicker { color: var(--lime); }
.final-cta .primary-button { background: var(--orange); box-shadow: 0 10px 28px rgba(4,9,36,.3); }
.site-footer { background: #0a102f; }
.event-card-image { background: linear-gradient(135deg,#2637a5,#44bde9); }
.event-card-image img,
.event-card-placeholder { aspect-ratio: 16 / 9; }
.hero-placeholder { background: radial-gradient(circle at 72% 22%,#42cdf5 0,transparent 34%),radial-gradient(circle at 18% 72%,#ff8c38 0,transparent 28%),linear-gradient(145deg,#101842,#3437a8); }

.intro { position: relative; width: min(calc(100% - 24px),860px); max-width: none; margin: 36px auto; padding: clamp(38px,7vw,72px) clamp(18px,5vw,52px); overflow: hidden; border: 1px solid #c9e9f7; border-radius: 32px; background: radial-gradient(circle at 10% 10%,rgba(142,231,255,.55),transparent 28%),radial-gradient(circle at 92% 92%,rgba(255,107,0,.16),transparent 28%),linear-gradient(145deg,#fff,#edf8ff); box-shadow: 0 20px 50px rgba(22,35,92,.14); }
.intro::before,
.intro::after { content: ""; position: absolute; width: 110px; height: 110px; border: 18px solid rgba(52,55,168,.06); border-radius: 50%; }
.intro::before { top: -65px; right: -28px; }
.intro::after { bottom: -72px; left: -38px; }
.intro > * { position: relative; z-index: 1; }
.intro .section-kicker { display: inline-block; padding: 5px 13px; color: #fff; border-radius: 999px; background: #3437a8; }
.intro h2 { margin: 12px 0 28px; color: #101842; font-size: clamp(2rem,8vw,4rem); line-height: 1.18; letter-spacing: -.05em; text-shadow: 0 3px 0 rgba(142,231,255,.7); }
.intro-mission { display: flex; align-items: center; justify-content: center; gap: clamp(5px,2vw,16px); margin: 0 auto 26px; }
.intro-mission-step { display: grid; place-items: center; width: clamp(82px,20vw,132px); aspect-ratio: 1; padding: 9px; color: #fff; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(145deg,#3437a8,#222777); box-shadow: 0 9px 0 #171d58,0 14px 25px rgba(16,24,66,.25); transform: rotate(-3deg); }
.intro-mission-step:nth-child(3) { background: linear-gradient(145deg,#26b8e6,#247ac8); box-shadow: 0 9px 0 #195b9e,0 14px 25px rgba(16,24,66,.22); transform: rotate(3deg); }
.intro-mission-step:nth-child(5) { background: linear-gradient(145deg,#ff8b38,#ff5b00); box-shadow: 0 9px 0 #bd4000,0 14px 25px rgba(255,91,0,.25); }
.intro-mission-step i { align-self: end; color: #8ee7ff; font-size: .65rem; font-style: normal; font-weight: 900; letter-spacing: .1em; }
.intro-mission-step:nth-child(5) i { color: #fff4c7; }
.intro-mission-step b { font-size: clamp(.95rem,3.8vw,1.35rem); line-height: 1.2; }
.intro-mission-step em { align-self: start; font-size: .55rem; font-style: normal; font-weight: 900; letter-spacing: .1em; opacity: .82; }
.intro-mission-arrow { color: #ff6b00; font-size: clamp(1.2rem,4vw,2rem); font-weight: 900; }
.intro > p:last-child { max-width: 580px; margin: 0 auto; color: #4e5b79; font-weight: 700; }

.event-single-hero { width: 100%; min-height: 100svh; background: linear-gradient(135deg,#101842,#3437a8 60%,#29a9df); }
.event-single-media img { width: 100vw; height: 100%; object-fit: cover; }
.event-single-media picture { display: block; width: 100%; height: 100%; }
.event-single-media video { display: block; width: 100vw; height: 100%; object-fit: cover; }
.event-details { background: var(--cream); }
.event-inline-game { margin-top: 34px; }
.event-inline-game .gg-secure-game {
  --gg-navy: #101842;
  --gg-indigo: #3437a8;
  --gg-gold: #ff6b00;
  --gg-cream: #edf8ff;
  width: 100%;
  max-width: none;
}

body.home > .site-header,
body.single-gotouchi_event > .site-header { display:none; }
body.home > .site-footer,
body.single-gotouchi_event > .site-footer { display: none; }
body.gg-has-game-hero .site-header,
body.gg-has-game-hero .game-page-heading { display: none; }
body.gg-game-screen .event-single-content,
body.gg-game-screen .game-help,
body.gg-game-screen .site-footer { display: none; }
body.gg-has-game-hero .game-page { padding-top: 0; }
body.gg-has-game-hero .event-inline-game--first { margin: 0; }
body.gg-has-game-hero .event-inline-game--first > .gg-secure-game { width: min(100%, 760px); margin: 0 auto; padding-top: 0; }
body.gg-has-game-hero .gg-secure-mobile-hero { width: 100vw; margin-top: 0; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); border-radius: 0; }
body.gg-has-game-hero .gg-secure-mobile-hero img,
body.gg-has-game-hero .gg-secure-mobile-hero video { width: 100%; height: auto; max-height: none; object-fit: contain; }

@media (max-width: 767px) {
  .hero-content {
    margin-bottom: max(18px, env(safe-area-inset-bottom));
    padding: 22px 18px;
    border-radius: 20px;
    background: rgba(9,18,58,.7);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    backdrop-filter: blur(24px) saturate(1.12);
  }
  body.gg-has-game-hero .game-shell { max-width: 760px; }
  body.gg-has-game-hero .gg-secure-game { padding-top: 0; border-top: 0; border-radius: 0 0 18px 18px; }
  body.gg-has-game-hero .gg-secure-mobile-hero { width: 100vw; margin-top: 0; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); border-radius: 0; }
  body.gg-has-game-hero .gg-secure-mobile-hero img,
  body.gg-has-game-hero .gg-secure-mobile-hero video { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .event-single-hero { min-height: 100svh; }
  .event-single-media img,
  .event-single-media video { width: 100%; height: 100svh; object-fit: cover; object-position: center; }
  .event-single-heading {
    margin-bottom: max(18px, env(safe-area-inset-bottom));
    padding: 22px 18px;
    border-radius: 20px;
    background: rgba(9,18,58,.72);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    backdrop-filter: blur(24px) saturate(1.12);
  }
  .event-single-heading h1 { font-size: clamp(2.1rem, 12vw, 3.5rem); }
  .event-single-content { padding: 30px 14px 65px; }
  .hero--media-only .hero-content { margin-bottom: max(20px,env(safe-area-inset-bottom)); padding: 0; background: transparent; }
  .events-section { width: calc(100% - 16px); margin: 8px auto 48px; padding: 30px 12px; border-radius: 24px; }
  .events-section > h2 { margin-bottom: 22px; }
  .guide { padding: 58px 0; }
  .guide-heading { padding-bottom: 18px; }
  .guide-scroller { display: grid; gap: 14px; overflow: visible; padding: 0 14px; scroll-snap-type: none; }
  .guide-card { display: grid; grid-template-columns: 68px 1fr; column-gap: 14px; width: 100%; min-height: 0; padding: 20px; border: 1px solid #d1e6f4; border-radius: 20px; scroll-snap-align: none; }
  .guide-card .step-number { right: 16px; top: 12px; font-size: 2rem; }
  .guide-card .step-icon { grid-row: 1 / span 2; width: 62px; height: 62px; margin: 0; border-radius: 18px; }
  .guide-card h3 { align-self: end; margin: 0 38px 3px 0; }
  .guide-card p:last-child { grid-column: 2; }
  .guide-dots { display: none; }
  .intro { width: calc(100% - 16px); margin: 20px auto 38px; padding: 38px 12px; border-radius: 24px; }
  .intro h2 { margin-bottom: 24px; }
  .intro-mission-step { border-width: 3px; box-shadow: 0 6px 0 #171d58,0 10px 18px rgba(16,24,66,.2); }
  .intro-mission-step:nth-child(3) { box-shadow: 0 6px 0 #195b9e,0 10px 18px rgba(16,24,66,.18); }
  .intro-mission-step:nth-child(5) { box-shadow: 0 6px 0 #bd4000,0 10px 18px rgba(255,91,0,.2); }
}
