:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #14171f;
  --muted: #687386;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dedbd2;
  --red: #e84b3c;
  --yellow: #f7c948;
  --blue: #246bfe;
  --green: #25a56a;
  --shadow: 0 18px 48px rgba(25, 28, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 219, 210, 0.9);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, var(--red) 0 48%, #111827 49% 52%, #ffffff 53%);
  border: 2px solid #111827;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
}

.nav a:hover {
  color: var(--ink);
  background: #f0eee7;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: #f0eee7;
}

.editor-actions {
  display: none;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

body.admin-mode .editor-actions {
  display: flex;
}

.cms-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.cms-status.is-warning {
  color: #7c2d12;
  background: #ffedd5;
}

.primary-button,
.ghost-button,
.primary-link,
.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button,
.primary-link {
  border: 1px solid #111827;
  color: #ffffff;
  background: #111827;
  padding: 0 16px;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  padding: 0 14px;
}

.text-link {
  color: var(--ink);
  padding: 0 6px;
  border-bottom: 2px solid var(--yellow);
  border-radius: 0;
}

.hero-section {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(247, 201, 72, 0.24), transparent 42%),
    linear-gradient(180deg, #fffdf7, #f6f1e8);
}

.shop-home {
  background: #ffffff;
}

.shop-header {
  background: rgba(255, 255, 255, 0.94);
}

.shop-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
  padding: clamp(38px, 6vw, 80px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(247, 201, 72, 0.42), transparent 28%),
    linear-gradient(180deg, #fff8dc 0%, #ffffff 62%);
}

.shop-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}

.shop-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: #06235c;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
}

.shop-hero p:not(.shop-kicker) {
  max-width: 620px;
  color: #475166;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.shop-hero-art {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.pokeball-bg {
  position: absolute;
  width: min(560px, 78vw);
  aspect-ratio: 1;
  border: 18px solid #111827;
  border-radius: 50%;
  background:
    linear-gradient(#e84b3c 0 45%, #111827 45% 52%, #ffffff 52% 100%);
  opacity: 0.12;
}

.pokeball-bg::after {
  content: "";
  position: absolute;
  inset: 39%;
  border: 12px solid #111827;
  border-radius: 50%;
  background: #ffffff;
}

.shop-card-stack,
.shop-side-card {
  position: relative;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.shop-card-stack {
  width: min(330px, 58vw);
  transform: rotate(-4deg);
  z-index: 2;
}

.shop-side-card {
  position: absolute;
  right: 2%;
  bottom: 6%;
  width: min(220px, 36vw);
  transform: rotate(7deg);
  z-index: 3;
}

.shop-card-stack img,
.shop-side-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 0.716;
  object-fit: cover;
}

.shop-notice-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: #06235c;
}

.shop-notice-band span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #06235c;
  background: var(--yellow);
  font-weight: 900;
}

.shop-notice-band p {
  margin: 0;
  line-height: 1.5;
}

.shop-section,
.shop-info-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.shop-section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.shop-section-heading h2,
.shop-visual-band h2 {
  color: #06235c;
}

.shop-section-heading p,
.shop-visual-band p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.shop-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.shop-feature-card figure {
  margin: 0;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, #fff4be, #ffffff);
}

.shop-feature-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 0.716;
  object-fit: cover;
}

.shop-feature-card div {
  padding: 18px;
}

.shop-feature-card span,
.shop-info-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.shop-feature-card p,
.shop-info-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.shop-visual-band {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background: #f6f9ff;
}

.shop-visual-band figure {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.shop-visual-band img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 0.716;
  object-fit: cover;
}

.shop-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shop-info-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.shop-info-grid strong {
  display: block;
  font-size: 1.16rem;
  color: #06235c;
  overflow-wrap: anywhere;
}

.shop-link-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.shop-link-strip a {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 16px;
  color: #06235c;
  background: #fff8dc;
  font-weight: 900;
  text-align: center;
}

