:root {
  color-scheme: dark;
  --ink: #fff8e4;
  --muted: #c8d7ce;
  --gold: #f4cf75;
  --green: #0a322e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #062622;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; }
a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.landscape {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 23, 22, .2), rgba(3, 24, 22, .3) 70%, #062622),
    url("./assets/desert-dusk.png") center 38% / cover no-repeat;
  pointer-events: none;
}
.page {
  width: min(100%, 476px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
}
.browser-note {
  position: relative;
  margin: 0 2px 24px;
  padding: 12px 40px 13px 16px;
  border: 1px solid rgba(245, 226, 175, .22);
  border-radius: 16px;
  background: rgba(6, 35, 31, .83);
  box-shadow: 0 8px 30px #00141126, inset 0 1px 0 #ffffff08;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.browser-note p { display: grid; gap: 4px; margin: 0; }
.browser-note strong { color: var(--gold); font-size: .875rem; line-height: 1.3; font-weight: 700; }
.browser-note span { color: #ebeee4; font-size: .875rem; line-height: 1.4; }
.browser-pointer { position: absolute; right: 5px; top: -12px; width: 34px; height: 46px; color: var(--gold); filter: drop-shadow(0 2px 4px #061d18); }
.profile {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(247, 213, 130, .38);
  border-radius: 28px;
  background: var(--green);
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 16, 13, .45), 0 0 0 5px #ffffff04;
}
.artwork { position: relative; overflow: hidden; }
.artwork::after {
  position: absolute;
  inset: 0;
  border-radius: 27px 27px 0 0;
  box-shadow: inset 0 1px 0 #fff8dc7a;
  background: linear-gradient(180deg, transparent 80%, #082d294d);
  content: "";
  pointer-events: none;
}
.game-cover { display: block; width: 100%; height: auto; aspect-ratio: 1504 / 960; }
.profile-content {
  position: relative;
  padding: 0 24px 30px;
  background: radial-gradient(ellipse at 50% 0%, #1c5141, transparent 80%), linear-gradient(180deg, #103e33, #072d29);
}
.game-avatar {
  position: relative;
  display: inline-block;
  width: 86px;
  height: 86px;
  margin-top: -36px;
  overflow: hidden;
  border: 4px solid #154434;
  outline: 1px solid #ecd68b9c;
  border-radius: 24px;
  background: #d5ad58;
  box-shadow: 0 8px 24px #001a1766;
  transform: rotate(-5deg);
}
.game-avatar img {
  position: absolute;
  max-width: none;
  width: 235%;
  height: auto;
  left: -66%;
  top: -65%;
  transform: rotate(5deg) scale(1.06);
}
.name-row { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 17px 0 27px; }
.name-row > span { height: 1px; width: 28px; background: linear-gradient(90deg, transparent, #ddc88988); }
.name-row > span:last-child { transform: rotate(180deg); }
h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-shadow: 0 2px 4px #001a1726;
}
.game-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  padding: 18px 12px;
  border: 1px solid #ffedaf;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe49a 0%, #f3c764 55%, #e7b44e 100%);
  color: #163f2c;
  box-shadow: 0 5px 0 #a5782d, 0 12px 30px #00000035, inset 0 2px 0 #fff4c8cc;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 850;
  letter-spacing: .015em;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
@media (hover: hover) { .game-link:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 7px 0 #a5782d, 0 16px 32px #00000040, inset 0 2px 0 #fff4c8cc; } }
.game-link:active { transform: translateY(3px); box-shadow: 0 2px 0 #a5782d, 0 7px 20px #00000035; }
.game-link:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }
@media (min-width: 600px) {
  .page { padding-top: 36px; }
  .landscape { background-position: center center; }
}
@media (max-width: 340px) {
  .page { padding-right: 12px; padding-left: 12px; padding-top: 20px; }
  .browser-note { padding-left: 13px; margin-bottom: 20px; }
  .profile-content { padding-right: 19px; padding-left: 19px; }
  .name-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .game-link { transition: none; } }
