:root {
  color-scheme: light;
  --paper: #fff9f1;
  --ink: #291812;
  --muted: #65463a;
  --orange: #b92d18;
  --line: #ebd9c9;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

body {
  margin: 0;
  line-height: 1.55;
}

.shell {
  width: min(73rem, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin-inline: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 0.3rem;
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

.skip-link:focus {
  transform: none;
}

.site-header,
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 800 1.35rem/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  display: block;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem clamp(1rem, 3vw, 2rem);
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
}

.language-switch:not([hidden]) {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  white-space: nowrap;
}

.language-switch a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.65rem;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a:first-child {
  border-radius: 0.45rem 0 0 0.45rem;
}

.language-switch a + a {
  border-inline-start: 1px solid var(--line);
  border-radius: 0 0.45rem 0.45rem 0;
}

.language-switch a[aria-current="true"] {
  background: var(--orange);
  color: #fff;
}

.language-switch a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  padding-block: clamp(2.25rem, 5.5vw, 5.25rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 850;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.45rem, 6.85vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy p,
.section-heading p {
  max-width: 32ch;
  margin: 1.35rem 0 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.65rem 1.15rem;
  border-radius: 100vw;
  background: var(--ink);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--orange);
}

.button-icon {
  font-size: 1.2em;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(26rem, 44vw, 35rem);
  overflow: hidden;
  border-radius: clamp(1.5rem, 4vw, 2.75rem);
  background: radial-gradient(circle at 12% 13%, #ffba84, transparent 48%),
    linear-gradient(145deg, #f94b2d 7%, #ff835c 65%, #ffb75e);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle, #fff7e9 1px, transparent 1.6px) 0 0 / 18px 18px;
  opacity: 0.26;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid #fff4d998;
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem #fff5de24, 0 0 0 4.4rem #fff5de20;
}

.phone {
  overflow: hidden;
  border: 0.34rem solid #301a16;
  border-radius: clamp(0.95rem, 3vw, 1.65rem);
  background: #ff652e;
  box-shadow: 0 1rem 1.8rem #6c1d2829;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone {
  z-index: 1;
  width: clamp(10rem, 19vw, 13.9rem);
  transform: rotate(-7deg);
  box-shadow: 0 1.35rem 2.5rem #7d1e1d65;
}

.hero-wheel,
.hero-dice {
  position: absolute;
  width: 26%;
  height: auto;
  filter: drop-shadow(0 0.65rem 0.85rem #8836284d);
}

.hero-wheel {
  top: 15%;
  left: 4%;
  transform: rotate(-15deg);
}

.hero-dice {
  right: 3%;
  bottom: 11%;
  z-index: 2;
  transform: rotate(12deg);
}

.games {
  padding-block: clamp(2.25rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 35ch;
  margin: 0;
}

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

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39%;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.65rem);
  padding: clamp(1.1rem, 3vw, 2.1rem);
  border-radius: 1.6rem;
}

.feature-finger {
  background: #ffe2d9;
}

.feature-tools {
  background: #faebc5;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.feature p {
  max-width: 27ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.feature-phone {
  width: min(100%, 10.5rem);
  justify-self: center;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tool-list li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 750;
}

.tool-list img {
  display: block;
  width: min(100%, 5rem);
  height: 5rem;
  object-fit: contain;
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  background: #f7ebde;
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

:lang(zh-Hans) h1 {
  max-width: none;
  font-size: clamp(2.55rem, 5.8vw, 4.65rem);
  line-height: 1.12;
}

:lang(zh-Hans) h1 em {
  display: block;
}

:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  line-height: 1.2;
}

@media (max-width: 49rem) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.95rem, 10vw, 5rem);
  }

  .hero-visual {
    min-height: clamp(22rem, 79vw, 31rem);
  }

  .hero-phone {
    width: clamp(8.9rem, 37vw, 12.5rem);
  }
}

@media (max-width: 34rem) {
  .site-header {
    gap: 0.6rem;
  }

  .site-header .brand {
    gap: 0.4rem;
    font-size: 1.1rem;
  }

  .site-header .brand img {
    width: 2.25rem;
    height: auto;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem 0.65rem;
  }

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

@media (max-width: 23rem) {
  .feature p {
    font-size: 0.9rem;
  }

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