/* 각인 — 귀금속 시세 · v2
   Cuerpo claro y limpio al estilo de las apps financieras coreanas (Toss, Kakao Pay): gris #f2f4f6, tarjetas blancas,
   cifras grandes. Cada metal tiene un HERO propio (color, textura y juego interactivo):
   oro = báscula de joyero · plata = pila de lingotes · platino = anillo · paladio = máquina del tiempo · cobre = ticket de báscula.
   Reglas del usuario: nunca border-left ni border-top; line-height ≥ 1,8 en texto; sin emojis; tablas para datos. */

:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #191f28;
  --ink-2: #333d4b;
  --ink-3: #4e5968;
  --muted: #8b95a1;
  --line: #e5e8eb;
  --soft: #f9fafb;
  --up: #f04452;
  --up-bg: #fff0f1;
  --down: #3182f6;
  --down-bg: #ecf4ff;
  --seal: #d7301f;
  --acc: #c99418;
  --acc-bg: #fff7e3;
  --r: 20px;
  --sh: 0 2px 6px rgba(0, 27, 55, .04), 0 8px 24px -12px rgba(0, 27, 55, .12);
  --wrap: 1120px;
  --f: "Wanted Sans Variable", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body[data-metal="silver"]    { --acc: #5b6675; --acc-bg: #eef1f5; }
body[data-metal="platinum"]  { --acc: #23758b; --acc-bg: #e7f4f7; }
body[data-metal="palladium"] { --acc: #b06f08; --acc-bg: #fdf3e2; }
body[data-metal="copper"]    { --acc: #c0592a; --acc-bg: #fbeee6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.3; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 112px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }

/* ---------------- cabecera ---------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; height: 54px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.seal { width: 28px; height: 28px; border-radius: 8px; background: var(--seal); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; transform: rotate(-5deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.brand small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.top-time { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tabs-m { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
.tabs-m::-webkit-scrollbar { display: none; }
.tabs-m a { flex: 0 0 auto; display: flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tabs-m a b { font-weight: 700; color: var(--ink); }
.tabs-m a small { font-size: 12px; font-weight: 700; }
.tabs-m a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs-m a[aria-current="page"] b { color: #fff; }
.tabs-m a.t-base small { color: var(--muted); }
.tabs-m a[aria-current="page"] .up { color: #ff8a93; } .tabs-m a[aria-current="page"] .down { color: #8fbaff; }

/* ---------------- HERO común ---------------- */
.hero { position: relative; overflow: hidden; padding: 20px 0 40px; color: var(--h-ink); background: var(--h-bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; }
body[data-metal="silver"] .hero::before { opacity: .6; mix-blend-mode: multiply; filter: invert(1); }
.hero > .wrap { position: relative; }
.crumbs { font-size: 13px; color: var(--h-muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--h-ink); }
.crumbs i { font-style: normal; margin: 0 6px; opacity: .6; }
.hero-grid { display: grid; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--h-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s ease-in-out infinite; }
.hero h1 { font-size: clamp(1.2rem, 3.8vw, 1.45rem); font-weight: 800; margin: 8px 0 6px; color: var(--h-ink); letter-spacing: -.03em; }
.bigprice {
  display: block; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; color: var(--h-ink);
  font-size: clamp(2.9rem, 12vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; -webkit-tap-highlight-color: transparent;
}
.bigprice .u { font-size: .4em; font-weight: 700; margin-left: 4px; letter-spacing: -.02em; color: var(--h-ink); }
.bigprice .lab { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--h-muted); margin-bottom: 2px; }
.bigprice .lab em { font-style: normal; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--h-chip); color: var(--h-ink); font-weight: 600; }
.bigprice .v { display: inline-block; }
.bigprice.flip .v { animation: flip .38s cubic-bezier(.2,1.2,.4,1); }
.chg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--h-muted); }
.chg { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.chg.up { background: rgba(240,68,82,.16); color: var(--h-up, var(--up)); }
.chg.down { background: rgba(49,130,246,.16); color: var(--h-down, var(--down)); }
.chg.flat { background: var(--h-chip); color: var(--h-muted); }
.hstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0 0; }
.hstats div { background: var(--h-chip); border-radius: 14px; padding: 11px 14px; }
.hstats dt { font-size: 12.5px; color: var(--h-muted); line-height: 1.5; }
.hstats dd { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.4; }
.basis { margin: 14px 0 0; font-size: 12.5px; color: var(--h-muted); line-height: 1.7; }

/* tarjeta del juego del hero */
.play-card { background: var(--h-card); border-radius: 26px; padding: 20px 18px; box-shadow: var(--h-card-sh, 0 30px 60px -30px rgba(0,0,0,.65)); color: var(--h-ink); }
.play-card h2 { font-size: 1.15rem; font-weight: 800; }
.play-card .sub { font-size: 13px; color: var(--h-muted); margin: 2px 0 12px; line-height: 1.6; }
.pc-out { display: grid; gap: 6px; margin: 14px 0 0; }
.pc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pc-out dt { font-size: 13.5px; color: var(--h-muted); }
.pc-out dd { margin: 0; font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; text-align: right; }
.pc-out .main dd { font-size: 1.7rem; color: var(--h-acc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 12px; padding: 8px 11px;
  background: var(--h-chip); color: var(--h-ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; transition: transform .12s ease, background .2s;
}
.chip:hover { background: color-mix(in srgb, var(--h-chip) 100%, var(--h-ink) 8%); }
.chip:active { transform: scale(.94); }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip[aria-pressed="true"] { background: var(--h-acc); color: var(--h-acc-ink); }
.chip small { font-weight: 500; opacity: .75; font-size: 11.5px; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.ghost { background: none; border: 0; cursor: pointer; color: var(--h-muted); font-size: 13px; font-weight: 700; padding: 6px 2px; }
.ghost:hover { color: var(--h-ink); }
.cta { border: 0; cursor: pointer; border-radius: 14px; padding: 11px 16px; font-weight: 800; font-size: 14.5px; background: var(--h-acc); color: var(--h-acc-ink); }
.cta:active { transform: scale(.97); }
.since { font-size: 13px; margin: 10px 0 0; color: var(--h-muted); line-height: 1.6; }
.since b { color: var(--h-ink); }

/* ---- ORO: báscula digital del 금은방 ---- */
body[data-metal="gold"] .hero {
  --h-bg: radial-gradient(42% 60% at 74% 38%, rgba(255,196,92,.20), transparent 70%), radial-gradient(120% 60% at 70% 100%, rgba(255,214,140,.07), transparent 60%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.55)), #0d0b08;
  --h-ink: #fff8e6; --h-muted: #c9b98f; --h-chip: rgba(255,224,140,.1); --h-card: linear-gradient(180deg, #1f1b12, #16130d);
  --h-acc: #f4c542; --h-acc-ink: #2b1f00; --h-up: #ff8a93; --h-down: #8fbaff;
}
body[data-metal="gold"] .bigprice .v { background: linear-gradient(180deg, #fff3c4 0%, #f4c542 45%, #b9861a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scale { position: relative; margin: 0 auto; max-width: 380px; }
.scale-plate { position: relative; height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.scale-plate::after { content: ""; position: absolute; left: 7%; right: 7%; bottom: 0; height: 16px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #f6f1e4, #bdb39b 60%, #7e765f); box-shadow: 0 8px 14px -6px rgba(0,0,0,.7); }
.pile { position: relative; z-index: 1; display: flex; flex-wrap: wrap-reverse; justify-content: center; align-items: flex-end; gap: 0 2px; max-width: 80%; padding-bottom: 7px; min-height: 40px; }
.pile button { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; animation: drop .5s cubic-bezier(.3,1.6,.5,1) both; }
.pile svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.pile .empty { color: var(--h-muted); font-size: 13px; line-height: 1.5; padding-bottom: 12px; }
.scale-body { margin-top: -3px; border-radius: 14px 14px 20px 20px; background: linear-gradient(180deg, #2e2e31, #19191b); padding: 12px 14px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.lcd { display: flex; align-items: baseline; gap: 6px; background: linear-gradient(180deg, #bcd8a6, #92b083); color: #17280f; border-radius: 10px; padding: 7px 12px; font-family: "Courier New", ui-monospace, monospace; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.lcd b { font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.lcd span { font-size: 13px; font-weight: 700; }
.lcd .g { margin-left: auto; }
.scale-brand { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .16em; color: #8a8a8e; margin-top: 6px; }

/* ---- PLATA: luz de luna, pila de lingotes ---- */
body[data-metal="silver"] .hero {
  --h-bg: radial-gradient(45% 60% at 74% 36%, #ffffff, transparent 72%), linear-gradient(180deg, #f7f8fa 0%, #e6e9ed 62%, #d5dade 100%);
  --h-ink: #151d28; --h-muted: #5a6676; --h-chip: rgba(21,29,40,.07); --h-card: rgba(255,255,255,.8);
  --h-acc: #1f2733; --h-acc-ink: #fff; --h-card-sh: 0 30px 60px -30px rgba(40,60,90,.5); --h-up: #e0303f; --h-down: #1f6fe0;
}
body[data-metal="silver"] .bigprice .v { background: linear-gradient(180deg, #6b7685, #151d28 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack { height: 176px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding-bottom: 8px; position: relative; overflow: hidden; }
.stack::after { content: ""; position: absolute; bottom: 0; width: 82%; height: 10px; border-radius: 50%; background: radial-gradient(ellipse, rgba(21,29,40,.25), transparent 70%); }
.stack i { display: block; flex: none; animation: drop .45s cubic-bezier(.3,1.5,.5,1) both; clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); background: linear-gradient(172deg, #ffffff 0%, #d3dae2 45%, #8e99a6 100%); }
.stack i.kg { width: 156px; height: 26px; } .stack i.g100 { width: 88px; height: 14px; }
.stack i.spoon { width: 128px; height: 9px; border-radius: 6px; clip-path: none; }
.stack i.ring { width: 28px; height: 28px; border-radius: 50%; clip-path: none; background: none; box-shadow: inset 0 0 0 6px #aeb8c3; }
.stack .empty { font-size: 13px; color: var(--h-muted); position: absolute; top: 40%; }

/* ---- PLATINO: anillo de boda, azul glaciar ---- */
body[data-metal="platinum"] .hero {
  --h-bg: radial-gradient(42% 60% at 74% 38%, rgba(175,225,240,.17), transparent 70%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.55)), #0a1317;
  --h-ink: #eef9fb; --h-muted: #9fc3cc; --h-chip: rgba(190,235,245,.1); --h-card: linear-gradient(180deg, rgba(22,52,62,.92), rgba(12,32,39,.96));
  --h-acc: #bfeaf3; --h-acc-ink: #0b2a33; --h-up: #ff8a93; --h-down: #8fbaff;
}
body[data-metal="platinum"] .bigprice .v { background: linear-gradient(180deg, #ffffff, #b5dbe4 60%, #7fa9b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ringbox { display: grid; place-items: center; height: 176px; }
.ringbox svg { width: 176px; height: 176px; overflow: visible; }
.ringbox .rg { transition: stroke-width .35s cubic-bezier(.3,1.4,.5,1); }
.range { width: 100%; accent-color: var(--h-acc); height: 30px; margin: 4px 0 0; }
.range-lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--h-muted); }
.range-lab b { color: var(--h-ink); font-size: 15px; }

/* ---- PALADIO: industrial, grafito y ámbar ---- */
body[data-metal="palladium"] .hero {
  --h-bg: radial-gradient(42% 60% at 74% 38%, rgba(255,205,150,.14), transparent 70%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.6)), #161718;
  --h-ink: #f4f1ea; --h-muted: #aba59b; --h-chip: rgba(255,255,255,.08); --h-card: linear-gradient(180deg, #2b2c30, #222327);
  --h-acc: #ffb020; --h-acc-ink: #2a1a00; --h-up: #ff8a93; --h-down: #8fbaff;
}
body[data-metal="palladium"] .bigprice .v { background: linear-gradient(180deg, #faf6ee, #c9c1b3 60%, #8f877a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-bars { display: grid; gap: 9px; margin-top: 14px; }
.tm-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.tm-row .tb { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.tm-row .tb i { display: block; height: 100%; border-radius: 6px; transition: width .45s cubic-bezier(.3,1.2,.5,1); }
.tm-row b { font-weight: 800; text-align: right; min-width: 8.2em; }
.tm-row b small { display: block; font-size: 11.5px; font-weight: 700; }
.tm-row.me { color: var(--h-acc); }

/* ---- COBRE: verdín y ticket de báscula del chatarrero ---- */
body[data-metal="copper"] .hero {
  --h-bg: radial-gradient(42% 60% at 74% 38%, rgba(245,140,90,.18), transparent 70%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.55)), #0b211e;
  --h-ink: #f1fbf8; --h-muted: #a3d2c8; --h-chip: rgba(160,240,220,.1);
  --h-acc: #e9874d; --h-acc-ink: #2b1203; --h-up: #ff8a93; --h-down: #8fbaff;
}
body[data-metal="copper"] .bigprice .v { background: linear-gradient(180deg, #ffd5b8, #e9874d 50%, #a24d1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket { background: #fbf8f1; color: #2a2620; border-radius: 8px 8px 0 0; padding: 18px 18px 16px; font-family: "Courier New", ui-monospace, monospace; position: relative; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); animation: print .7s ease both; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, #fbf8f1 6.5px) 0 0 / 12px 8px repeat-x; }
.ticket h2 { font-family: var(--f); text-align: center; font-size: 1.05rem; letter-spacing: .3em; font-weight: 800; }
.ticket .meta { text-align: center; font-size: 12px; color: #7a7266; margin: 2px 0 10px; }
.ticket dl { margin: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; background: linear-gradient(90deg, #cfc6b6 50%, transparent 0) 0 100% / 8px 1px repeat-x; font-size: 14px; }
.ticket dt { color: #6b6457; } .ticket dd { margin: 0; font-weight: 700; text-align: right; }
.ticket .total { padding-top: 10px; background: none; align-items: baseline; }
.ticket .total dd { font-size: 1.55rem; color: #b5531f; font-family: var(--f); font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-family: var(--f); }
.stepper button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: #ece6d9; font-size: 22px; font-weight: 800; cursor: pointer; color: #2a2620; flex: none; }
.stepper button:active { transform: scale(.93); }
.stepper label { flex: 1; position: relative; }
.stepper input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #ddd5c5; background: #fff; text-align: center; font: 800 20px var(--f); color: #2a2620; padding: 0 30px 0 8px; }
.stepper label span { position: absolute; right: 12px; top: 12px; font: 700 14px var(--f); color: #7a7266; }
.ticket .chips .chip { background: #ece6d9; color: #2a2620; font-family: var(--f); }
.ticket .chips .chip[aria-pressed="true"] { background: #b5531f; color: #fff; }
.stamp-paid { position: absolute; right: 14px; top: 44px; transform: rotate(-12deg); color: rgba(215,48,31,.78); font-family: var(--f); font-weight: 800; font-size: 12px; padding: 3px 8px; border: 2px solid currentColor; border-radius: 8px; letter-spacing: .08em; }

/* ---------------- cuerpo ---------------- */
main { padding: 0 0 30px; }
.sec { margin-top: 14px; background: var(--card); border-radius: var(--r); padding: 24px 18px; box-shadow: var(--sh); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head p { margin: 0; font-size: 13px; color: var(--muted); }
.kick { font-size: 13px; font-weight: 800; color: var(--acc); margin-bottom: 4px; }
.prose { max-width: 38em; color: var(--ink-2); line-height: 1.85; }
.prose strong { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.mt { margin-top: 16px; }

/* respuestas rápidas: lo que la gente busca (short + long tail) */
.qa-sec { margin-top: -22px; position: relative; z-index: 2; }
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qa a { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: var(--soft); border-radius: 16px; padding: 13px 14px; transition: background .15s, transform .15s; min-height: 94px; }
.qa a:hover { background: var(--acc-bg); transform: translateY(-1px); }
.qa .q { font-size: 13.5px; color: var(--ink-3); font-weight: 600; line-height: 1.45; }
.qa .a { font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.qa .a small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 2px; }

/* banda de participación: predicción + sellos de asistencia */
.play { display: grid; gap: 14px; }
.play > div { background: var(--card); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--sh); margin-top: 0; }
.play-wrap { margin-top: 14px; }
.play h2 { font-size: 1.15rem; }
.play .sub { font-size: 13.5px; color: var(--muted); margin: 2px 0 12px; line-height: 1.6; }
.guess { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guess button { border: 0; cursor: pointer; border-radius: 16px; padding: 15px 10px; font-weight: 800; font-size: 16px; transition: transform .12s; }
.guess button:active { transform: scale(.96); }
.guess .g-up { background: var(--up-bg); color: var(--up); } .guess .g-down { background: var(--down-bg); color: var(--down); }
.guess button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px currentColor; }
.guess-msg { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.guess-msg b { color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week div { aspect-ratio: 1; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); position: relative; }
.week div.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.week div.on { color: transparent; }
.week div.on::after { content: "각"; position: absolute; inset: 7%; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--seal); font-weight: 800; font-size: 13px; transform: rotate(-8deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.week div.on.new::after { animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both; }
.stamp-btn { margin-top: 12px; width: 100%; border: 0; cursor: pointer; border-radius: 14px; padding: 13px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; }
.stamp-btn[disabled] { background: var(--bg); color: var(--muted); cursor: default; }

/* tablas */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
caption { text-align: left; font-size: 12.5px; color: var(--muted); padding: 0 0 8px; }
th, td { padding: 12px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; padding-left: 4px; }
thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { font-weight: 600; }
tr.hl th, tr.hl td { background: var(--acc-bg); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--acc-bg); color: var(--acc); margin-left: 6px; font-weight: 700; }

/* barras comparativas */
.bars { display: grid; gap: 8px; margin: 4px 0 16px; }
.bar { position: relative; height: 48px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: linear-gradient(90deg, var(--acc-bg), color-mix(in srgb, var(--acc) 22%, var(--acc-bg))); }
.bar span { position: relative; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.bar span b { color: var(--ink); font-weight: 800; }

/* gráfico SVG sin JS */
.chart { position: relative; }
.chart input { position: absolute; opacity: 0; pointer-events: none; }
.chart .ctabs { display: inline-flex; gap: 2px; background: var(--bg); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.chart label { cursor: pointer; font-size: 13.5px; font-weight: 700; padding: 6px 14px; border-radius: 10px; color: var(--muted); }
.chart .pane { display: none; }
#p1:checked ~ .ctabs label[for="p1"], #p2:checked ~ .ctabs label[for="p2"], #p3:checked ~ .ctabs label[for="p3"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#p1:checked ~ .panes .pane-1, #p2:checked ~ .panes .pane-2, #p3:checked ~ .panes .pane-3 { display: block; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.ax { font-size: 19px; fill: #8b95a1; font-family: var(--f); }
.grid-l { stroke: #eef0f2; }
.periods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 0; }
.periods div { background: var(--soft); border-radius: 14px; padding: 11px 14px; }
.periods dt { font-size: 12.5px; color: var(--muted); }
.periods dd { margin: 0; font-weight: 800; font-size: 1.1rem; }

/* calculadora (cuerpo) */
.calc-grid { display: grid; gap: 10px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.field input, .field select { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); font: 700 18px var(--f); padding: 0 14px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus { outline: 2px solid var(--acc); outline-offset: 0; background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 46px; border-radius: 14px; border: 0; background: var(--bg); font-weight: 700; font-size: 14.5px; cursor: pointer; padding: 0 12px; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result { margin-top: 14px; background: var(--acc-bg); border-radius: 16px; padding: 14px 16px; }
.result dl { margin: 0; display: grid; gap: 6px; }
.result div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.result dt { font-size: 13.5px; color: var(--ink-3); }
.result dd { margin: 0; font-weight: 800; font-size: 1.05rem; text-align: right; }
.result .big dd { font-size: 1.55rem; color: var(--acc); letter-spacing: -.03em; }
.note { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* FAQ */
.faq details { background: var(--soft); border-radius: 16px; padding: 2px 16px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 20px; line-height: 1.1; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); line-height: 1.85; padding-bottom: 6px; }

/* otros metales */
.metals { display: grid; grid-template-columns: 1fr; column-gap: 28px; }
.ml { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(104px, auto); align-items: center; gap: 14px; padding: 14px 6px; border-radius: 14px; transition: background .15s;
  background: linear-gradient(var(--line), var(--line)) 6px 100% / calc(100% - 12px) 1px no-repeat; }
.ml:hover { background-color: var(--soft); }
.ml-n b { display: block; font-weight: 800; font-size: 16px; line-height: 1.4; }
.ml-n small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ml-p { text-align: right; line-height: 1.35; }
.ml-p b { display: block; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.ml-p small { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 8px; }
.ml-p small.up { background: var(--up-bg); } .ml-p small.down { background: var(--down-bg); } .ml-p small.flat { background: var(--bg); }
.spark { width: 96px; height: 34px; overflow: visible; }
.spark polyline { stroke: var(--muted); }
.spark.up polyline { stroke: var(--up); } .spark.down polyline { stroke: var(--down); }
.sw-gold { background: linear-gradient(160deg, #fff0b8, #f4c542 50%, #a87812); }
.sw-silver { background: linear-gradient(160deg, #ffffff, #c9d0d8 50%, #7f8a97); }
.sw-platinum { background: linear-gradient(160deg, #eafbff, #a9d2dc 50%, #4f7f8b); }
.sw-palladium { background: linear-gradient(160deg, #f6f1e8, #c7beb0 50%, #7b7266); }
.sw-copper { background: linear-gradient(160deg, #ffc9a6, #e07a3f 50%, #8a3c16); }

/* inicio */
body[data-metal="none"] .hero {
  --h-bg: radial-gradient(50% 60% at 72% 40%, rgba(255,214,140,.12), transparent 70%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.55)), #0e1014;
  --h-ink: #f5f6f8; --h-muted: #a3aab4; --h-chip: rgba(255,255,255,.07); --h-acc: #f4c542; --h-acc-ink: #2b1f00;
}
.home-h1 { font-size: clamp(2rem, 7vw, 3.2rem) !important; line-height: 1.2 !important; margin: 10px 0 14px !important; }
.home-h1 span { background: linear-gradient(180deg, #fff3c4, #f4c542 50%, #b9861a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ask { position: relative; }
.ask input { width: 100%; height: 58px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); font: 700 17px var(--f); padding: 0 16px 0 48px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.ask input:focus { outline: 3px solid var(--h-acc); }
.ask svg { position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; color: var(--muted); }
.ask-hint { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ask-out { margin-top: 10px; display: grid; gap: 6px; }
.ask-out a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--h-chip); border-radius: 14px; padding: 11px 14px; color: var(--h-ink); animation: drop .3s ease both; }
.ask-out a span { font-size: 14px; color: var(--h-muted); font-weight: 600; }
.ask-out a b { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.board .ml { grid-template-columns: 1fr; gap: 4px; padding: 14px; border-radius: 18px; color: var(--h-ink); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.board .ml:hover { background: rgba(255,255,255,.11); }
.board .ml-n small { color: var(--h-muted); }
.board .ml-p { text-align: left; order: 2; }
.board .spark { order: 3; width: 100%; height: 30px; }
.board .ml-p small.up { background: rgba(240,68,82,.18); color: #ff8a93; } .board .ml-p small.down { background: rgba(49,130,246,.2); color: #8fbaff; }
.board .spark.up polyline { stroke: #ff8a93; } .board .spark.down polyline { stroke: #8fbaff; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 160%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; z-index: 50; transition: transform .35s cubic-bezier(.2,1.2,.4,1); max-width: calc(100% - 32px); text-align: center; line-height: 1.5; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.toast.show { transform: translate(-50%, 0); }

/* pie */
.foot { margin-top: 26px; padding: 30px 0 40px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.foot-grid { display: grid; gap: 20px; }
.foot h2 { font-size: 13.5px; color: var(--ink-3); margin-bottom: 6px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .disc { margin-top: 18px; font-size: 12.5px; }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-46px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes flip { from { opacity: 0; transform: translateY(35%) rotateX(70deg); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-20deg); } 60% { opacity: 1; transform: scale(.92) rotate(-6deg); } 100% { transform: scale(1) rotate(-8deg); } }
@keyframes print { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 759px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-text { display: contents; }
  .hero-text > .eyebrow { order: 1; } .hero-text > h1 { order: 2; } .hero-text > .bigprice { order: 3; }
  .hero-text > .chg-row { order: 4; } .hero-grid > .stage-spot { order: 5; }
  .hero-text > .hstats { order: 6; } .hero-text > .basis { order: 7; } .hero-text > .ask-wrap { order: 6; margin-top: 4px; }
}
@media (min-width: 760px) {
  .hero { padding: 26px 0 60px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  .hstats { grid-template-columns: repeat(4, 1fr); }
  .play { grid-template-columns: 1.15fr 1fr; }
  .qa { grid-template-columns: repeat(4, 1fr); }
  .sec { padding: 30px; }
  .periods { grid-template-columns: repeat(4, 1fr); }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .metals { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(5, 1fr); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ax { font-size: 12px; }
}


/* ================= v3 · escenario 3D del hero ================= */
.stage { position: absolute; inset: 0; z-index: 0; }
.stage canvas { position: absolute; inset: 0; display: block; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.hero-in { position: relative; z-index: 1; pointer-events: none; }
.hero-in .crumbs, .hero-in .hero-text, .hero-in .tray { pointer-events: auto; }
.hero-in .hero-text { position: relative; }
.stage-spot { position: relative; height: 250px; margin: 10px 0 0; display: grid; place-items: center; pointer-events: none; }
.stage-hint { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--h-muted); padding: 4px 12px; border-radius: 999px; background: var(--h-chip); opacity: 0; transition: opacity .6s .8s; }
.hero.is-3d .stage-hint { opacity: 1; }
/* lingote CSS de respaldo (sin WebGL o mientras carga three.js) */
.fb { display: block; width: min(260px, 70%); aspect-ratio: 2.1; transition: opacity .5s; filter: drop-shadow(0 26px 24px rgba(0,0,0,.45)); }
.fb i { display: block; width: 100%; height: 100%; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); background: linear-gradient(165deg, var(--m1, #fff3c4), var(--m2, #f4c542) 48%, var(--m3, #9a6c10)); }
.hero.is-3d .fb { opacity: 0; }
body[data-metal="silver"] .fb i { --m1: #ffffff; --m2: #c9d0d8; --m3: #7f8a97; }
body[data-metal="platinum"] .fb i { --m1: #f2fbfd; --m2: #b5d3db; --m3: #5b7f88; }
body[data-metal="palladium"] .fb i { --m1: #f6f1e8; --m2: #c7beb0; --m3: #7b7266; }
body[data-metal="copper"] .fb i { --m1: #ffd2b5; --m2: #e07a3f; --m3: #8a3c16; }

/* bandeja del juego (dentro del hero, debajo del dato) */
.tray { margin-top: 18px; }
.tray .play-card { display: grid; gap: 16px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body[data-metal="gold"] .tray .play-card { background: rgba(28, 24, 16, .78); box-shadow: inset 0 0 0 1px rgba(255,214,140,.1), 0 30px 60px -30px rgba(0,0,0,.7); }
body[data-metal="silver"] .tray .play-card { background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 30px 60px -30px rgba(40,60,90,.35); }
body[data-metal="platinum"] .tray .play-card { background: rgba(16, 34, 41, .78); box-shadow: inset 0 0 0 1px rgba(190,235,245,.1), 0 30px 60px -30px rgba(0,0,0,.7); }
body[data-metal="palladium"] .tray .play-card { background: rgba(34, 35, 38, .8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 30px 60px -30px rgba(0,0,0,.7); }
body[data-metal="copper"] .tray .play-card { background: rgba(10, 40, 36, .8); box-shadow: inset 0 0 0 1px rgba(160,240,220,.1), 0 30px 60px -30px rgba(0,0,0,.7); }
.pc-a h2 { margin-bottom: 2px; }
.pc-a .kick { color: var(--h-acc); }
body[data-metal="silver"] .pc-a .kick { color: #5b6675; }
.pc-c .pc-out { margin-top: 0; }
.tm-row { grid-template-columns: 56px 1fr auto; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
  .stage-spot { height: 400px; margin: 0; }
  .tray { margin-top: 10px; }
  .tray .play-card { grid-template-columns: .95fr 1.1fr 1fr; gap: 28px; align-items: center; padding: 24px 28px; }
  .tray .play-card:has(.pc-wide) { grid-template-columns: 1fr 1.5fr; }
  .tray .play-card .pc-b .ticket { max-width: 560px; margin-left: auto; }
}

.hstats dd { white-space: nowrap; }
@media (min-width: 760px) { .hstats dd { font-size: clamp(.95rem, 1.35vw, 1.12rem); } }
@media (max-width: 759px) { .ml { grid-template-columns: minmax(0, 1fr) 70px minmax(96px, auto); gap: 10px; } .ml .spark { width: 70px; } .board .ml .spark { width: 100%; } }

/* báscula v3: una sola pieza (plato empotrado + pantalla), sin elementos flotando */
.scale { max-width: 400px; margin: 0 auto; border-radius: 22px; padding: 12px 12px 10px; background: linear-gradient(180deg, #333336, #1b1b1d); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 40px -22px rgba(0,0,0,.8); }
.scale-plate { height: 108px; border-radius: 16px; margin-bottom: 10px; background: radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,.06), transparent 70%), #121214; box-shadow: inset 0 2px 8px rgba(0,0,0,.6); align-items: flex-end; overflow: hidden; }
.scale-plate::after { left: 9%; right: 9%; bottom: 10px; height: 14px; }
.pile { padding-bottom: 16px; }
.pile .ghost-item { opacity: .22; filter: grayscale(.3); line-height: 0; }
.scale-body { margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }

/* minicalculadora de subpáginas (bandeja del hero) */
.qstep { display: flex; align-items: center; gap: 8px; }
.qstep button { width: 52px; height: 56px; border-radius: 16px; border: 0; cursor: pointer; background: var(--h-chip); color: var(--h-ink); font-size: 24px; font-weight: 800; flex: none; }
.qstep button:active { transform: scale(.94); }
.qstep label { flex: 1; position: relative; min-width: 0; }
.qstep input { width: 100%; height: 56px; border-radius: 16px; border: 0; background: rgba(255,255,255,.08); color: var(--h-ink); text-align: center; font: 800 26px var(--f); padding: 0 40px 0 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
body[data-metal="silver"] .qstep input { background: rgba(21,29,40,.05); box-shadow: inset 0 0 0 1px rgba(21,29,40,.12); }
.qstep input:focus { outline: 2px solid var(--h-acc); }
.qstep label span { position: absolute; right: 14px; top: 17px; font-weight: 700; color: var(--h-muted); font-size: 14px; }
.q-units { margin-top: 10px; }
.q-g { font-size: 13px; color: var(--h-muted); margin: 10px 0 0; }
.q-g b { color: var(--h-ink); }

/* enlaces relacionados (sub-navegación del metal) */
.rel { display: grid; grid-template-columns: 1fr; column-gap: 28px; }
.rel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 6px; border-radius: 14px; background: linear-gradient(var(--line), var(--line)) 6px 100% / calc(100% - 12px) 1px no-repeat; transition: background-color .15s; }
.rel a:hover { background-color: var(--soft); }
.rel b { font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.rel small { grid-column: 1; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rel .v { grid-row: 1 / span 2; grid-column: 2; font-weight: 800; font-size: 15px; text-align: right; white-space: nowrap; }
.rel .v::after { content: " ›"; color: var(--muted); font-weight: 600; }
@media (min-width: 760px) { .rel { grid-template-columns: 1fr 1fr; } }

/* tema «base»: metales industriales LME (aluminio, níquel, estaño, hub y chatarra) */
body[data-metal="base"] { --acc: #3d6f8f; --acc-bg: #e9f1f6; }
body[data-metal="base"] .hero {
  --h-bg: radial-gradient(42% 60% at 74% 38%, rgba(170,205,230,.15), transparent 70%), radial-gradient(140% 120% at 50% 40%, transparent 50%, rgba(0,0,0,.55)), #111519;
  --h-ink: #eef4f8; --h-muted: #9fb2c0; --h-chip: rgba(200,225,240,.09);
  --h-acc: #8ec5e8; --h-acc-ink: #08202e; --h-up: #ff8a93; --h-down: #8fbaff;
}
body[data-metal="base"] .bigprice .v { background: linear-gradient(180deg, #ffffff, #c4d6e2 60%, #7f98a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-metal="base"] .tray .play-card { background: rgba(22, 30, 37, .8); box-shadow: inset 0 0 0 1px rgba(200,225,240,.08), 0 30px 60px -30px rgba(0,0,0,.7); }
body[data-metal="base"] .fb i { --m1: #f4f7f9; --m2: #b9c6cf; --m3: #6a7c88; }

.foot-links { margin-top: 18px; font-size: 13px; }
.hero-info { padding: 22px 0 34px; }
.info-h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: var(--h-ink); margin-top: 6px; }
.tbl td small, .tbl th small { font-weight: 500; font-size: 11.5px; }
.tbl th a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25); }

.stage-hint::before { content: attr(data-t); }
