:root{
  --bg:#07060a;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);

  /* muted antique gold (desaturated, not shiny) */
  --gold: #c8b07a;
  --gold2:#a88a46;

  --line: rgba(255,255,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1120px;

  /* unified card tint */
  --cardBg: rgba(200,176,122,.07);
  --cardBorder: rgba(200,176,122,.20);

  /* text outline (2) */
  --stroke: rgba(0,0,0,1);
  --strokeSoft: rgba(0,0,0,.85);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  overflow-x:hidden;
}

/* (2) black outline for ALL text (avoid images) */
body :where(h1,h2,h3,h4,h5,h6,p,span,a,button,li,small,strong,em,div,label){
  text-shadow:
    -1px  0 0 var(--stroke),
     1px  0 0 var(--stroke),
     0   -1px 0 var(--stroke),
     0    1px 0 var(--stroke),
    -1px -1px 0 var(--strokeSoft),
     1px -1px 0 var(--strokeSoft),
    -1px  1px 0 var(--strokeSoft),
     1px  1px 0 var(--strokeSoft);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
.muted{ color:var(--muted); }
.en{ display:block; }
.jp{ display:block; opacity:.86; font-size:.95em; margin-top:.35rem; }

/* ========= Background: Luxury ritual coin (no noise, no grain) ========= */
.bg{ position:fixed; inset:0; z-index:-10; background: var(--bg); }

/* (1) slightly thinner background + keep bold structure (only opacity adjusted) */
.bg__ritual{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(1000px 1000px at 50% 40%, rgba(200,176,122,.25), transparent 60%),
    repeating-radial-gradient(
      circle at 50% 40%,
      rgba(200,176,122,.20) 0 2px,
      transparent 2px 18px
    ),
    repeating-conic-gradient(
      from 0deg at 50% 40%,
      rgba(200,176,122,.18) 0 2deg,
      transparent 2deg 14deg
    );
  filter: saturate(.9);
  opacity: .60; /* thinner (was visually stronger) */
}

.bg__vignette{
  position:absolute;
  inset:0;
  background: radial-gradient(
    70% 60% at 50% 40%,
    transparent 0 50%,
    rgba(0,0,0,.62) 80%,
    rgba(0,0,0,.88) 100%
  );
}

/* ========= Topbar ========= */
/* (6) keep header always on top */
.topbar{
  position: fixed;
  top:0;
  left:0;
  right:0;
  z-index: 1000;

  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(7,6,10,.52);
  backdrop-filter: blur(10px);
}

/* compensate fixed header */
main{ padding-top: 74px; }

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.5px;
}
.brand__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(200,176,122,.35);
}
.brand__text{ opacity:.95; }

.nav{
  display:flex; gap:16px;
  font-size:14px;
  color:rgba(255,255,255,.78);
}
.nav__link{
  padding:10px 10px;
  border-radius:999px;
  transition: background .15s ease, color .15s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
}

.nav-cta{ display:flex; gap:10px; align-items:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0px); }
.btn[disabled]{ opacity:.55; pointer-events:none; }

.btn--solid{
  border-color: rgba(200,176,122,.45);
  background: linear-gradient(180deg, rgba(200,176,122,.20), rgba(168,138,70,.10));
}
.btn--solid:hover{
  border-color: rgba(200,176,122,.65);
  background: linear-gradient(180deg, rgba(200,176,122,.26), rgba(168,138,70,.12));
}
.btn--ghost{
  border-color: rgba(200,176,122,.22);
  background: rgba(200,176,122,.06);
}
.btn--copy{ height:34px; padding:0 12px; font-size:13px; }

