/* Shared button surfaces — approved design A. Layout stays with each component. */
:root {
  --control-radius: 10px;
  --control-focus: #238ae6;
  --control-duration: 150ms;
}

/* The primary home action has its own approved ring treatment. */
.hero-start {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  min-height: 96px;
  margin-top: 4px;
  padding: 4px 5px 4px 8px;
  border-radius: 14px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.045em;
}
.hero-start-orb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border: 2px solid #ffdbbc;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9880, #ff7163 65%, #ed5948);
  color: #5d1e12;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .5), 0 0 0 2px rgba(255, 113, 99, .25), 0 0 22px rgba(255, 100, 77, .48);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.hero-start-orb::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 5px solid transparent;
  border-top-color: var(--lime);
  border-radius: 50%;
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 4px rgba(217, 255, 74, .22));
  transition: transform 260ms ease;
}
.hero-start-orb .icon { width: 52px; height: 52px; stroke-width: 3.2; }
.hero-start-label { position: relative; padding: 4px 0 12px; white-space: nowrap; text-shadow: 0 2px 10px rgba(7, 19, 30, .65); }
.hero-start-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 4px;
  border-radius: 4px;
  background: var(--lime);
  transform-origin: left;
  transition: transform 220ms ease;
}
.hero-start:focus-visible { outline: 3px solid var(--control-focus); outline-offset: 8px; }
.home-hero .hero-all-link { margin-top: 16px; }
@media (hover: hover) and (pointer: fine) {
  .hero-start:hover .hero-start-orb { transform: translateX(3px); box-shadow: inset 0 1px 3px rgba(255, 255, 255, .5), 0 0 0 2px rgba(255, 113, 99, .3), 0 0 30px rgba(255, 100, 77, .62); }
  .hero-start:hover .hero-start-orb::before { transform: rotate(5deg); }
  .hero-start:hover .hero-start-label::after { transform: scaleX(1.3); }
}
.hero-start:active .hero-start-orb { transform: scale(.95); }
@media (max-width: 760px) {
  .hero-start { gap: 19px; font-size: clamp(24px, 4.8vw, 34px); min-height: 84px; }
  .hero-start-orb { width: 74px; height: 74px; }
  .hero-start-orb .icon { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .hero-start { width: 100%; gap: 17px; min-height: 74px; padding-left: 8px; font-size: clamp(20px, 5.5vw, 28px); letter-spacing: -.055em; }
  .hero-start-orb { width: 60px; height: 60px; }
  .hero-start-orb::before { inset: -9px; border-width: 4px; }
  .hero-start-orb .icon { width: 37px; height: 37px; }
  .hero-start-label { padding-bottom: 10px; }
  .hero-start-label::after { height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-start:is(:hover, :active) .hero-start-orb { transform: none; }
  .hero-start:hover .hero-start-orb::before { transform: rotate(-45deg); }
  .hero-start:hover .hero-start-label::after { transform: none; }
}

:is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
    .has-detected-os .download-os, .detail-genre-finders a, .pc-vendor,
    .finder-pc-hardware .pc-vendor, .platform-switcher a, .pagination a,
    .pagination .current, .finder-answer) {
  border: 1px solid var(--control-border, #537c98);
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 75%), var(--control-surface, #102b3e);
  color: var(--control-text, #f5f9fc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 var(--control-depth, 3px) 0 var(--control-ledge, #061925), 0 6px 10px rgba(7, 19, 30, .1);
  text-decoration: none;
  transform: none;
  transition: transform var(--control-duration) ease, box-shadow var(--control-duration) ease, filter var(--control-duration) ease;
  -webkit-tap-highlight-color: transparent;
}

/* Coral actions and lime selections share the same tactile bottom edge. */
.button-coral, .entry-content .article-finder-button, .game-search-form .button,
.pagination .current {
  --control-surface: var(--coral);
  --control-border: #ff9a8c;
  --control-ledge: #b74739;
  --control-text: var(--ink);
}
.download-site-primary, .finder-answer.is-selected,
.pc-vendor[aria-pressed="true"], .finder-pc-hardware .pc-vendor[aria-pressed="true"],
html[data-home-platform="pc"] .platform-switcher [data-home-platform-link="pc"],
html[data-home-platform="console"] .platform-switcher [data-home-platform-link="console"],
html[data-home-platform="mobile"] .platform-switcher [data-home-platform-link="mobile"],
html[data-home-platform="all"] .platform-switcher [data-home-platform-link="all"] {
  --control-surface: var(--lime);
  --control-border: #a1b93b;
  --control-ledge: #819b25;
  --control-text: var(--ink);
  border-color: var(--control-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 75%), var(--control-surface);
  color: var(--control-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--control-ledge), 0 6px 10px rgba(7, 19, 30, .08);
}
.pc-vendor, .platform-switcher a, .pagination a {
  --control-surface: #f7f9fc;
  --control-border: #9bb1c3;
  --control-ledge: #d3dfe8;
  --control-text: #233e53;
  --control-depth: 2px;
}
.finder-pc-hardware .pc-vendor {
  --control-surface: #102b3e;
  --control-border: #537c98;
  --control-ledge: #061925;
  --control-text: #f5f9fc;
}
/* Keep the existing wording and SVGs, with a quieter divided arrow area. */
.button { padding: 15px 23px; min-height: 54px; }
.button-large { min-height: 60px; }
.button > svg:last-child:not(:first-child) {
  flex: none;
  width: 36px;
  height: 24px;
  padding-left: 13px;
  border-left: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 23%, transparent);
}
.entry-content .article-finder-button { padding: 14px 18px 14px 23px; filter: none; }
.article-finder-button-icon {
  width: 34px;
  height: 26px;
  padding-left: 13px;
  border-left: 1px solid rgba(7, 19, 30, .23);
  border-radius: 0;
  background: none;
}
.finder-back { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; line-height: 1.4; }
.finder-controls .button, .finder-results-footer .button { min-height: 50px; }
.finder-result-actions .button { min-height: 46px; }
.detail-genre-finders a { min-height: 50px; padding: 13px 16px; }
.detail-genre-finders a > .icon { width: 30px; height: 22px; padding-left: 10px; border-left: 1px solid #537c98; }

/* Downloads keep their platform visibility and explicit OS alternatives. */
.download-action > .icon, .download-brand-pair { color: #f5f9fc; }
.download-action .download-arrow { color: #c3d5e1; }
.download-copy small { color: #c3d5e1; }
.download-site-primary { min-height: 52px; }
.has-detected-os .download-os { --control-depth: 2px; }
.download-official-site { padding-inline: 4px; text-underline-offset: 4px; }
.download-official-site:hover { text-decoration: underline; }

/* The check makes a selected vendor distinguishable without color alone. */
.pc-vendor { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; line-height: 1.35; }
.pc-vendor::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12 5 5L20 6' fill='none' stroke='%2307131e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
}
.pc-vendor[aria-pressed="true"]::before { opacity: 1; }
.pc-vendor-other { min-height: 44px; }
.pagination { gap: 12px; }
.pagination a, .pagination .current { min-width: 44px; min-height: 44px; font-weight: 800; }
.pagination .dots { min-width: 16px; padding-inline: 0; border: 0; background: none; }
.finder-answer-copy { padding-right: 35px; }
.finder-answer.is-selected .finder-answer-copy > span { color: #293d19; }
.finder-answer-mark { background: transparent; color: var(--ink); }

/* Compact navigation controls use the same radius without competing with CTAs. */
.header-search, .menu-toggle { border-radius: var(--control-radius); transition: background-color var(--control-duration) ease; }
.header-search:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: #17384a; color: var(--lime); }
.discovery-card, .finder-select-card, .finder-platform-card { border-radius: var(--control-radius); }
.discovery-card-arrow { border-radius: 6px; }

@media (hover: hover) and (pointer: fine) {
  :is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
      .has-detected-os .download-os, .detail-genre-finders a, .pc-vendor,
      .finder-pc-hardware .pc-vendor, .platform-switcher a, .pagination a,
      .finder-answer):not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-1px);
    filter: brightness(1.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 0 var(--control-ledge, #061925), 0 8px 14px rgba(7, 19, 30, .16);
  }
}
:is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
    .has-detected-os .download-os, .detail-genre-finders a, .pc-vendor,
    .finder-pc-hardware .pc-vendor, .platform-switcher a, .pagination a,
    .finder-answer):not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(2px);
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 var(--control-ledge, #061925);
}
:is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
    .detail-genre-finders a, .pc-vendor, .platform-switcher a, .pagination a,
    .finder-answer, .header-search, .menu-toggle):focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 4px;
}
:is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
    .detail-genre-finders a, .pc-vendor, .finder-answer):is(:disabled, [aria-disabled="true"]) {
  background: #273d4d;
  color: #a0b3c2;
  border-color: #627c8f;
  box-shadow: none;
  opacity: .65;
  transform: none;
  filter: none;
  cursor: not-allowed;
}
.tool-form .button:disabled { cursor: wait; }

@media (max-width: 520px) {
  .finder-controls { align-items: stretch; gap: 12px; }
  .finder-controls > button { flex: 1; }
  .finder-back { padding: 12px; }
  .finder-controls .button { padding-inline: 12px; gap: 8px; }
  .button > svg:last-child:not(:first-child) { width: 31px; padding-left: 10px; }
  .entry-content .article-finder-button { padding-inline: 16px; }
  .pc-vendor { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.button, .entry-content .article-finder-button, .finder-back, .download-action,
      .has-detected-os .download-os, .detail-genre-finders a, .pc-vendor,
      .finder-pc-hardware .pc-vendor, .platform-switcher a, .pagination a,
      .finder-answer):not(:disabled):not([aria-disabled="true"]):is(:hover, :active) { transform: none; }
}
