:root {
  --bg: #21140f;
  --bg-deep: #130b08;
  --header: rgba(108, 70, 48, 0.94);
  --panel: rgba(65, 42, 31, 0.96);
  --panel-deep: rgba(43, 27, 21, 0.98);
  --line: rgba(239, 195, 128, 0.30);
  --line-strong: rgba(249, 208, 143, 0.48);
  --text: #fff8eb;
  --muted: #dfcdb8;
  --accent: #efc77e;
  --accent-strong: #f6d394;
  --accent-dark: #4a2b18;
  --danger: #d45c47;
  --danger-deep: #6f2924;
  --shadow: 0 24px 70px rgba(10, 5, 3, 0.42);
  --radius: 24px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 7%, rgba(207, 132, 69, 0.19), transparent 31%),
    radial-gradient(circle at 88% 24%, rgba(239, 190, 103, 0.10), transparent 29%),
    linear-gradient(180deg, #3b2419 0%, var(--bg) 43%, var(--bg-deep) 100%);
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(255, 244, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 224, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--accent-dark);
  background: var(--accent-strong);
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: var(--header);
  border-bottom: 1px solid rgba(255, 220, 166, 0.34);
  box-shadow: 0 8px 28px rgba(20, 10, 6, 0.20);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.brand__logo {
  width: 190px;
  max-height: 60px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 10px rgba(22, 10, 5, 0.28));
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.global-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: #ffe2ad;
  transform: translateY(-2px);
}

.creator-link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  min-width: 190px;
  padding: 10px 14px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(247, 197, 116, 0.19), rgba(91, 49, 30, 0.26));
  border: 1px solid rgba(255, 219, 158, 0.40);
  border-radius: 14px;
}

.creator-link span:first-child {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
}

.creator-link strong {
  grid-column: 1;
  font-size: 14px;
}

.creator-link span:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #ffd58c;
  font-size: 20px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 15, 10, 0.96) 0%, rgba(32, 18, 12, 0.74) 49%, rgba(28, 15, 10, 0.22) 100%),
    url("ss1.png") center / cover no-repeat;
  opacity: 0.58;
  filter: saturate(0.90) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 69%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 92px 0 110px;
}

.hero__copy {
  min-width: 0;
  max-width: 680px;
}

.hero__logo {
  width: min(540px, 90%);
  margin: 14px 0 24px;
  background: transparent;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.24;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.66);
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #f1dfca;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
}

.hero__lead-line {
  display: inline-block;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
}

.hero__download {
  display: grid;
  gap: 8px;
}

.hero__download-password {
  margin: 0;
  color: #f1dfca;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.button {
  min-height: 56px;
  padding: 14px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button--primary {
  color: #2d1a0d;
  background: linear-gradient(135deg, #f3c86a, #fff0b3);
  box-shadow: 0 14px 34px rgba(243, 200, 106, 0.28);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 236, 202, 0.28);
}

.button--disabled {
  color: #eadfce;
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 236, 202, 0.20);
  cursor: not-allowed;
}

.hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__specs li {
  padding: 7px 12px;
  color: #f2dfc7;
  background: rgba(39, 22, 15, 0.74);
  border: 1px solid rgba(240, 193, 126, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.screen-frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(145deg, rgba(240, 190, 112, 0.28), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(244, 198, 128, 0.40);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.screen-frame--hero {
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}

.screen-frame__label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 5px 9px;
  color: #2c180d;
  background: #efc57b;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero__badge {
  position: absolute;
  right: -26px;
  bottom: -24px;
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff9ef;
  background: radial-gradient(circle at 35% 30%, #ef9d59, #c44738 72%);
  border: 6px solid rgba(255, 248, 235, 0.18);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(180, 56, 43, 0.38);
  transform: rotate(8deg);
}

.hero__badge span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hero__badge strong {
  font-size: 26px;
  line-height: 1;
}

/* Shared sections */
.section {
  position: relative;
  padding: 112px 0;
}

.section__inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
}

.section-heading--center {
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.3;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* About */
.section--about {
  background: linear-gradient(180deg, rgba(36, 22, 16, 0.20), rgba(61, 38, 28, 0.16));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(75, 48, 35, 0.98), rgba(45, 28, 21, 0.97));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(10, 5, 3, 0.22);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 25%;
  height: 140px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(239, 185, 103, 0.15), transparent 70%);
}

.feature-card__number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.feature-card h3 {
  margin: 22px 0 8px;
  font-size: 22px;
  line-height: 1.45;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

/* Download */
.section--download {
  padding-top: 72px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  padding: 50px;
  background:
    linear-gradient(135deg, rgba(91, 55, 36, 0.95), rgba(45, 27, 20, 0.98)),
    url("ss3.png") center / cover no-repeat;
  border: 1px solid rgba(242, 193, 117, 0.40);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
}

.download-panel > div:first-child > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: #ead8c3;
  font-size: 17px;
}

.download-panel__action {
  display: grid;
  align-content: center;
  gap: 16px;
}

.download-card {
  display: grid;
  gap: 8px;
  padding: 34px;
  color: #2c190d;
  background: linear-gradient(145deg, #fff2bb, #f2c86f);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(243, 200, 106, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(243, 200, 106, 0.36);
}

.download-card__os {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.download-card strong {
  font-size: 25px;
  line-height: 1.3;
}

.download-password {
  margin: -4px 4px 0;
  color: #fff1d4;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.mobile-only-message {
  padding: 24px;
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 236, 202, 0.20);
  border-radius: 18px;
}

.mobile-only-message strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.mobile-only-message p {
  margin-bottom: 0;
  color: #eadfce;
}

/* Rules */
.section--rules {
  background: linear-gradient(180deg, rgba(29, 17, 12, 0.22), rgba(74, 45, 31, 0.14));
}

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

.rule-step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, rgba(74, 47, 35, 0.98), rgba(47, 29, 22, 0.97));
  border: 1px solid rgba(231, 185, 117, 0.36);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(10, 5, 3, 0.14);
}

.rule-step--delivery {
  background: linear-gradient(135deg, rgba(74, 47, 35, 0.98), rgba(47, 29, 22, 0.97));
  border-color: rgba(231, 185, 117, 0.36);
}

.rule-step__index {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #2b180d;
  background: linear-gradient(135deg, #f2cd86, #dca55b);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(220, 165, 91, 0.25);
  font-size: 26px;
  font-weight: 900;
}

.rule-step h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.rule-step p {
  margin: 0;
  color: var(--muted);
}

.rule-step__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a0f0b;
  border: 1px solid rgba(239, 195, 128, 0.18);
  border-radius: 14px;
}

.rule-step__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rule-step--blast {
  background: linear-gradient(135deg, rgba(101, 37, 30, 0.99), rgba(54, 23, 23, 0.98));
  border-color: rgba(235, 102, 73, 0.68);
}

.rule-step--blast .rule-step__index {
  color: #fff8ec;
  background: linear-gradient(135deg, #ec8b50, #c64039);
  box-shadow: 0 10px 28px rgba(199, 62, 55, 0.40);
}

/* More features */
.section--features {
  background:
    radial-gradient(circle at 12% 28%, rgba(222, 158, 84, 0.10), transparent 25%),
    linear-gradient(180deg, rgba(58, 35, 25, 0.18), rgba(30, 18, 13, 0.20));
}

.subfeature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.subfeature-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(145deg, rgba(72, 46, 34, 0.98), rgba(42, 26, 20, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(10, 5, 3, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.subfeature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 58px rgba(10, 5, 3, 0.30);
}

.subfeature-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #180e0a;
  border-bottom: 1px solid rgba(239, 195, 128, 0.20);
}

.subfeature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subfeature-card__body {
  padding: 28px 30px 32px;
}

.subfeature-card__body .eyebrow {
  margin-bottom: 6px;
}

.subfeature-card h3 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.4;
}

.subfeature-card__body > p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Credits */
.section--credits {
  padding-top: 92px;
  padding-bottom: 96px;
}

.credits-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.credits-list section {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(145deg, rgba(65, 41, 31, 0.96), rgba(40, 25, 19, 0.97));
  border: 1px solid rgba(239, 195, 128, 0.24);
  border-radius: 18px;
}

.credits-list h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
}

