/* Compete tabs, the privacy map demo, the free receipt and the extras grid. */

.compete { padding-bottom: 122px; padding-top: 122px; }
.compete-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.mode-tabs { display: grid; gap: 12px; align-content: start; }
.mode-tab { display: flex; gap: 18px; align-items: center; width: 100%; padding: 20px 22px; border: 2px solid var(--ink); border-radius: 22px; color: var(--ink); background: var(--card); text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.mode-tab:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.mode-tab[aria-selected="true"] { color: var(--paper); background: var(--ink); box-shadow: 6px 6px 0 var(--pink); transform: translate(-3px, -3px); }
.mode-tab b { font-size: 11px; font-weight: 900; opacity: .6; }
.mode-tab strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; }
.mode-tab small { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: .7; }
.mode-stage { position: relative; display: grid; min-height: 460px; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--yellow); }
.mode-stage::before { content: ""; position: absolute; right: -110px; bottom: -110px; width: 330px; height: 330px; border-radius: 50%; background: var(--pink); }
.mode-panel { position: relative; display: grid; place-items: center; padding: 36px; }
.mode-panel[hidden] { display: none; }
.mode-panel:focus-visible { outline-offset: -8px; }
.mode-panel > div { width: min(100%, 440px); padding: 26px; border: 2px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 8px 8px 0 var(--ink); }
.stage-tag { margin: 0; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.stage-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.duel-row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.duel-side { display: grid; justify-items: center; gap: 6px; }
.duel-side strong { font-size: 13px; font-weight: 850; text-transform: uppercase; }
.duel-side em { font-family: var(--display); font-size: 38px; font-style: normal; }
.duel-side:first-child em { color: var(--pink); }
.avatar { display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--display); font-size: 26px; }
.avatar-you { color: white; background: var(--pink); }
.avatar-rival { background: var(--yellow); }
.duel-vs { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--yellow); background: var(--ink); font-family: var(--display); font-size: 22px; transform: rotate(-8deg); }
.duel-bar { display: flex; height: 16px; margin-top: 22px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; }
.duel-bar i { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1) .15s; }
.duel-you { flex: 412; background: var(--pink); transform-origin: left; }
.duel-rival { flex: 388; background: var(--yellow); transform-origin: right; }
.mode-panel.is-live .duel-bar i { transform: scaleX(1); }

