/* The shop pages (/buy/ and /key/), in the game page's look: dark walnut, parchment text, brass and the game's DarkOrange.
   That page loads its fonts (Cinzel Decorative, Arvo) from Google Fonts; the shop's security policy forbids that here, so
   this file carries the few of its rules the shop needs, with the page's fallback faces. Colors match style.css beside
   index.html, made in the VideoVoicePoker repo's website/. */

:root {
  --bg: #120e0a;
  --panel: #1c1814;
  --panel-edge: #3a2f22;
  --text: #f3d9aa;
  --muted: #b9a37c;
  --accent: #ff8c00;
  --brass: #e8b84a;
  --ink: #1c1814;
  --display: Georgia, "Times New Roman", serif;
  --body: Georgia, serif;
  --label: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 140, 0, .14), transparent 55%), var(--bg);
  color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.wrap { width: min(760px, 100% - 32px); margin: 0 auto; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
h2 { font-size: 1.5rem; margin-top: 1.6em; color: var(--accent); }
.accent { color: var(--accent); }
.kicker { margin: 0 0 6px; font-family: var(--label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: var(--ink); border: 2px solid var(--accent); text-decoration: none;
}
.btn:hover { background: #ffa333; color: var(--ink); }
.btn.small { font-size: .95rem; padding: 9px 16px; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(255, 140, 0, .12); color: var(--accent); }

.shop-bar { background: rgba(28, 24, 20, .85); border-bottom: 1px solid var(--panel-edge); }
.shop-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 64px; padding: 10px 0; }
.shop-bar .name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.shop-bar .name img { width: 34px; height: 34px; border-radius: 6px; }
.shop-bar .btn { font-size: .95rem; padding: 9px 16px; }

.shop { flex: 1; padding: 40px 0 56px; }
.lede { font-size: 1.12rem; }
.shop ol, .shop ul { padding-left: 1.3em; }
.shop li { margin: 6px 0; }

.shop-card { background: var(--panel); border: 1px solid var(--panel-edge); border-top: 4px solid var(--brass); border-radius: 14px; padding: clamp(20px, 4vw, 34px); margin: 12px 0; }
.shop-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.shop-price .amount { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 3.5rem); color: var(--accent); }
.shop-price .per { color: var(--muted); font-size: .95rem; }
.shop-price .was { color: var(--muted); font-size: 1.4rem; font-family: var(--display); }
.shop-price .was[hidden] { display: none; }
.shop-sale { color: #ffb15c; font-family: var(--label); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.shop-sale:empty { display: none; }
.shop .shop-gets { margin: 6px 0 22px; }

/* PayPal draws its own button into this; the width keeps it from stretching across a wide card. PayPal's buttons
   bring a white backdrop of their own, which the rounded corners soften on the dark card. */
.shop-paypal { max-width: 420px; border-radius: 6px; overflow: hidden; }
.shop-paypal[hidden] { display: none; }

.shop-status { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--brass); background: rgba(232, 184, 74, .12); }
.shop-status.error { border-color: #e0574e; background: rgba(185, 49, 44, .22); }
.shop-status[hidden], .shop-key[hidden] { display: none; }

.shop-key { margin-top: 6px; padding: 18px 20px; border: 2px dashed var(--brass); border-radius: 10px; }
.shop-key-label { font-family: var(--label); font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; }
.shop-key code { font-size: clamp(1.1rem, 4.4vw, 1.7rem); letter-spacing: .06em; word-break: break-all; user-select: all; color: var(--text); }
.shop-key-note { margin-bottom: 0; }

.shop-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 8px; }
.shop-form label { position: absolute; left: -9999px; }
.shop-form input { min-width: 0; font-family: var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--panel-edge); border-radius: 10px; }
.shop-form input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.shop-form input[type="email"] { flex: 1 1 260px; padding: 12px 14px; font-size: 1rem; }

/* The discount code box: small, above the button. */
.shop-code { margin: 0 0 16px; max-width: 420px; }
.shop-code[hidden] { display: none; }
.shop-code input[type="text"] { flex: 1 1 160px; padding: 9px 12px; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.shop-code input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.shop-final { font-size: .95rem; margin: 0 0 16px; }
.shop-small { color: var(--muted); font-size: .9rem; }

.foot { background: rgba(28, 24, 20, .85); color: var(--muted); font-size: .95rem; padding: 26px 0; border-top: 1px solid var(--panel-edge); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.made-in { display: inline-flex; align-items: center; gap: 8px; }
.flag { width: 21px; height: 11px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
