/* EB Napi Kriptós Szó — scoped, responsive, no external font or framework. */
.eb-cw {
  --eb-cw-ink: #f8fafc; --eb-cw-muted: #cbd5e1; --eb-cw-panel: #111827;
  --eb-cw-panel-2: #1e293b; --eb-cw-line: #475569; --eb-cw-accent: #e8871a;
  --eb-cw-green: #15803d; --eb-cw-yellow: #a16207; --eb-cw-grey: #334155;
  max-width: 720px; margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem);
  border-radius: 18px; background: linear-gradient(145deg, #0f172a, #172554);
  color: var(--eb-cw-ink); box-sizing: border-box;
}
.eb-cw *, .eb-cw *::before, .eb-cw *::after { box-sizing: border-box; }
.eb-cw h1, .eb-cw h2, .eb-cw h3 { color: #fff; line-height: 1.2; }
.eb-cw h1 { margin: .15rem 0 .5rem; font-size: clamp(1.75rem, 6vw, 2.5rem); }
.eb-cw h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.eb-cw h3 { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.eb-cw p { line-height: 1.55; }
.eb-cw-header { text-align: center; }
.eb-cw-eyebrow { margin: 0; color: #fbbf24; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eb-cw-intro { margin: 0; color: var(--eb-cw-muted); }
.eb-cw-countdown { margin: .7rem 0 0; color: #fde68a; font-variant-numeric: tabular-nums; font-size: .95rem; }
.eb-cw-clue, .eb-cw-unavailable, .eb-cw-reveal { margin: 1.35rem 0; padding: 1rem 1.1rem; border: 1px solid var(--eb-cw-line); border-radius: 12px; background: rgba(15, 23, 42, .66); }
.eb-cw-clue { color: #fef3c7; border-left: 4px solid var(--eb-cw-accent); }
.eb-cw-account, .eb-cw-reminder, .eb-cw-leaderboard { margin: 1.35rem 0; padding: 1rem 1.1rem; border: 1px solid var(--eb-cw-line); border-radius: 12px; background: rgba(15, 23, 42, .66); }
.eb-cw-account > :first-child, .eb-cw-reminder > :first-child, .eb-cw-leaderboard > :first-child { margin-top: 0; }
.eb-cw-field { display: grid; gap: .3rem; margin: .75rem 0; color: var(--eb-cw-muted); font-size: .92rem; font-weight: 700; }
.eb-cw-field input { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid #64748b; border-radius: 8px; background: #f8fafc; color: #0f172a; font: inherit; font-weight: 400; }
.eb-cw-field input:focus-visible, .eb-cw-consent input:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.eb-cw-consent { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0; color: var(--eb-cw-muted); font-size: .88rem; line-height: 1.45; }
.eb-cw-consent input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: #e8871a; }
.eb-cw .eb-cw-action, .eb-cw .eb-cw-text-button { min-height: 42px; padding: .6rem .85rem !important; border-radius: 8px !important; font: inherit !important; font-weight: 700 !important; text-transform: none !important; cursor: pointer; }
.eb-cw .eb-cw-action { border: 1px solid #fbbf24 !important; background: #fbbf24 !important; color: #172554 !important; }
.eb-cw .eb-cw-text-button { margin-left: .6rem; border: 1px solid #94a3b8 !important; background: transparent !important; color: #e2e8f0 !important; }
.eb-cw .eb-cw-action:hover, .eb-cw .eb-cw-action:focus-visible, .eb-cw .eb-cw-text-button:hover, .eb-cw .eb-cw-text-button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.eb-cw .eb-cw-action:disabled { cursor: wait; opacity: .65; }
.eb-cw-form-status { min-height: 1.5rem; color: #fde68a; }
.eb-cw-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.eb-cw-leaderboard-note { color: var(--eb-cw-muted); font-size: .88rem; }
.eb-cw-leaderboard-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.eb-cw-leaderboard-table th, .eb-cw-leaderboard-table td { padding: .55rem .35rem; border-bottom: 1px solid #475569; text-align: left; }
.eb-cw-leaderboard-table th { color: #fde68a; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.eb-cw-leaderboard-table td:nth-child(1), .eb-cw-leaderboard-table td:nth-child(n + 3) { text-align: right; }
.eb-cw-tied td:first-child::after { content: "holtverseny"; display: block; color: var(--eb-cw-muted); font-size: .65rem; font-weight: 400; }
.eb-cw-viewer-rank { margin-bottom: 0; color: #fde68a; font-weight: 700; }
.eb-cw-board { display: grid; gap: .42rem; width: min(100%, 430px); margin: 1.5rem auto 1rem; }
.eb-cw-row { display: grid; grid-template-columns: repeat(var(--eb-cw-columns, 8), 1fr); grid-template-columns: repeat(8, 1fr); gap: .42rem; }
.eb-cw-row:has(.eb-cw-tile:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.eb-cw-row:has(.eb-cw-tile:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
.eb-cw-row:has(.eb-cw-tile:nth-child(6):last-child) { grid-template-columns: repeat(6, 1fr); }
.eb-cw-row:has(.eb-cw-tile:nth-child(7):last-child) { grid-template-columns: repeat(7, 1fr); }
.eb-cw-row:has(.eb-cw-tile:nth-child(8):last-child) { grid-template-columns: repeat(8, 1fr); }
.eb-cw-tile { aspect-ratio: 1; display: grid; place-items: center; min-width: 0; border: 2px solid var(--eb-cw-line); border-radius: 7px; background: rgba(15, 23, 42, .45); color: #fff; font-size: clamp(1rem, 5vw, 1.55rem); font-weight: 800; }
.eb-cw-tile-green { background: var(--eb-cw-green); border-color: #22c55e; }
.eb-cw-tile-yellow { background: var(--eb-cw-yellow); border-color: #facc15; }
.eb-cw-tile-grey { background: var(--eb-cw-grey); border-color: #64748b; }
.eb-cw-message { min-height: 1.55rem; margin: .5rem auto; width: min(100%, 430px); text-align: center; color: #dbeafe; }
.eb-cw-message-error { color: #fecaca; }
.eb-cw-keyboard { display: grid; gap: .38rem; margin: 1rem auto 0; max-width: 610px; }
.eb-cw-keyboard-row { display: flex; justify-content: center; gap: .3rem; }
.eb-cw .eb-cw-key { flex: 1; min-width: 0; min-height: 44px !important; padding: .35rem !important; border: 1px solid #64748b !important; border-radius: 7px !important; background: #e2e8f0 !important; color: #0f172a !important; font-size: clamp(.72rem, 2.5vw, 1rem) !important; font-weight: 800 !important; line-height: 1 !important; text-transform: none !important; box-shadow: none !important; cursor: pointer; }
.eb-cw .eb-cw-key-wide { flex: 1.65; font-size: .72rem !important; }
.eb-cw .eb-cw-key:hover, .eb-cw .eb-cw-key:focus-visible { border-color: #fbbf24 !important; outline: 3px solid #fbbf24; outline-offset: 1px; }
.eb-cw .eb-cw-key-green { background: var(--eb-cw-green) !important; color: #fff !important; }
.eb-cw .eb-cw-key-yellow { background: var(--eb-cw-yellow) !important; color: #fff !important; }
.eb-cw .eb-cw-key-grey { background: var(--eb-cw-grey) !important; color: #fff !important; }
.eb-cw-reveal { border-color: #64748b; }
.eb-cw-term { color: #fbbf24; font-size: 1.4rem; font-weight: 800; letter-spacing: .04em; }
.eb-cw-explanation { color: #e2e8f0; }
.eb-cw-explanation p:first-child { margin-top: 0; }
.eb-cw-explanation p:last-child { margin-bottom: 0; }
.eb-cw a { color: #fde68a; text-decoration: underline; text-underline-offset: 3px; }
.eb-cw-link { display: inline-block; margin-top: .8rem; font-weight: 700; }
.eb-cw-related { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.eb-cw .eb-cw-share { padding: .65rem 1rem !important; border: 1px solid #fbbf24 !important; border-radius: 8px !important; background: transparent !important; color: #fde68a !important; font: inherit !important; font-weight: 700 !important; text-transform: none !important; cursor: pointer; }
.eb-cw .eb-cw-share:hover, .eb-cw .eb-cw-share:focus-visible { background: rgba(251, 191, 36, .15) !important; outline: 3px solid #fbbf24; outline-offset: 2px; }
.eb-cw-future { padding: .75rem 1rem; border-left: 4px solid #e8871a; background: #fff7ed; color: #7c2d12; }
.eb-cw-leaderboard-slot { max-width: 720px; margin: 2rem auto; }
.eb-cw-leaderboard-slot .eb-cw-loading, .eb-cw-leaderboard-slot .eb-cw-unavailable { padding: 1rem; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #334155; }
.eb-cw-leaderboard-slot .eb-cw-leaderboard { border-color: #cbd5e1; background: #fff; color: #1e293b; }
.eb-cw-leaderboard-slot .eb-cw-leaderboard h2 { color: #0f172a; }
.eb-cw-leaderboard-slot .eb-cw-leaderboard-note, .eb-cw-leaderboard-slot .eb-cw-tied td:first-child::after { color: #64748b; }
.eb-cw-leaderboard-slot .eb-cw-leaderboard-table th { color: #92400e; }
.eb-cw-leaderboard-slot .eb-cw-leaderboard-table th, .eb-cw-leaderboard-slot .eb-cw-leaderboard-table td { border-color: #e2e8f0; }
@media (max-width: 420px) {
  .eb-cw { margin: 1rem 0; border-radius: 12px; }
  .eb-cw-keyboard-row { gap: .18rem; }
  .eb-cw .eb-cw-key { min-height: 40px !important; padding: .25rem !important; }
}
@media (prefers-reduced-motion: reduce) { .eb-cw *, .eb-cw *::before, .eb-cw *::after { transition: none !important; animation: none !important; } }
