/* UNO · ธีม เติมเกมออนไลน์.com — ดำถ่าน + ฟ้านีออน + สายฟ้า (CI จาก customer-app) */
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 400; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-thai-400.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 400; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 600; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-thai-600.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 600; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 700; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-thai-700.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 700; font-display: swap; src: url('./assets/fonts/ibm-plex-sans-thai-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Kanit'; font-weight: 700; font-display: swap; src: url('./assets/fonts/kanit-thai-700.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; font-weight: 700; font-display: swap; src: url('./assets/fonts/kanit-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  color-scheme: dark;
  --brand: #2b7fff;
  --brand-dark: #1a4f9c;
  --brand-light: #60a5fa;
  --grad: linear-gradient(135deg, #2b7fff, #60a5fa);
  --bg: #121316;
  --panel: #1a1c23;
  --panel-2: #22242d;
  --border: #2a2d38;
  --text: #f0f4f8;
  --muted: #8294ac;
  --red: #ef4444;
  --yellow: #fbbf24;
  --green: #22c55e;
  --blue: #3b82f6;
  --cur: var(--brand);
  --cw: clamp(58px, 15vw, 96px);
  --ch: calc(var(--cw) * 1.5);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'IBM Plex Sans Thai', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(43, 127, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(96, 165, 250, 0.16), transparent 60%),
    var(--bg);
  overflow: hidden;
  user-select: none;
}
body::before { /* ลายเส้นสายฟ้าจางๆ */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(115deg, transparent 0 46px, #60a5fa 46px 48px, transparent 48px 120px);
}
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
.hidden { display: none !important; }
h1, h2, .display { font-family: 'Kanit', 'IBM Plex Sans Thai', sans-serif; font-weight: 700; }

/* ===== ปุ่ม ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: var(--panel-2); border: 1px solid var(--border);
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.6); }
.btn-primary { background: var(--grad); border: 0; box-shadow: 0 8px 24px -8px rgba(43, 127, 255, 0.8); }
.btn-green { background: linear-gradient(135deg, #16a34a, #22c55e); border: 0; box-shadow: 0 8px 24px -8px rgba(34, 197, 94, 0.7); }
.btn-red { background: linear-gradient(135deg, #dc2626, #f97316); border: 0; box-shadow: 0 8px 24px -8px rgba(239, 68, 68, 0.8); }
.btn-ghost { background: transparent; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); font-size: 18px; display: grid; place-items: center; }

/* ===== โหลด / error ===== */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
#loading, #fatal { align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
#loading img, #fatal img { width: 160px; filter: drop-shadow(0 0 24px rgba(43, 127, 255, 0.6)); animation: float 3s ease-in-out infinite; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
#fatal p { max-width: 420px; color: #cbd5e1; font-size: 17px; }

/* ===== แถบบน ===== */
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(18, 19, 22, 0.7); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); position: relative; z-index: 5; }
.topbar .logo { height: 48px; margin: -8px -6px; }
.topbar .title { font-family: 'Kanit'; font-weight: 700; font-size: 22px; letter-spacing: 1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .room { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ===== ล็อบบี้ ===== */
#lobby .body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 18px 16px 24px; gap: 18px; }
.hero { text-align: center; }
.hero .uno-word { font-family: 'Kanit'; font-size: clamp(56px, 16vw, 96px); line-height: 1; margin: 0; background: linear-gradient(180deg, #fff, #93c5fd 60%, #2b7fff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(43, 127, 255, 0.6)); }
.hero p { margin: 6px 0 0; color: var(--muted); }
.fan { position: relative; height: calc(var(--ch) * 0.9); width: calc(var(--cw) * 3); margin-top: 6px; }
.fan .card { position: absolute; left: 50%; bottom: 0; transform-origin: 50% 120%; }
.seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(560px, 100%); }
.seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); min-width: 0; animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
.seat.empty { background: transparent; border-style: dashed; color: var(--muted); animation: none; }
.seat .name { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hint { color: var(--muted); font-size: 14px; text-align: center; max-width: 520px; }
.hint b { color: var(--brand-light); }

/* ===== อวตาร ===== */
.av { position: relative; width: 48px; height: 48px; flex: none; }
.av img, .av .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); background: var(--panel-2); display: grid; place-items: center; font-weight: 700; }
.av .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 16px; }
.av.offline img, .av.offline .ph { filter: grayscale(1) brightness(0.5); }

/* ===== โต๊ะ ===== */
#game .opps { display: flex; gap: 8px; padding: 10px 12px 4px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 3; }
.opp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 6px; border-radius: 16px; background: rgba(26, 28, 35, 0.85); border: 1px solid var(--border); min-width: 76px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.opp .name { font-size: 12px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp .count { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; }
.opp .count i { width: 11px; height: 16px; border-radius: 3px; background: var(--grad); display: inline-block; box-shadow: 0 0 0 1.5px #fff inset; }
.opp.turn { border-color: var(--cur); box-shadow: 0 0 0 2px var(--cur), 0 0 24px -2px var(--cur); transform: translateY(2px) scale(1.05); }
.opp .uno-tag, .me-bar .uno-tag { position: absolute; top: -8px; right: -6px; background: linear-gradient(135deg, #dc2626, #f97316); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 8px; animation: pulse 0.8s infinite; }
.ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--cur) calc(var(--p, 1) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.ring.warn { --cur: #ef4444; animation: pulse 0.5s infinite; }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; animation: stamp 0.9s ease-out forwards; pointer-events: none; z-index: 4; }

.table { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 7vw, 60px); min-height: 0; }
.dir-ring { position: absolute; width: min(78vw, 440px); aspect-ratio: 1.6; border-radius: 50%; border: 3px dashed rgba(96, 165, 250, 0.25); animation: spin 18s linear infinite; }
.dir-ring.ccw { animation-direction: reverse; }
.dir-ring::before, .dir-ring::after { content: '▶'; position: absolute; color: rgba(96, 165, 250, 0.55); font-size: 18px; }
.dir-ring::before { top: -12px; left: 50%; }
.dir-ring::after { bottom: -12px; left: 50%; transform: rotate(180deg); }
.dir-ring.flip { animation: flip-dir 0.7s ease-out, spin 18s linear infinite 0.7s; }
.color-glow { position: absolute; width: min(70vw, 380px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cur) 35%, transparent), transparent 65%); transition: background 0.5s; pointer-events: none; }
.pile { position: relative; width: var(--cw); height: var(--ch); }
.pile .stack { position: absolute; inset: 0; }
.pile .stack .card { position: absolute; inset: 0; }
.pile .stack .card:nth-child(1) { transform: translate(-6px, 6px); }
.pile .stack .card:nth-child(2) { transform: translate(-3px, 3px); }
.pile .label { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; }
#drawPile.can { cursor: pointer; }
#drawPile.can .stack .card:last-child { box-shadow: 0 0 0 3px #fff, 0 0 30px 4px var(--brand); animation: bob 1s ease-in-out infinite; }
#discard .card { position: absolute; inset: 0; }
#discard .card.top.drop { animation: drop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.color-chip { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--cur); box-shadow: 0 0 18px var(--cur); white-space: nowrap; transition: background 0.4s; }
.turn-banner { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 99px; font-weight: 700; background: rgba(26, 28, 35, 0.9); border: 1px solid var(--border); white-space: nowrap; z-index: 2; }
.turn-banner.mine { background: var(--grad); border: 0; box-shadow: 0 0 24px rgba(43, 127, 255, 0.8); animation: pulse 1.2s infinite; }

/* ===== มือเรา ===== */
.me-bar { display: flex; align-items: center; gap: 10px; padding: 6px 14px; position: relative; }
.me-bar .who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.me-bar .who .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-bar .actions { display: flex; gap: 8px; }
#unoBtn { font-family: 'Kanit'; font-size: 20px; letter-spacing: 1px; padding: 10px 20px; animation: wiggle 0.6s infinite; }
.hand-wrap { padding: 8px 0 calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: visible; scrollbar-width: thin; }
.hand { display: flex; justify-content: center; padding: 22px 18px 4px; min-width: min-content; }
.hand .card { margin-left: calc(var(--cw) * -0.32); transition: transform 0.18s, filter 0.2s, box-shadow 0.2s; animation: deal 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) backwards; }
.hand .card:first-child { margin-left: 0; }
.hand.my-turn .card.playable { transform: translateY(-14px); box-shadow: 0 0 0 3px #fff, 0 10px 26px -4px var(--brand); cursor: pointer; }
.hand.my-turn .card.playable:hover { transform: translateY(-24px) scale(1.04); z-index: 2; }
.hand.my-turn .card:not(.playable) { filter: brightness(0.45) saturate(0.6); }
.hand .card.new::after { content: 'ใหม่'; position: absolute; top: -10px; right: -6px; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: #f59e0b; color: #111; }
.spectate { text-align: center; color: var(--muted); padding: 16px; }

/* ===== ไพ่ ===== */
.card {
  position: relative; width: var(--cw); height: calc(var(--cw) * 1.5); border-radius: calc(var(--cw) * 0.12);
  background: #fff; padding: calc(var(--cw) * 0.055); flex: none;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6);
}
.card .face { position: relative; width: 100%; height: 100%; border-radius: calc(var(--cw) * 0.08); overflow: hidden; display: grid; place-items: center; }
.card.c-red .face { background: linear-gradient(160deg, #f87171, #dc2626); }
.card.c-yellow .face { background: linear-gradient(160deg, #fcd34d, #f59e0b); }
.card.c-green .face { background: linear-gradient(160deg, #4ade80, #16a34a); }
.card.c-blue .face { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.card.c-wild .face { background: linear-gradient(160deg, #27272a, #09090b); }
.card .oval { position: absolute; width: 82%; height: 62%; border-radius: 50%; background: #fff; transform: rotate(-28deg); }
.card.c-wild .oval { background: conic-gradient(#ef4444 0 25%, #3b82f6 0 50%, #fbbf24 0 75%, #22c55e 0); }
.card .sym { position: relative; font-family: 'Kanit'; font-weight: 700; font-size: calc(var(--cw) * 0.5); line-height: 1; -webkit-text-stroke: calc(var(--cw) * 0.018) #111; text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35); }
.card.c-red .sym { color: #dc2626; } .card.c-yellow .sym { color: #f59e0b; } .card.c-green .sym { color: #16a34a; } .card.c-blue .sym { color: #2563eb; } .card.c-wild .sym { color: #fff; }
.card .sym svg { width: calc(var(--cw) * 0.48); height: calc(var(--cw) * 0.48); display: block; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.35)); }
.card .corner { position: absolute; font-family: 'Kanit'; font-weight: 700; font-size: calc(var(--cw) * 0.17); color: #fff; line-height: 1; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5); }
.card .corner svg { width: calc(var(--cw) * 0.16); height: calc(var(--cw) * 0.16); display: block; }
.card .corner.tl { top: 5%; left: 7%; }
.card .corner.br { bottom: 5%; right: 7%; transform: rotate(180deg); }
.card.back .face { background: radial-gradient(circle at 30% 20%, #60a5fa, #2b7fff 45%, #1a4f9c); }
.card.back .oval { background: #121316; width: 86%; height: 60%; }
.card.back .bolt { position: relative; width: 46%; filter: drop-shadow(0 0 6px #60a5fa); }
.card.back .brand { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; font-family: 'Kanit'; font-size: calc(var(--cw) * 0.13); font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.card.mini { --cw: 40px; }

/* ===== เอฟเฟกต์ ===== */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 75; overflow: hidden; }
.fly { position: fixed; z-index: 60; pointer-events: none; transition: transform 0.5s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.5s; }
.burst { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: 'Kanit'; font-weight: 700; font-size: clamp(46px, 13vw, 92px); white-space: nowrap; -webkit-text-stroke: 2px #0b1020; text-shadow: 0 0 30px var(--glow, #2b7fff), 0 6px 0 rgba(0, 0, 0, 0.4); animation: burst 1.1s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; z-index: 70; pointer-events: none; }
.burst small { display: block; text-align: center; font-size: 0.32em; -webkit-text-stroke: 0; }
.ripple { position: fixed; left: 50%; top: 45%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: var(--rc); opacity: 0.55; animation: ripple 0.9s ease-out forwards; z-index: 40; pointer-events: none; }
.bolt-flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.55), transparent 60%); animation: flash 0.5s ease-out forwards; z-index: 45; pointer-events: none; }
.shake { animation: shake 0.5s; }
.toast-wrap { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 80; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { padding: 8px 16px; border-radius: 12px; background: rgba(26, 28, 35, 0.95); border: 1px solid var(--border); font-size: 14px; animation: toast 2.6s ease forwards; box-shadow: 0 10px 30px -10px #000; }
.toast.err { border-color: #ef4444; }

/* ===== โมดัล ===== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 8, 15, 0.72); backdrop-filter: blur(4px); animation: fade 0.2s; padding: 16px; }
.sheet { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 22px; text-align: center; animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1); max-height: 92vh; overflow: auto; }
.sheet h2 { margin: 0 0 14px; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.colors button { height: 84px; border-radius: 18px; font-size: 20px; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.colors button:active { transform: scale(0.93); }
.colors .red { background: linear-gradient(135deg, #f87171, #dc2626); }
.colors .yellow { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #1f1300; text-shadow: none; }
.colors .green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.colors .blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.slides .slide { display: none; }
.slides .slide.on { display: block; animation: fade 0.3s; }
.slide .row { display: flex; justify-content: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.slide .tag { display: block; font-size: 13px; margin-top: 4px; }
.slide .ok { color: #4ade80; } .slide .no { color: #f87171; }
.slide p { color: #cbd5e1; margin: 6px 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.dots i.on { background: var(--brand); width: 22px; border-radius: 6px; }
.end-sheet .winner { position: relative; display: inline-block; margin: 8px 0; }
.end-sheet .winner .av { width: 96px; height: 96px; }
.end-sheet .winner .av img, .end-sheet .winner .av .ph { border-color: #fbbf24; box-shadow: 0 0 34px rgba(251, 191, 36, 0.7); }
.end-sheet .winner .crown { font-size: 34px; top: -30px; animation: float 2s ease-in-out infinite; }
.rank { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; text-align: left; }
.rank > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); }
.rank .n { width: 22px; font-weight: 700; color: var(--muted); }
.rank .left { margin-left: auto; color: var(--muted); font-size: 13px; }
canvas#confetti { position: fixed; inset: 0; z-index: 85; pointer-events: none; }

/* ===== keyframes ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { opacity: 0.6; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes deal { from { transform: translateY(60px) rotate(8deg); opacity: 0; } }
@keyframes drop { from { transform: scale(1.5) rotate(-25deg); opacity: 0; } }
@keyframes wiggle { 25% { transform: rotate(-4deg) scale(1.05); } 75% { transform: rotate(4deg) scale(1.05); } }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(0.2) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(0.9); opacity: 0; } }
@keyframes ripple { to { transform: scale(60); opacity: 0; } }
@keyframes flash { to { opacity: 0; } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(-10px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes stamp { 0% { transform: scale(2.4); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes flip-dir { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.15); } 100% { transform: rotate(360deg) scale(1); } }

@media (min-width: 900px) and (min-height: 650px) {
  :root { --cw: 100px; }
  .av { width: 56px; height: 56px; }
}
@media (max-height: 560px) {
  :root { --cw: 52px; }
  .hero .uno-word { font-size: 48px; }
}

/* ภาพตัวอย่างนิ่ง (?demo=...&static) สำหรับตรวจหน้าตา */
body.static *, body.static *::before, body.static *::after { animation: none !important; transition: none !important; }