.credits-list p {
  margin: 7px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.credits-list a {
  text-decoration-color: rgba(239, 199, 126, 0.46);
  text-underline-offset: 4px;
}

.credits-list a:hover {
  color: var(--accent-strong);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: #120a07;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__logo {
  width: 180px;
  background: transparent;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-top-button {
  appearance: none;
  margin-left: auto;
  padding: 8px 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer-top-button:hover {
  color: var(--accent-strong);
}

/* Device mode and reveal */
.mobile-download-note {
  display: none;
}

.is-mobile-device .desktop-download-link,
.is-mobile-device .desktop-download-note {
  display: none !important;
}

.is-mobile-device .mobile-download-note {
  display: inline-flex;
}

.is-mobile-device .mobile-only-message.mobile-download-note {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .global-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 70px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero__visual {
    max-width: 720px;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero__lead-line {
    white-space: normal;
  }

  .rule-step {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .rule-step__image {
    grid-column: 1 / -1;
    width: min(720px, 100%);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 12px;
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .brand__logo {
    width: 160px;
  }

  .creator-link {
    min-width: auto;
    padding: 9px 11px;
  }

  .creator-link span:first-child {
    display: none;
  }

  .creator-link strong {
    font-size: 12px;
  }

  .creator-link span:last-child {
    grid-row: auto;
  }

  .hero::before {
    background-position: 62% center;
    opacity: 0.36;
  }

  .hero__inner {
    gap: 36px;
    padding: 54px 0 80px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    margin-top: 12px;
  }

  .screen-frame--hero {
    transform: none;
  }

  .hero__badge {
    right: -4px;
    bottom: -26px;
    width: 112px;
  }

  .hero__badge strong {
    font-size: 22px;
  }

  .section {
    padding: 80px 0;
  }

  .feature-grid,
  .subfeature-grid,
  .credits-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .download-panel {
    gap: 30px;
    padding: 28px 22px;
  }

  .rule-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .rule-step__index {
    width: 46px;
    font-size: 20px;
  }

  .rule-step h3 {
    font-size: 22px;
  }

  .subfeature-card__body {
    padding: 24px 24px 28px;
  }

  .subfeature-card h3 {
    font-size: 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top-button {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    width: min(100% - 20px, var(--content));
  }

  .brand__logo {
    width: 135px;
  }

  .creator-link strong {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 27px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .download-card {
    padding: 28px 24px;
  }

  .download-card strong {
    font-size: 22px;
  }
}

@media (max-width: 720px) and (pointer: coarse) {
  .desktop-download-link,
  .desktop-download-note {
    display: none !important;
  }

  .mobile-download-note {
    display: inline-flex;
  }

  .mobile-only-message.mobile-download-note {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Download destination modal */
[hidden] {
  display: none !important;
}

body.is-modal-open {
  overflow: hidden;
}

.download-card {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.download-card__hint {
  color: rgba(44, 25, 13, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(14, 7, 4, 0.78);
  backdrop-filter: blur(10px);
  animation: download-modal-fade-in 0.22s ease-out both;
}

.download-modal__panel {
  position: relative;
  width: min(760px, 100%);
  padding: 42px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(239, 199, 126, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(79, 50, 36, 0.99), rgba(36, 21, 16, 0.99));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(8, 4, 2, 0.62);
  animation: download-modal-panel-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes download-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes download-modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.download-modal__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 236, 202, 0.22);
  border-radius: 50%;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.download-modal__close:hover,
.download-modal__close:focus-visible {
  background: rgba(255, 248, 235, 0.16);
  transform: rotate(6deg);
}

.download-modal h2 {
  margin: 0;
  padding-right: 48px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
}

.download-modal__lead {
  margin: 14px 0 0;
  color: var(--muted);
}

.download-modal__choices {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.download-option {
  text-decoration: none;
}

.download-option--primary {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 28px 32px;
  color: #2c190d;
  background: linear-gradient(145deg, #fff1b7, #efc36b);
  border: 1px solid rgba(255, 239, 183, 0.88);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(239, 195, 107, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-option--primary:hover,
.download-option--primary:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #fff5c9, #f4ca78);
  border-color: #fff3c2;
}

.download-option__service {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  opacity: 0.76;
}

.download-option--primary strong {
  font-size: 22px;
  line-height: 1.45;
}

.download-option__meta {
  font-size: 14px;
  font-weight: 800;
}

.download-modal__alternative {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.download-modal__alternative a {
  color: #ffe0a3;
  font-weight: 800;
  text-underline-offset: 4px;
}

.download-modal__alternative a:hover,
.download-modal__alternative a:focus-visible {
  color: #fff2cc;
}

.download-modal__alternative span {
  white-space: nowrap;
}

.download-modal__notice {
  margin: 18px 0 0;
  color: #ead8c3;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .download-modal {
    padding: 14px;
  }

  .download-modal__panel {
    padding: 34px 20px 24px;
    border-radius: 22px;
  }

  .download-option--primary {
    min-height: 146px;
    padding: 24px;
  }
}

/* Update history and release notes */
.section--updates {
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 199, 126, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(48, 29, 21, 0.98), rgba(35, 20, 15, 0.98));
}

.release-list {
  width: min(820px, 100%);
  margin: 34px auto 0;
}

.release-entry {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(145deg, rgba(96, 61, 42, 0.86), rgba(60, 35, 26, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(12, 6, 3, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.release-entry:hover,
.release-entry:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 224, 163, 0.72);
  background: linear-gradient(145deg, rgba(108, 70, 47, 0.92), rgba(67, 39, 28, 0.98));
}

.release-entry__version {
  color: #2c190d;
  background: linear-gradient(145deg, #fff1b7, #efc36b);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.release-entry__summary {
  font-weight: 800;
}

.release-entry__action {
  color: #ffe0a3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.release-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(14, 7, 4, 0.82);
  backdrop-filter: blur(10px);
}

.release-modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 42px;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 8%, rgba(239, 199, 126, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(79, 50, 36, 0.99), rgba(36, 21, 16, 0.99));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(8, 4, 2, 0.65);
}

.release-modal__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 236, 202, 0.22);
  border-radius: 50%;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.release-modal h2 {
  margin: 0;
  padding-right: 48px;
  font-size: clamp(30px, 4vw, 44px);
}

.release-modal__lead {
  margin: 12px 0 0;
  color: var(--muted);
}

.release-notes {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.release-notes section {
  padding: 20px 22px;
  background: rgba(255, 248, 235, 0.055);
  border: 1px solid rgba(255, 236, 202, 0.13);
  border-radius: 16px;
}

.release-notes h3 {
  margin: 0 0 10px;
  color: #ffe0a3;
  font-size: 18px;
}

.release-notes ul {
  margin: 0;
  padding-left: 1.4em;
}

.release-notes li + li {
  margin-top: 7px;
}

.release-notes ul ul {
  margin-top: 6px;
}

.release-modal__summary {
  margin: 22px 0 0;
  padding: 18px 20px;
  color: #f8e8d0;
  background: rgba(239, 195, 107, 0.10);
  border-left: 4px solid #efc36b;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .release-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .release-entry__version {
    justify-self: start;
  }

  .release-entry__action {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .release-modal {
    padding: 14px;
  }

  .release-modal__panel {
    max-height: calc(100vh - 28px);
    padding: 34px 20px 24px;
    border-radius: 22px;
  }
}

.release-entry + .release-entry {
  margin-top: 14px;
}


/* Modest link from the rules section to strategy hints */
.rules-hint-link {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 248, 235, 0.045);
  border: 1px solid rgba(239, 195, 128, 0.18);
  border-radius: 14px;
}

.rules-hint-link strong {
  color: #f7dfb6;
  font-size: 14px;
}

.rules-hint-link p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rules-hint-link a {
  flex: 0 0 auto;
  color: #f4d8a6;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.rules-hint-link a:hover,
.rules-hint-link a:focus-visible {
  color: #fff2cc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .rules-hint-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