.legend-card { text-align: center; }
.legend-crown { margin-top: 12px; color: var(--pink); font-size: 58px; line-height: 1; transform: rotate(-6deg) scale(.4); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .1s; }
.mode-panel.is-live .legend-crown { transform: rotate(-6deg) scale(1); }
.legend-title { margin: 6px 0 0; font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.legend-board { display: grid; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; text-align: left; }
.legend-board li { display: grid; grid-template-columns: 62px 1fr 32px; gap: 12px; align-items: center; font-size: 13px; font-weight: 800; }
.legend-board b { font-family: var(--display); font-size: 20px; font-weight: 400; text-align: right; }
.legend-bar { height: 12px; border-radius: 999px; background: #d9cfc0; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .2s; }
.mode-panel.is-live .legend-bar { transform: scaleX(1); }
.legend-1 { width: 100%; background: var(--pink); }
.legend-2 { width: 87%; } .legend-3 { width: 61%; }

.territory-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 18px; }
.territory-grid i { aspect-ratio: 1; border-radius: 3px; background: #ece3d4; transition: background .25s ease, transform .25s ease; }
.territory-grid i.is-you { background: var(--pink); transform: scale(1.08); }
.territory-grid i.is-rival { background: var(--yellow); transform: scale(1.08); }
.territory-score { display: flex; gap: 22px; margin-top: 16px; font-size: 13px; font-weight: 850; text-transform: uppercase; }
.territory-score span { display: flex; align-items: center; gap: 8px; }
.territory-score b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.territory-score i { width: 14px; height: 14px; border-radius: 4px; }
.swatch-you { background: var(--pink); } .swatch-rival { background: var(--yellow); outline: 1px solid var(--ink); }

.privacy-demo { width: min(100%, 470px); }
.privacy-map { position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: 10px 10px 0 var(--pink); }
.privacy-map svg { display: block; width: 100%; height: auto; }
.map-streets path { fill: none; stroke: #e6dccb; stroke-width: 9; }
.map-zone { fill: rgba(255, 51, 92, .12); stroke: var(--pink); stroke-dasharray: 6 6; stroke-width: 2; transition: opacity .35s ease; }
.map-route { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; transition: opacity .35s ease; }
.map-home circle { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.map-home path { fill: white; }
.map-home { transition: opacity .35s ease; }
.map-cut circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; opacity: 0; transition: opacity .35s ease; }
.map-caption { position: absolute; right: 16px; bottom: 14px; left: 16px; margin: 0; padding: 10px 12px; border-radius: 12px; color: var(--paper); background: var(--ink); font-size: 13px; font-weight: 750; transition: opacity .35s ease; }
.map-caption-public { opacity: 0; }
.privacy-demo[data-view="public"] :is(.map-route-end, .map-zone, .map-home, .map-caption-you) { opacity: 0; }
.privacy-demo[data-view="public"] :is(.map-cut circle, .map-caption-public) { opacity: 1; }
.view-switch { display: flex; gap: 6px; margin-top: 26px; padding: 6px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); }
.view-switch button { flex: 1; padding: 12px 10px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 850; cursor: pointer; }
.view-switch button[aria-pressed="true"] { color: white; background: var(--pink); }

.receipt-band { overflow: hidden; border-block: 2px solid var(--ink); background: var(--yellow); }
.receipt-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-block: 110px; }
.receipt-layout > * { min-width: 0; }
.receipt-band .eyebrow span { background: var(--ink); }
.receipt-copy h2 em { color: #cf2148; }
.receipt-copy > p:not(.eyebrow) { max-width: 470px; margin: 28px 0 0; font-size: 18px; font-weight: 520; line-height: 1.6; }
.receipt { position: relative; justify-self: center; width: min(100%, 380px); padding: 30px 28px 26px; background: var(--card); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; box-shadow: 0 30px 50px rgba(28, 23, 20, .2); transform: rotate(2.5deg); }
.receipt::after { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 10px; background: conic-gradient(from 135deg at top, var(--card) 90deg, transparent 0) 50% 0 / 16px 10px repeat-x; }
.receipt-head { margin: 0 0 20px; font-family: var(--display); font-size: 34px; letter-spacing: .08em; line-height: 1; text-align: center; text-transform: uppercase; }
.receipt-head small { display: block; margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .05em; color: var(--muted); }
.receipt ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 0; margin: 0; border-block: 2px dashed var(--line); list-style: none; }
.receipt li, .receipt-total { display: flex; gap: 8px; align-items: baseline; }
.receipt li span, .receipt-total span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.receipt li span::after { content: " ............................................"; color: var(--muted); }
.receipt-total { margin: 16px 0 0; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.receipt-total b { position: relative; color: #cf2148; }
.receipt-total b::after { content: "PAID"; position: absolute; top: -4px; right: calc(100% + 22px); padding: 2px 8px; border: 3px solid #cf2148; border-radius: 6px; font-size: 16px; letter-spacing: .1em; transform: rotate(-14deg) scale(1.8); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1) 1s, opacity .2s ease 1s; }
.receipt-band.is-visible .receipt-total b::after { opacity: .85; transform: rotate(-14deg) scale(1); }
.receipt-barcode { height: 46px; margin-top: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }
.receipt-foot { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: center; text-transform: uppercase; }
.js .receipt { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s steps(14); }
.js .receipt-band.is-visible .receipt { clip-path: inset(0 0 -20px 0); }

.extras { padding-block: 122px 110px; }
.extras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more { padding-block: 40px 110px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more-grid li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); }
.more-grid li:nth-child(4n + 1) { border-top: 8px solid var(--pink); }
.more-grid li:nth-child(4n + 2) { border-top: 8px solid var(--yellow); }
.more-grid li:nth-child(4n + 3) { border-top: 8px solid var(--ink); }
.more-grid li:nth-child(4n) { border-top: 8px solid #cf2148; }
.more-grid b { font-family: var(--display); font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.more-grid span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.extra-card { display: flex; flex-direction: column; min-height: 330px; padding: 26px; border: 2px solid var(--ink); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.extra-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--ink); }
.extra-card h3 { margin-top: auto; font-size: 32px; }
.extra-card p:last-child { margin: 12px 0 0; font-size: 15px; line-height: 1.55; opacity: .75; }
.extra-ink { color: var(--paper); background: var(--ink); }
.extra-ink:hover { box-shadow: 6px 6px 0 var(--pink); }
.extra-light { background: var(--card); }
.extra-yellow { background: var(--yellow); }
.extra-pink { color: white; background: #cf2148; }
.extra-pink p:last-child { opacity: .9; }
.extra-chip { align-self: flex-start; margin: 0 0 30px; padding: 9px 14px; border-radius: 999px; color: var(--ink); background: var(--yellow); font-size: 13px; font-weight: 850; }
.extra-chip-pink { color: white; background: var(--pink); }
.extra-bubble { position: relative; margin: 0 0 30px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.extra-big { margin: 0 0 30px; font-family: var(--display); font-size: 52px; line-height: .95; text-transform: uppercase; }
.extra-big small { font-size: 26px; opacity: .6; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transform: translate(-3px, -3px) rotate(-.6deg); }

@media (max-width: 980px) {
  .compete-layout { grid-template-columns: 1fr; }
  .mode-tabs { grid-template-columns: repeat(3, 1fr); }
  .mode-tab { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  .mode-tab strong { font-size: 24px; }
  .receipt-layout { gap: 40px; }
  .extras-grid { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .compete, .extras { padding-block: 86px; }
  .compete-layout { gap: 16px; }
  .mode-tabs { gap: 8px; }
  .mode-tab { gap: 4px; padding: 12px 10px; border-radius: 16px; }
  .mode-tab[aria-selected="true"] { box-shadow: 4px 4px 0 var(--pink); }
  .mode-tab strong { font-size: 19px; line-height: .95; }
  .mode-tab small { display: none; }
  .mode-stage { min-height: 0; }
  .mode-panel { padding: 22px 16px; }
  .mode-panel > div { padding: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .privacy-demo { margin-inline: auto; }
  .receipt-layout { grid-template-columns: 1fr; padding-block: 86px; }
  .extras-grid { grid-template-columns: 1fr; }
  .more { padding-block: 20px 86px; }
  .more-grid { grid-template-columns: 1fr; }
  .extra-card { min-height: 280px; }
}
@media (max-width: 420px) {
  .duel-side em { font-size: 30px; }
  .avatar { width: 48px; height: 48px; }
  .receipt { padding-inline: 20px; font-size: 12px; transform: rotate(1.5deg); }
}
