:root {
  --bg: #ffffff;
  --paper: #faf9f2;
  --yellow: #fff200;
  --yellow-deep: #ffe600;
  --ink: #0b0b0b;
  --muted: #4a4a46;
  --border: 2.5px solid #0b0b0b;
  --shadow: 4px 4px 0 #0b0b0b;
  --shadow-lg: 6px 6px 0 #0b0b0b;
  --shadow-active: 1px 1px 0 #0b0b0b;
  --rail-max: 660px;
  --rail-pad: clamp(1rem, 4.5vw, 1.5rem);
  --font-display: "Arial Black", "Segoe UI Black", Impact, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(#d8d5c8 1.25px, transparent 1.25px);
  background-size: 22px 22px;
}

.topbar,
.stage,
.footbar {
  width: 100%;
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: var(--rail-pad);
}

.topbar {
  padding-top: clamp(1rem, 2.6vh, 1.5rem);
  padding-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.22rem, 0.8vw, 0.32rem);
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo-box {
  padding: 0.26rem clamp(0.42rem, 1.4vw, 0.56rem);
  background: var(--bg);
  border: var(--border);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  line-height: 1.1;
}

.logo-box-yellow {
  background: var(--yellow);
}

.logo-amp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.35rem, 4vw, 1.55rem);
  height: clamp(1.35rem, 4vw, 1.55rem);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
}

.soon-sticker {
  display: inline-block;
  padding: 0.3rem clamp(0.55rem, 2vw, 0.74rem);
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: clamp(0.66rem, 2.2vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(2.2deg);
}

.stage {
  padding-top: clamp(1.1rem, 3.2vh, 2rem);
  padding-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  align-self: flex-start;
  margin: 0 0 clamp(0.65rem, 1.8vh, 0.95rem);
  padding: 0.24rem 0.65rem;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 5px;
  font-size: clamp(0.68rem, 2vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7.6vw, 3.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hl-yellow {
  display: inline-block;
  margin-top: 0.12rem;
  padding: 0.02em 0.22em 0.08em;
  background: var(--yellow);
  border: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transform: rotate(-0.8deg);
}

.note-card {
  margin-top: clamp(1.15rem, 2.8vh, 1.55rem);
  padding: clamp(0.68rem, 2vw, 0.88rem) clamp(0.75rem, 2.4vw, 1.05rem);
  background: var(--bg);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.note-fit {
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
}

.note-text {
  display: inline-block;
  margin: 0;
  font-size: 2.25cqw;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
}

.button-duel {
  margin-top: clamp(1rem, 2.4vh, 1.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 2.4vw, 1rem);
}

.fun-btn {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: clamp(124px, 18vh, 148px);
  padding: clamp(0.88rem, 2.5vw, 1.08rem) clamp(0.9rem, 2.8vw, 1.15rem);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 85ms cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 85ms ease, background-color 120ms ease;
}

.fun-btn-want {
  background: var(--yellow);
}

.fun-btn-have {
  background: var(--bg);
}

@media (hover: hover) {
  .fun-btn-want:hover {
    background: var(--yellow-deep);
    transform: translate(-1px, -1px);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .fun-btn-have:hover {
    background: #fffbe0;
    transform: translate(-1px, -1px);
    box-shadow: 7px 7px 0 var(--ink);
  }
}

.fun-btn:active,
.fun-btn.is-pressed {
  transform: translate(4px, 4px) !important;
  box-shadow: var(--shadow-active) !important;
}

.fun-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 1.82rem;
  padding: 0 0.58rem;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: clamp(0.84rem, 2.4vw, 0.92rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fun-btn-have .count-pill {
  background: var(--yellow);
}

.count-pill.pop {
  transform: scale(1.18);
}

.shortcut-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.42rem;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.btn-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-top: clamp(0.85rem, 2vh, 1.1rem);
}

.btn-title {
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 3.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.spelled-count {
  font-size: clamp(0.74rem, 2.1vw, 0.81rem);
  font-weight: 700;
  line-height: 1.28;
  color: rgba(11, 11, 11, 0.78);
  overflow-wrap: break-word;
}

.tug-wrap {
  margin-top: clamp(0.95rem, 2.2vh, 1.15rem);
}

.tug-track {
  width: 100%;
  height: 16px;
  border: var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 7px,
    #0b0b0b 7px,
    #0b0b0b 10px
  );
  box-shadow: 2px 2px 0 var(--ink);
}

.tug-fill {
  width: 50%;
  height: 100%;
  background: var(--yellow);
  border-right: 2.5px solid var(--ink);
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footbar {
  padding-top: 0.5rem;
  padding-bottom: clamp(1rem, 2.6vh, 1.45rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.foot-domain {
  font-size: clamp(0.76rem, 2.2vw, 0.84rem);
  font-weight: 800;
  color: var(--muted);
}

.x-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 85ms ease, box-shadow 85ms ease, background-color 120ms ease;
}

@media (hover: hover) {
  .x-pill:hover {
    background: var(--yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
  }
}

.x-pill:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.x-pill:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 2px;
}

.x-icon {
  display: block;
}

@media (max-width: 590px) {
  .shortcut-tag {
    display: none;
  }
}

@media (max-width: 345px) {
  .button-duel {
    grid-template-columns: 1fr;
  }

  .fun-btn {
    min-height: 104px;
  }

  .topbar,
  .footbar {
    gap: 0.45rem;
  }
}
