/* Tag helper page — layout and components (depends on interfacex-core.css) */

:root {
  --hero-art-height: clamp(160px, 31vw, 390px);
}

.eyebrow {
  margin: 0;
  font: 600 0.74rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-strong);
}

.hero {
  padding: clamp(20px, 4vw, 38px);
  padding-top: calc(var(--hero-art-height) + clamp(22px, 3vw, 34px));
  background:
    linear-gradient(180deg, rgba(247, 242, 234, 0.12), rgba(247, 242, 234, 0.76) 56%, rgba(236, 226, 213, 0.96) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--hero-art-height);
  background: var(--hero-banner-image) center top / 100% auto no-repeat;
  opacity: 0.94;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-main {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.hero-copy .hero-kicker {
  margin: 0;
  font: 600 clamp(0.95rem, 1.8vw, 1.12rem)/1.3 var(--mono);
  letter-spacing: 0.01em;
  color: var(--teal-strong);
}

.hero-copy .lede {
  margin: 0;
  max-width: 70ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted-strong);
}

.hero-copy .lede em {
  font-style: italic;
  color: var(--teal-strong);
}

.hero-side {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
}

.progress-dial-wrap {
  display: grid;
  gap: 12px;
  width: auto;
  justify-items: center;
}

.progress-dial {
  --percent: 0%;
  position: relative;
  width: min(250px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.28), transparent 52%),
    conic-gradient(
      from 220deg,
      var(--teal) 0 var(--percent),
      rgba(215, 195, 160, 0.58) var(--percent) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 18px 36px rgba(133, 99, 51, 0.18);
}

.progress-dial::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(215, 195, 160, 0.42);
  background:
    radial-gradient(circle at 50% 18%, rgba(116, 217, 225, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(24, 94, 120, 0.18), rgba(8, 56, 74, 0)),
    linear-gradient(180deg, rgba(12, 74, 96, 0.96), rgba(6, 43, 58, 0.98));
}

.progress-dial span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--screen-text);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.progress-dial span small {
  font: 600 0.76rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(246, 239, 229, 0.72);
}

.floating-progress-shell {
  position: fixed;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  right: max(12px, calc(env(safe-area-inset-right) + 8px));
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(136, 106, 68, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08)),
    rgba(246, 239, 227, 0.86);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 36px rgba(120, 92, 53, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.92);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.floating-progress-shell.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.progress-dial.is-floating {
  width: clamp(82px, 8vw, 108px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.progress-dial.is-floating::before {
  inset: 8px;
}

.progress-dial.is-floating span {
  gap: 4px;
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
}

.progress-dial.is-floating span small {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.progress-block {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(136, 106, 68, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.1)),
    rgba(244, 236, 224, 0.84);
}

.progress-copy {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-strong);
}

.progress-copy strong {
  color: var(--teal-strong);
}

.progress-copy .progress-game-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.progress-copy .progress-game-link:hover {
  color: var(--accent-strong);
}

.progress-copy .progress-game-link:focus-visible {
  outline: 2px solid rgba(116, 217, 225, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

.progress-track {
  margin-top: 14px;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(183, 162, 130, 0.28);
  box-shadow: inset 0 1px 3px rgba(116, 87, 51, 0.18);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(116, 217, 225, 0.96), rgba(244, 154, 62, 0.98)),
    var(--teal);
  box-shadow:
    inset 0 -1px 0 rgba(64, 41, 16, 0.18),
    0 0 20px rgba(244, 154, 62, 0.18);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.controls-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 106, 68, 0.22);
  border-radius: clamp(18px, 3.5vw, 26px);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 252, 246, 0.5) 38%,
      rgba(245, 236, 222, 0.94) 100%
    ),
    rgba(252, 247, 238, 0.98);
  box-shadow:
    0 18px 44px rgba(103, 76, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.controls-panel-header {
  display: flex;
  align-items: center;
  padding: clamp(12px, 2.8vw, 18px) clamp(16px, 4vw, 26px);
  border-bottom: 1px solid rgba(116, 87, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
}

.controls-panel-header .controls-panel-eyebrow {
  margin: 0;
  color: var(--teal-strong);
  letter-spacing: 0.2em;
  font-size: clamp(0.66rem, 2.4vw, 0.74rem);
}

.controls-panel-keywell {
  padding: clamp(14px, 4vw, 24px);
  background:
    linear-gradient(180deg, rgba(10, 52, 68, 0.06) 0%, rgba(4, 32, 44, 0.14) 100%),
    linear-gradient(145deg, rgba(14, 62, 80, 0.97), rgba(6, 38, 52, 0.99));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Q W E / A S D — staggered like a keyboard’s left-hand cluster */
.shortcut-keyboard {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(6px, 2vw, 12px);
  row-gap: clamp(6px, 1.8vw, 10px);
  width: 100%;
}

.shortcut-keyboard [data-slot="q"] {
  grid-column: 1 / 3;
  grid-row: 1;
}

.shortcut-keyboard [data-slot="w"] {
  grid-column: 3 / 5;
  grid-row: 1;
}

.shortcut-keyboard [data-slot="e"] {
  grid-column: 5 / 7;
  grid-row: 1;
}

.shortcut-keyboard [data-slot="a"] {
  grid-column: 2 / 4;
  grid-row: 2;
}

.shortcut-keyboard [data-slot="s"] {
  grid-column: 4 / 6;
  grid-row: 2;
}

.shortcut-keyboard [data-slot="d"] {
  grid-column: 6 / 8;
  grid-row: 2;
}

.shortcut-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2px, 0.8vw, 5px);
  min-height: clamp(44px, 10vw, 54px);
  min-width: 0;
  padding: clamp(5px, 1.4vw, 8px) clamp(5px, 1.4vw, 8px);
  border: 1px solid transparent;
  border-radius: clamp(10px, 2.2vw, 15px);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}

.shortcut-key-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(22px, 5vw, 28px);
}

