* { box-sizing: border-box }
body {
  margin: 0;
  min-height: 100vh;
  color: #17243b;
  background: var(--page-background);
  font: 16px/1.35 system-ui, sans-serif;
}
[data-region="arg"] {
  --page-background: radial-gradient(ellipse at 70% 8%, #d7edff, transparent 30rem), #f7fbff;
  --accent: #195da0;
  --highlight: #def1ff;
  --line: #c9dfee;
  --radius: 1.65rem;
  --card-shadow: 0 8px 26px #21518119;
}
[data-region="brazil"] {
  --page-background: radial-gradient(ellipse at 85% 4%, #fff1b1, transparent 21rem), linear-gradient(#e7f8e9, #f8fcf1);
  --accent: #145a37;
  --highlight: #e4f6c9;
  --line: #c4dfc7;
  --radius: 1.15rem 2rem 1.15rem 2rem;
  --card-shadow: 0 5px 0 #c6e4cc;
}
[data-region="colmb"] {
  --page-background: radial-gradient(ellipse at 13% 10%, #f6e2fc, transparent 25rem), #fcf9ff;
  --accent: #66348a;
  --highlight: #f0e2fa;
  --line: #e0ccec;
  --radius: 1.2rem;
  --card-shadow: 0 8px 24px #62307b1d;
}
[data-region="peru"] {
  --page-background: radial-gradient(ellipse at 14% 0, #f9dbc8, transparent 26rem), #fffaf3;
  --accent: #933f2a;
  --highlight: #f8e8d9;
  --line: #e8cdbb;
  --radius: .85rem;
  --card-shadow: 0 5px 20px #572e1f17;
}
[data-region="chili"] {
  --page-background: radial-gradient(ellipse at 80% 8%, #dae5f6, transparent 26rem), #f3f6fb;
  --accent: #233d65;
  --highlight: #e1e9f4;
  --line: #c9d5e7;
  --radius: .7rem;
  --card-shadow: 0 5px 20px #1832521a;
}
[data-region="venez"] {
  --page-background: radial-gradient(ellipse at 30% 5%, #cbeee7, transparent 26rem), #f2fbf9;
  --accent: #155950;
  --highlight: #d3eee7;
  --line: #abd6cb;
  --radius: 1.35rem;
  --card-shadow: 0 7px 24px #0e4b4530;
}
main { width: min(100%, 38rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.25rem) 1rem 2.5rem }
.page-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
  padding: .65rem 0;
}
.brand-mark {
  display: grid;
  flex: 0 0 clamp(2.85rem, 13vw, 3.6rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 1rem;
  background: #37262c;
  box-shadow: 0 4px 12px #36262b25;
}
.brand-mark::before {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffcf7c 0 25%, #37262c 27% 36%, transparent 39%),
    repeating-conic-gradient(from 15deg, #ffda94 0deg 9deg, transparent 10deg 45deg);
  content: "";
}
h1 {
  margin: 0 0 .3rem;
  color: var(--accent);
  font-size: clamp(2.05rem, 8.4vw, 3.35rem);
  line-height: .99;
  letter-spacing: -.065em;
}
.country {
  display: inline-block;
  margin: 0;
  padding: .13rem .48rem;
  border-radius: 2rem;
  background: var(--highlight);
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
}
nav { display: grid; gap: .9rem }
.game-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .42rem;
  min-height: clamp(7.5rem, 30vw, 10.5rem);
  padding: .8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--highlight);
  box-shadow: var(--card-shadow);
  color: #11263a;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.game-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--highlight) 6%, #ffffffeb 35%, transparent 74%);
  content: "";
}
.game-label {
  max-width: 68%;
  font-size: clamp(1.1rem, 4.75vw, 1.9rem);
  font-weight: 830;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.game-control {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: .3rem .55rem;
  border: 1px solid #ffffff85;
  border-radius: 2rem;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
}
.game-control::before {
  border: .23rem solid transparent;
  border-left: .38rem solid currentColor;
  border-right: 0;
  content: "";
}
.game-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
@media (hover: hover) {
  .game-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #1623392b }
}
@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none }
}
[data-region="arg"] .page-header { padding-bottom: .7rem; border-bottom: 1px solid var(--line) }
[data-region="brazil"] .game-card { border: 2px solid #79a984 }
[data-region="brazil"] .country { background: #f8e49b }
[data-region="colmb"] .page-header {
  padding: .7rem .85rem .8rem;
  border: 1px solid #e6d3ee;
  border-radius: 1.2rem;
  background: linear-gradient(110deg, #f4e4fc, #fff4d2);
}
[data-region="colmb"] .game-control { border-radius: .6rem }
[data-region="peru"] h1 { font-family: Georgia, serif; font-weight: 700 }
[data-region="peru"] .game-card { border-left: .25rem solid #a34a34 }
[data-region="peru"] .country { border-radius: .3rem }
[data-region="chili"] .page-header {
  padding-left: .7rem;
  border-left: .25rem solid #ad3b45;
}
[data-region="chili"] .country { border-radius: .2rem }
[data-region="chili"] .game-control { border-radius: .4rem; background: #953441 }
[data-region="venez"] .page-header { padding-bottom: .65rem; border-bottom: 2px solid #dbac57 }
[data-region="venez"] .game-card::before { background: linear-gradient(90deg, #0d3737f5, #0d3737a6 42%, transparent 80%) }
[data-region="venez"] .game-label { color: #fff }
[data-region="venez"] .game-control { border-color: #ffe9b6; background: #f5d485; color: #17243b }


.browser-guide {
  --guide-ink: #17243b;
  --guide-accent: #2954c5;
  margin-top: 1.6rem;
  padding: 1.15rem clamp(.65rem, 3.7vw, 1.5rem) 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: #fff;
  color: var(--guide-ink);
}
.browser-guide h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  letter-spacing: -.025em;
}
.guide-steps {
  display: grid;
  gap: 1.25rem;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.step-text {
  margin: 0 0 .7rem;
  text-align: center;
  font-size: clamp(.72rem, 2.75vw, .875rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-wrap: balance;
}
.step-number { color: var(--guide-accent) }
.browser-example {
  padding: .45rem;
  border: 1px solid #e3e7ee;
  border-radius: 1rem;
  background: #f5f7fb;
}
.browser-window, .menu-sheet {
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 7px #17243b0d;
}
.browser-toolbar {
  display: grid;
  grid-template-columns: .8rem .8rem minmax(0, 1fr) 1.55rem;
  align-items: center;
  justify-items: center;
  gap: clamp(.35rem, 2vw, .8rem);
  padding: .6rem .65rem;
  border-bottom: 1px solid #e7ebf0;
}
.browser-title { text-align: center; line-height: 1.2 }
.browser-title strong { display: block; font-size: clamp(.72rem, 3vw, .95rem) }
.browser-title small { display: block; margin-top: .15rem; color: #5c6779; font-size: .72rem }
.icon-back {
  width: .48rem;
  height: .48rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.icon-close { position: relative; width: .75rem; height: .75rem }
.icon-close::before, .icon-close::after {
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}
.icon-close::after { transform: rotate(-45deg) }
.browser-dots {
  display: flex;
  justify-content: center;
  gap: .15rem;
  padding: .35rem .25rem;
  border-radius: .45rem;
  background: #edf3ff;
}
.browser-dots i { width: .17rem; height: .17rem; border-radius: 50%; background: currentColor }
.browser-message {
  position: relative;
  margin: 0;
  padding: .75rem 3.25rem .75rem 2rem;
  background: #f6f9ff;
  color: var(--guide-accent);
  text-align: center;
  font-size: clamp(.8rem, 3.4vw, 1rem);
  font-weight: 750;
}
.callout-arrow { position: absolute; width: clamp(2.25rem, 10vw, 2.85rem); height: 4px; background: var(--guide-accent) }
.callout-arrow::after {
  position: absolute;
  top: 50%;
  right: -1px;
  border: .38rem solid transparent;
  border-left-color: var(--guide-accent);
  border-right: 0;
  content: "";
  transform: translateY(-50%);
}
.browser-message .callout-arrow { top: -.75rem; right: 1.3rem; transform: rotate(-56deg); transform-origin: right center }
.menu-sheet { padding: .18rem .65rem }
.menu-row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  min-height: 2.55rem;
  padding: .45rem .35rem;
  font-size: clamp(.8rem, 3.3vw, .97rem);
  line-height: 1.25;
}
.menu-row + .menu-row { border-top: 1px solid #e7ebf0 }
.menu-current {
  position: relative;
  padding-right: 3.2rem;
  border-radius: .35rem;
  background: #f0f5ff;
  font-weight: 750;
}
.menu-current .callout-arrow { right: .3rem; transform: rotate(155deg) }
.menu-icon { position: relative; display: block; width: 1.05rem; height: 1.05rem }
.icon-flag { border-left: 2px solid currentColor }
.icon-flag::before {
  position: absolute;
  top: 0;
  left: 0;
  width: .7rem;
  height: .52rem;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 20% 34% 25% 26%;
  content: "";
}
.icon-compass { border: 2px solid currentColor; border-radius: 50% }
.icon-compass::before {
  position: absolute;
  inset: 1px;
  background: currentColor;
  clip-path: polygon(75% 10%, 62% 63%, 21% 87%, 38% 36%);
  content: "";
}
.icon-link { transform: rotate(-45deg) }
.icon-link::before, .icon-link::after {
  position: absolute;
  top: .27rem;
  width: .51rem;
  height: .42rem;
  border: 2px solid currentColor;
  content: "";
}
.icon-link::before { left: -.04rem; border-right: 0; border-radius: .3rem 0 0 .3rem }
.icon-link::after { right: -.04rem; border-left: 0; border-radius: 0 .3rem .3rem 0 }
.icon-link i { position: absolute; top: .47rem; left: .25rem; right: .25rem; height: 2px; background: currentColor }

[data-region="home"] {
  --page-background: radial-gradient(ellipse at 75% 0, #ffe7b3, transparent 28rem), #fff9ef;
  --accent: #724023;
}
.home { padding-top: clamp(2rem, 9vw, 5.5rem) }
.home h1 { margin: 0 }
.country-picker {
  gap: 1.05rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #eadbc9;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 26px #59311112;
}
.country-picker h2 {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  letter-spacing: -.03em;
}
.country-picker h2 span {
  display: block;
  margin-top: .18rem;
  color: #5d5660;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.country-list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--highlight);
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}
.country-list a:hover { border-color: currentColor }
.country-list a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px }