.shop-link-strip a:hover {
  background: var(--yellow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 6.7rem);
  line-height: 0.93;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.split-section p,
.contact-section p,
.story-copy p,
.market-note p,
.gallery-card p,
.guide-list p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.poster-image {
  width: min(390px, 74vw);
  margin: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.poster-image img {
  border-radius: 8px;
  aspect-ratio: 0.716;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: 0;
  bottom: 36px;
  width: min(330px, 82vw);
  padding: 18px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.floating-card span {
  display: block;
  color: #b8c3d6;
  margin-bottom: 8px;
}

.content-band {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.page-hero {
  padding: clamp(54px, 9vw, 112px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 76px);
  background:
    linear-gradient(115deg, rgba(232, 75, 60, 0.13), transparent 40%),
    linear-gradient(180deg, #fffdf7, #f6f1e8);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.compact-heading {
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wide-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f1ea;
}

.wide-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.market-note {
  padding: 24px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.market-note p {
  color: #c9d3e4;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(22px, 5vw, 72px);
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.guide-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.page-card span {
  color: var(--blue);
  font-weight: 900;
}

.page-card strong {
  font-size: 1.2rem;
}

.page-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.manual-gallery,
.live-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card,
.live-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.gallery-card figure {
  margin: 0 0 14px;
}

.gallery-card img,
.live-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 0.716;
  object-fit: cover;
  background: #f1eee5;
}

.live-gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 34px 0 16px;
}

.live-gallery-head span {
  color: var(--muted);
}

.live-card strong,
.live-card span {
  display: block;
}

.live-card strong {
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.live-card span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.pack-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.control-panel,
.result-panel,
.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--muted);
  font-weight: 800;
}

.search-input,
.select-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  outline: none;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.13);
}

.set-preview {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.set-preview img {
  width: 74px;
  max-height: 58px;
  object-fit: contain;
}

.set-preview strong,
.set-preview span {
  display: block;
}

.set-preview span {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
}

.empty-logo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 58px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.full-button {
  width: 100%;
}

.small-note,
.message {
  color: var(--muted);
  line-height: 1.5;
}

.message {
  margin: 16px 0;
}

.message.is-error {
  color: var(--red);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-strip div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.market-strip span,
.market-strip strong {
  display: block;
}

.market-strip span {
  color: var(--muted);
  margin-bottom: 8px;
}

.market-strip strong {
  font-size: 1.45rem;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.pack-card {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 520ms ease forwards;
}

.pack-card.is-hit {
  border-color: rgba(247, 201, 72, 0.9);
  box-shadow: 0 0 0 2px rgba(247, 201, 72, 0.32), 0 14px 32px rgba(247, 201, 72, 0.16);
}

.story-list {
  display: grid;
  gap: 22px;
}

.story-entry {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(25, 28, 34, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) clamp(44px, 7vw, 82px);
  padding: clamp(26px, 5vw, 46px);
  border-radius: 8px;
  background: #f7c948;
  border: 1px solid #e1b52f;
}

.admin-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.admin-panel,
.admin-help {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-panel form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-panel input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.admin-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.13);
}

.admin-links {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.admin-unlocked .admin-login {
  display: none;
}

body.admin-unlocked .admin-links {
  display: grid;
}

.admin-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.admin-link-card strong,
.admin-link-card span {
  display: block;
}

.admin-link-card span,
.admin-help p,
.admin-help li {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
  line-height: 1.5;
}

.image-frame {
  position: relative;
}

.image-edit {
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.24);
  border-radius: 8px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 850;
  cursor: pointer;
}

body.is-editing [data-edit] {
  outline: 2px dashed rgba(36, 107, 254, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

body.is-editing [data-edit]:focus {
  outline-color: var(--red);
  background: rgba(247, 201, 72, 0.18);
}

body.is-editing .image-edit {
  display: inline-flex;
  align-items: center;
}

body.is-editing .primary-button {
  background: var(--green);
  border-color: var(--green);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .editor-actions {
    justify-content: flex-start;
  }

  .hero-section,
  .shop-hero,
  .shop-visual-band,
  .feature-grid,
  .feature-story,
  .split-section,
  .pack-layout,
  .story-entry,
  .about-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -36px;
  }

  .manual-gallery,
  .live-gallery,
  .page-card-grid,
  .shop-feature-grid,
  .shop-info-grid,
  .shop-link-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-hero-art {
    min-height: 480px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    align-items: flex-start;
  }

  body.admin-mode .editor-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .manual-gallery,
  .live-gallery,
  .page-card-grid,
  .market-strip,
  .admin-links,
  .shop-feature-grid,
  .shop-info-grid,
  .shop-link-strip,
  .shop-notice-band {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .content-band,
  .shop-section,
  .shop-info-section {
    padding-inline: 16px;
  }

  .poster-image {
    width: 100%;
    transform: none;
  }

  .shop-hero h1 {
    font-size: clamp(2.5rem, 16vw, 4.5rem);
  }

  .shop-card-stack {
    width: min(280px, 72vw);
  }

  .shop-side-card {
    width: min(160px, 42vw);
  }
}