.shortcut-key-cap code {
  display: inline-block;
  min-width: 1.55em;
  padding: 3px 8px;
  border-radius: 8px;
  font: 800 clamp(0.8rem, 3vw, 0.95rem) / 1 var(--mono);
  text-align: center;
}

.shortcut-key-label {
  display: block;
  align-self: stretch;
  font: 600 clamp(0.58rem, 1.9vw, 0.7rem) / 1.25 var(--body);
  letter-spacing: 0.03em;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* E — matches .button.primary (Open in New Tab) */
.shortcut-key.shortcut-key--theme-new-tab {
  background: var(--ix-accent-fill);
  border-color: rgba(116, 62, 13, 0.38);
  color: #2f1b09;
  box-shadow:
    inset 0 -2px 0 rgba(116, 62, 13, 0.16),
    0 6px 16px rgba(232, 128, 32, 0.22);
}

.shortcut-key.shortcut-key--theme-new-tab .shortcut-key-label {
  color: #2f1b09;
}

.shortcut-key.shortcut-key--theme-new-tab .shortcut-key-cap code {
  background: linear-gradient(180deg, #fffefb, #f2e6d4);
  color: #3d2208;
  box-shadow:
    0 2px 0 rgba(116, 62, 13, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.shortcut-key.shortcut-key--theme-new-tab:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    inset 0 -2px 0 rgba(116, 62, 13, 0.14),
    0 10px 22px rgba(232, 128, 32, 0.28);
}

/* W — matches .button.primary-dark (Open in Same Tab) */
.shortcut-key.shortcut-key--theme-same-tab {
  background:
    linear-gradient(180deg, rgba(214, 118, 38, 0.98), rgba(168, 78, 14, 0.99)),
    #9a4a0c;
  border-color: rgba(62, 28, 6, 0.45);
  color: #fff5e8;
  box-shadow:
    inset 0 -2px 0 rgba(62, 28, 6, 0.28),
    0 6px 16px rgba(140, 62, 12, 0.28);
}

.shortcut-key.shortcut-key--theme-same-tab .shortcut-key-label {
  color: #fff5e8;
}

.shortcut-key.shortcut-key--theme-same-tab .shortcut-key-cap code {
  background: linear-gradient(180deg, #fffaf4, #f5e8dc);
  color: #5c2806;
  box-shadow:
    0 2px 0 rgba(62, 28, 6, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.shortcut-key.shortcut-key--theme-same-tab:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* Q — matches .button.secondary (Open in Steam) */
.shortcut-key.shortcut-key--theme-steam {
  border-color: rgba(16, 94, 122, 0.35);
  background:
    linear-gradient(180deg, rgba(20, 99, 125, 0.92), rgba(12, 72, 94, 0.96)),
    rgba(15, 80, 103, 0.94);
  color: var(--screen-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(8, 40, 52, 0.35);
}

.shortcut-key.shortcut-key--theme-steam .shortcut-key-label {
  color: #f6efe5;
}

.shortcut-key.shortcut-key--theme-steam .shortcut-key-cap code {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(220, 236, 240, 0.9));
  color: #0f5067;
  box-shadow:
    0 2px 0 rgba(12, 72, 94, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

.shortcut-key.shortcut-key--theme-steam:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* A / S / D — shared neutral (previous, copy, next) */
.shortcut-key.shortcut-key--theme-neutral {
  background: linear-gradient(180deg, #a8a099, #8a837c);
  border-color: rgba(48, 44, 40, 0.28);
  color: #fdfaf6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(40, 36, 32, 0.22);
}

.shortcut-key.shortcut-key--theme-neutral .shortcut-key-label {
  color: #f0ebe5;
}

.shortcut-key.shortcut-key--theme-neutral .shortcut-key-cap code {
  background: linear-gradient(180deg, #fffefb, #ebe4dc);
  color: #2c2824;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 2px 0 rgba(90, 84, 76, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.1);
}

.shortcut-key.shortcut-key--theme-neutral:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.shortcut-key:active {
  transform: translateY(0);
  filter: none;
}

.shortcut-key:focus-visible {
  outline: 2px solid rgba(116, 217, 225, 0.95);
  outline-offset: 2px;
}

.tag-guide {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
}

.tag-guide-controls {
  margin-top: clamp(8px, 2vw, 16px);
}

.tag-guide-header {
  display: grid;
  gap: 8px;
}

.tag-guide-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.08;
}

.tag-guide-header p,
.tag-guide-step p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.tag-guide-grid {
  display: grid;
  gap: 18px;
}

.tag-guide-step {
  display: grid;
  gap: 20px;
  padding: 14px;
  border: 1px solid rgba(136, 106, 68, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08)),
    rgba(245, 238, 227, 0.88);
}

.tag-guide-stephead {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag-guide-stephead strong {
  font-family: var(--card-title);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--teal-strong);
}

.tag-guide-shot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(136, 106, 68, 0.14);
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 10px 18px rgba(112, 84, 47, 0.08);
}

/* Bottom-edge average from each PNG (short screenshots) — fills frame to match step 2 row height */
.tag-guide-shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(136, 106, 68, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 10px 18px rgba(112, 84, 47, 0.08);
  overflow: hidden;
}

.tag-guide-shot-frame--step1 {
  background-color: #0e131b;
}

.tag-guide-shot-frame--step3 {
  background-color: #282b31;
}

.tag-guide-shot-frame .tag-guide-shot {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.empty-state h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.developer-line {
  margin: 0;
  color: #8de6ee;
  font: 500 0.88rem/1.5 var(--mono);
}

.game-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.games-load-error {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 118, 118, 0.35);
  background: rgba(255, 118, 118, 0.08);
  color: var(--screen-text);
  font: 500 0.95rem/1.45 var(--body);
}

.game-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(116, 217, 225, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(116, 217, 225, 0.08), rgba(255, 255, 255, 0)),
    var(--card);
  color: var(--screen-text);
  box-shadow:
    0 18px 38px rgba(103, 76, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.game-card:hover {
  border-color: rgba(244, 154, 62, 0.34);
  box-shadow:
    0 18px 42px rgba(103, 76, 42, 0.16),
    0 0 0 1px rgba(244, 154, 62, 0.08);
}

.game-card.is-done {
  border-color: rgba(215, 195, 160, 0.26);
  background:
    linear-gradient(180deg, rgba(215, 195, 160, 0.08), rgba(255, 255, 255, 0)),
    rgba(14, 58, 73, 0.8);
  opacity: 0.66;
}

.game-card.is-next {
  border-color: rgba(116, 217, 225, 0.54);
  box-shadow:
    0 0 0 1px rgba(116, 217, 225, 0.22),
    0 18px 42px rgba(103, 76, 42, 0.18);
}

.index-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 80, 103, 0.1);
  color: var(--teal-strong);
  font: 600 0.74rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.game-media {
  position: relative;
  display: grid;
  align-content: start;
}

.game-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(116, 217, 225, 0.34);
  border-radius: 999px;
  background: rgba(247, 242, 234, 0.92);
  box-shadow: 0 10px 20px rgba(104, 78, 44, 0.16);
  color: var(--teal-strong);
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.game-card.is-done .game-status-badge {
  opacity: 1;
  transform: translateY(0);
}

.game-media-link,
.game-title-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.game-media-link {
  display: block;
  width: 100%;
}

.game-media-link:focus-visible {
  outline: 0;
}

.game-art {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(215, 195, 160, 0.18);
  aspect-ratio: 184 / 69;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.14);
}

.game-media-link:hover .game-art {
  border-color: rgba(244, 154, 62, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(244, 154, 62, 0.14);
}

.game-media-link:focus-visible .game-art {
  outline: 0;
  border-color: rgba(116, 217, 225, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(116, 217, 225, 0.14),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

.game-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-head h3 {
  margin: 0;
}

.game-title-link {
  font-family: var(--card-title);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.05em;
  transition: color 0.18s ease;
}

.game-title-link:hover {
  color: var(--accent-strong);
}

.game-title-link:focus-visible {
  outline: 0;
  color: var(--teal);
}

.game-description {
  max-width: 60ch;
  margin: 0;
  color: var(--screen-muted);
  line-height: 1.7;
  min-width: 0;
}

.game-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.game-actions .button {
  width: min(210px, 100%);
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(136, 106, 68, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)),
    rgba(245, 238, 227, 0.88);
}

.empty-state p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translateX(-50%) translateY(16px);
  min-width: min(440px, calc(100vw - 24px));
  max-width: min(440px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid rgba(116, 217, 225, 0.28);
  border-radius: 18px;
  background: rgba(8, 56, 74, 0.94);
  color: var(--screen-text);
  box-shadow: var(--shadow);
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 4px;
  opacity: 0.98;
  transform: translate(-50%, -50%);
  animation: confetti-pop 880ms cubic-bezier(0.15, 0.82, 0.2, 1) forwards;
}

@keyframes confetti-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--x-offset)),
        calc(-50% + var(--y-offset))
      )
      scale(0.7)
      rotate(var(--rotation));
  }
}

@media (min-width: 760px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .hero-side {
    justify-items: end;
  }

  .progress-dial-wrap {
    justify-items: end;
  }

  .tag-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @supports (grid-template-rows: subgrid) {
    .tag-guide-grid {
      grid-template-rows: auto auto auto;
      gap: 22px 16px;
    }

    .tag-guide-step {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: 1 / -1;
    }

    .tag-guide-step > .tag-guide-shot {
      height: 100%;
      min-height: 0;
      object-fit: contain;
      object-position: top center;
    }

    .tag-guide-shot-frame {
      height: 100%;
      min-height: 0;
      align-self: stretch;
    }

    .tag-guide-shot-frame .tag-guide-shot {
      object-fit: contain;
      object-position: center center;
    }
  }

  .game-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .game-media {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .game-head {
    grid-column: 2;
    grid-row: 1;
  }

  .game-description {
    grid-column: 2;
    grid-row: 2;
  }

  .game-actions {
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: start;
    justify-self: end;
  }
}

@media (max-width: 759px) {
  .ix-shell {
    width: min(100%, calc(100% - 18px));
    margin-top: 12px;
  }

  .progress-dial-wrap {
    justify-items: start;
  }

  .button {
    width: 100%;
  }

  .game-card > .game-media,
  .game-card > .game-head,
  .game-card > .game-description,
  .game-card > .game-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .game-actions {
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .game-actions .button {
    width: 100%;
    min-width: 0;
  }

  .floating-progress-shell {
    top: max(10px, calc(env(safe-area-inset-top) + 6px));
    right: max(10px, calc(env(safe-area-inset-right) + 6px));
    padding: 8px;
    border-radius: 22px;
  }

  .progress-dial.is-floating {
    width: clamp(74px, 22vw, 86px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .floating-progress-shell {
    transition: opacity 0.01ms ease, transform 0.01ms ease;
  }

  .floating-progress-shell.is-visible {
    transform: translateY(0) scale(1);
  }

  .progress-fill {
    transition: none;
  }

  .game-card {
    transition: none;
  }

  .game-status-badge {
    transition: none;
  }

  .toast {
    transition: opacity 0.01ms ease, transform 0.01ms ease;
  }

  .toast.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .confetti {
    animation: none !important;
    opacity: 0 !important;
  }

  .shortcut-key,
  .shortcut-key:hover,
  .shortcut-key:active {
    transform: none;
    transition-duration: 0.01ms;
  }
}