.burger{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.burger span{
  display:block;
  width:18px; height:2px; margin:4px auto;
  background: rgba(255,255,255,.85);
  border-radius:2px;
}

/* ========= Drawer (mobile) ========= */
.drawer{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
  z-index:60;
}
.drawer__inner{
  position:absolute; top:0; right:0;
  width:min(340px, 86vw);
  height:100%;
  background: rgba(10,9,14,.92);
  border-left:1px solid rgba(255,255,255,.10);
  padding:18px;
  transform: translateX(18px);
  transition: transform .18s ease;
  backdrop-filter: blur(12px);
}
.drawer__link{
  display:block;
  padding:14px 12px;
  border-radius:14px;
  color:rgba(255,255,255,.90);
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  margin-bottom:10px;
}
.drawer__cta{ display:grid; gap:10px; margin-top:14px; }
.drawer__hint{ margin-top:18px; color:rgba(255,255,255,.55); font-size:13px; }
.drawer.is-open{ opacity:1; pointer-events:auto; }
.drawer.is-open .drawer__inner{ transform: translateX(0); }

/* ========= Sections ========= */
.section{ padding: 78px 18px; }
.section__inner{ width: min(var(--max), 100%); margin: 0 auto; }
.h2{
  margin:0 0 16px;
  font-size: 26px;
  letter-spacing: .8px;
}
.h2--gold{ color: rgba(200,176,122,.92); }

.sp-break{
  font-size: .65em;     /* 親(h2)に対して65% */
  opacity: .85;        /* 少し控えめに */
}

/* ========= Unified gold-tinted cards ========= */
.card{
  border-radius: var(--radius);
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.card--gold{
  border-color: rgba(200,176,122,.26);
  background: linear-gradient(180deg, rgba(200,176,122,.085), rgba(255,255,255,.018));
}

/* ========= Hero ========= */
.hero{ padding: 86px 18px 60px; }
.hero__inner{
  width:min(var(--max), 100%);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items:center;
}

/* LEFT token block */
.hero__token{
  display:flex;
  flex-direction:column;
  gap: 16px;
  align-items:flex-start;
}

.token-label{
  width: min(520px, 50vw);          /* token-wrap と揃える */
  margin: 0 0 10px;                /* tokenの上の余白 */
  text-align: center;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 24px;
  color: rgba(200,176,122,.92);
}

.token-wrap{
  position:relative;
  width: min(520px, 50vw);
  border-radius: 28px;
  border:1px solid rgba(200,176,122,.22);
  background: linear-gradient(180deg, rgba(200,176,122,.07), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.token{
  width:100%;
  transform: translateZ(0);
  will-change: transform;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.45));
}

/* Keep shine subtle, not glossy */
.token__shine{
  position:absolute; inset:-10% -20%;
  background: linear-gradient(90deg, transparent 0 44%, rgba(255,255,255,.10) 52%, transparent 60%);
  transform: translateX(-120%) rotate(10deg);
  opacity:.45;
  animation: shine 6.4s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shine{
  0%{ transform: translateX(-120%) rotate(10deg); }
  55%{ transform: translateX(120%) rotate(10deg); }
  100%{ transform: translateX(120%) rotate(10deg); }
}

/* Huh panel */
.huh-panel{
  width: min(520px, 50vw);
  border-radius: 22px;
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.huh-btn{
  width: 100%;
  height: 58px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.huh-btn__face{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 58px;
  border-radius: 16px;
  font-weight: 950;
  font-size: 20px;
  letter-spacing: .6px;
  color: rgba(255,255,255,.82);

  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(200,176,122,.72));
  border: 1px solid rgba(200,176,122,.55);
  box-shadow:
    0 10px 0 rgba(95,74,34,.70),
    0 22px 38px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.40);
  transform: translateY(0);
  transition: transform .05s ease, box-shadow .05s ease, filter .12s ease;
}
.huh-btn:hover .huh-btn__face{ filter: brightness(1.02); }
.huh-btn:active .huh-btn__face{
  transform: translateY(10px);
  box-shadow:
    0 0 0 rgba(95,74,34,.0),
    0 12px 26px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.30);
}

.huh-count{
  margin-top: 14px;
  border-radius: 16px;
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  padding: 12px 14px;
}
.huh-count__label{
  font-size: 11px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.62);
}
.huh-count__value{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .6px;
  color: rgba(200,176,122,.92);
  text-shadow: 0 0 20px rgba(200,176,122,.10);
}
.huh-note{
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

/* RIGHT copy */
.title{
  margin: 0;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: .95;
  letter-spacing: 1px;
}
.title__glitch{
  position:relative;
  display:inline-block;
  text-shadow: 0 0 18px rgba(200,176,122,.10);
}
.title__glitch::before,
.title__glitch::after{
  content: attr(data-text);
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
.title__glitch::before{
  transform: translate(2px,0);
  color: rgba(200,176,122,.88);
  mix-blend-mode: screen;
}
.title__glitch::after{
  transform: translate(-2px,0);
  color: rgba(255,255,255,.70);
  mix-blend-mode: lighten;
}
.title__glitch:hover::before,
.title__glitch:hover::after{
  opacity:.40;
  animation: glitch 900ms steps(2,end) infinite;
}
@keyframes glitch{
  0%{ clip-path: inset(0 0 80% 0); }
  20%{ clip-path: inset(20% 0 20% 0); }
  40%{ clip-path: inset(40% 0 35% 0); }
  60%{ clip-path: inset(10% 0 60% 0); }
  80%{ clip-path: inset(65% 0 10% 0); }
  100%{ clip-path: inset(0 0 80% 0); }
}

/* (3) launch text ~ half of $HUH */
.launch-time{
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing:.06em;
  color: rgba(200,176,122,.92);
  margin-bottom: 10px;
}

.story{ padding: 16px 16px; }
.story__en, .story__jp{
  margin:0;
  line-height:1.65;
  color: rgba(255,255,255,.82);
}
.story__jp{ margin-top: 12px; opacity:.88; }
.story b{ color: rgba(200,176,122,.92); }

.hero__buttons{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 16px; }
.scroll{
  display:flex; align-items:center; gap:10px;
  color:rgba(255,255,255,.65);
  font-size:12px;
  letter-spacing:1px;
  margin-top:22px;
}
.scroll__arrow{
  display:inline-block;
  animation: bounce 1.2s ease-in-out infinite;
}
@keyframes bounce{
  0%,100%{ transform: translateY(0); opacity:.6; }
  50%{ transform: translateY(4px); opacity:1; }
}

/* ========= Rules ========= */
/* (4) 4 cards horizontal on desktop */
.rules__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

/* (2) + spacing fix + a bit taller */
.rule-card{
  padding: 28px 22px;      /* more inner padding */
  min-height: 240px;       /* taller */
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  line-height:1.6;
}
.rule-card__h{
  font-size:13px;
  letter-spacing:1.2px;
  color: rgba(200,176,122,.92);
  margin-bottom: 10px;
}
.rule-card__p{
  margin:0;
  color: rgba(255,255,255,.84);
}

/* ========= Meme Wall ========= */
.wall__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 14px;
}
.meme-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.meme-tile{
  position:relative;
  border-radius: 18px;
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  overflow:hidden;
  cursor:pointer;
  min-height: 140px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.meme-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(200,176,122,.42);
  background: rgba(200,176,122,.09);
}
.meme-tile img{
  width:100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.wall__cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px; }

/* ========= Token specs ========= */
.spec__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 10px;
}
.spec__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.spec__card{
  border-radius: var(--radius);
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  padding: 16px 16px;
}
.spec__card--ca{ grid-column: span 2; }
.spec__k{
  font-size:12px;
  letter-spacing:1px;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
}
.spec__v{
  font-size: 18px;
  font-weight: 950;
  letter-spacing:.2px;
}
.spec__v--gold{ color: rgba(200,176,122,.92); }
.ca-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ca-value{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.ca-hint{ margin-top: 8px; font-size: 12px; }
.note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
}

/* ========= Links ========= */
.links__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.link-card{
  display:flex;
  gap: 12px;
  align-items:center;
  border-radius: var(--radius);
  border:1px solid var(--cardBorder);
  background: var(--cardBg);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.link-card:hover{
  transform: translateY(-2px);
  border-color: rgba(200,176,122,.42);
  background: rgba(200,176,122,.09);
}
.link-card__icon{
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 26px;
  opacity: .92;
}
.link-card__t{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 4px;
}
.link-card__t--gold{ color: rgba(200,176,122,.92); }
.link-card__d{ color: rgba(255,255,255,.70); }

.footer{ margin-top: 26px; }
.footer__line{ height:1px; background: rgba(255,255,255,.10); margin: 18px 0; }
.footer__txt{ margin:0; font-weight:950; letter-spacing:.6px; }
.footer__fine{ margin:8px 0 0; font-size:12px; }

/* ========= Modal ========= */
.modal{
  position:fixed; inset:0; z-index:80;
  opacity:0; pointer-events:none;
  transition: opacity .12s ease;
}
.modal.is-open{ opacity:1; pointer-events:auto; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.72); }
.modal__content{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  width: min(860px, 92vw);
  max-height: 86vh;
  border-radius: 20px;
  border: 1px solid rgba(200,176,122,.22);
  background: rgba(10,9,14,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__close{
  position:absolute; right:10px; top:8px;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(200,176,122,.22);
  background: rgba(200,176,122,.06);
  color: rgba(255,255,255,.85);
  font-size:22px;
  cursor:pointer;
}
.modal__img{
  width:100%;
  height: 86vh;
  object-fit: contain;
  padding: 18px;
}

/* ========= Responsive (SP) ========= */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-cta{ display:none; }
  .burger{ display:block; }

  .hero__inner{ grid-template-columns: 1fr; }

  .token-wrap, .huh-panel{ width: min(560px, 100%); }

  /* on mobile, stack rules */
  .rules__grid{ grid-template-columns: 1fr; }

  .meme-grid{ grid-template-columns: repeat(2, 1fr); }
  .spec__grid{ grid-template-columns: repeat(2, 1fr); }
  .spec__card--ca{ grid-column: span 2; }
  .links__grid{ grid-template-columns: 1fr; }
}

/* SPだけ見出しを2行にするためのフック */
.sp-break{
  display: inline;
}

@media (max-width: 980px){
  .sp-break{
    display: block;
    margin-top: 4px; /* 不要なら0でOK */
  }
}

@media (max-width: 980px){
  .token-label{
    width: min(560px, 100%);
  }
}

/* TOTAL HUHs box: center the number */
.huh-count{
  display: flex;
  flex-direction: column;   /* ラベル → 数字 */
  align-items: center;      /* 横方向中央 */
  justify-content: center;  /* 縦方向中央 */
  text-align: center;
}

.huh-count__value{
  width: 100%;
  text-align: center;
}
