:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --surface: #fff;
  --ink: #1b2b3c;
  --soft: #526170;
  --line: #dce1dc;
  --sky: #c6e4f7;
  --navy: #18374b;
  --orange: #ff955d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled, button[aria-disabled="true"] { opacity: .48; cursor: default; }
button, a, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #3475a3; outline-offset: 3px; }
a { color: var(--navy); text-underline-offset: .21em; }
button { border: 0; }
.wrap { width: min(1056px, calc(100% - 88px)); margin-inline: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 4px 0; background: transparent; color: var(--ink); font: 700 2rem/1.1 var(--serif); letter-spacing: -.075em; }
.brand-icon { display: inline-block; position: relative; width: 33px; height: 34px; }
.brand-icon i, .brand-icon b { position: absolute; border-radius: 4px; width: 23px; height: 28px; }
.brand-icon i { background: var(--orange); transform: rotate(-16deg); left: 1px; top: 3px; }
.brand-icon b { display: grid; place-items: center; background: var(--navy); color: #fff8e6; border: 1px solid var(--paper); transform: rotate(7deg); left: 8px; top: 3px; font: 700 18px/1 Georgia,serif; letter-spacing: -.12em; padding-right: 1px; }
.tabs { display: inline-flex; align-items: center; gap: 5px; background: #eceedf80; padding: 4px; border: 1px solid #e3e7df; border-radius: 26px; }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 16px; min-height: 38px; border-radius: 20px; color: var(--soft); background: transparent; font-size: .915rem; font-weight: 600; }
.tabs button[aria-current="page"], .tabs button.active { background: var(--navy); color: white; }
.tabs .icon { width: 17px; height: 17px; }
.languages { display: inline-flex; justify-self: end; align-items: center; gap: 6px; color: #475664; font-size: .875rem; font-weight: 600; }
.languages .icon { width: 17px; height: 17px; margin-right: 2px; }
.languages span { color: #82909b; }
.main { padding-top: 32px; min-height: calc(100vh - 181px); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); border-radius: 23px; display: grid; grid-template-columns: 1.18fr 1fr; min-height: 311px; }
.hero-content { padding: 42px 12px 42px clamp(28px,4.4vw,48px); align-self: center; z-index: 1; }
.date { display: flex; align-items: center; gap: 8px; color: #34566a; font-size: .875rem; font-weight: 650; }
.date .icon { width: 17px; height: 17px; }
h1,h2,h3,p { margin: 0; }
h1,h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.85rem,6.6vw,4.75rem); line-height: 1.06; letter-spacing: -.066em; }
.hero h1 { margin-top: 13px; }
h1 > span { color: #c85c28; }
.hero-copy { margin-top: 8px; color: #314e62; font-size: 1.03rem; }
.hero-copy strong { font-weight: 650; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 10px 19px; border: 1px solid transparent; border-radius: 11px; font: 650 .94rem/1.25 var(--sans); white-space: normal; text-align: center; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #234b64; }
.hero-button { background: #18374b; color: white; margin-top: 23px; box-shadow: 0 2px 0 #18374b14; }
.hero-button .icon { width: 19px; height: 19px; }
.btn-secondary { background: var(--surface); border-color: #c9d2d3; }
.btn-secondary:hover { background: #eef4f7; }
.btn-quiet { color: #344e62; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 5px; }
.btn-quiet:hover { color: #1d3346; }
.hero-art { position: relative; align-self: stretch; min-width: 0; display: grid; place-items: center; padding-right: 8%; }
.art-orbit { position: absolute; width: 320px; height: 320px; border: 1px solid #93bdd241; border-radius: 50%; pointer-events: none; }
.orbit-one { transform: translate(60px,-26px); }
.orbit-two { width: 445px; height: 445px; transform: translate(60px,-26px); }
.deck { position: relative; width: 247px; height: 159px; transform: rotate(-4deg); }
.flash { width: 100%; height: 100%; position: absolute; border-radius: 13px; }
.flash.under { background: #ed8d54; transform: translate(27px,-5px) rotate(15deg); box-shadow: 0 3px 4px #29537214; }
.flash.middle { background: #315568; transform: translate(13px,0) rotate(8deg); box-shadow: 0 6px 6px #17394e1f; }
.flash.front { background: #fff9e9; color: #1f3445; padding: 18px 22px 15px; transform: translate(-8px,2px) rotate(-6deg); box-shadow: 0 10px 17px #24455824,0 1px 5px #172a3410; }
.face-top,.face-bottom { display: flex; align-items: center; justify-content: space-between; }
.face-top { color: #656a62; font: 700 .675rem/1.1 var(--sans); letter-spacing: .13em; }
.face-top .icon { width: 18px; height: 18px; color: #68726c; }
.flash-word { font: 500 3.2rem/1.1 var(--serif); letter-spacing: -.065em; margin: 11px 0 9px; }
.flash-line { height: 1px; background: #dbd8c8; }
.face-bottom { margin-top: 7px; color: #51594f; font: 500 .9rem/1.4 var(--sans); }
.face-bottom i { width: 10px; height: 10px; border-radius: 50%; background: #e88c53; }
.block { margin-top: 29px; }
h2 { font-size: clamp(1.75rem,2.7vw,2.08rem); line-height: 1.2; letter-spacing: -.045em; }
.metrics { margin-top: 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 19px 22px 17px; }
.metric-label { display: flex; align-items: center; gap: 9px; font-size: .9375rem; font-weight: 630; }
.metric-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; }
.metric-icon .icon { width: 17px; height: 17px; }
.metric-icon.gold { color: #836527; background: #f7edc8; }
.metric-icon.blue { color: #365b76; background: #e1eef7; }
.metric-icon.coral { color: #924e33; background: #fbe2d3; }
.metric-value { margin-top: 8px; display: flex; align-items: baseline; gap: 5px; }
.metric-value strong { font: 550 2.35rem/1.1 var(--serif); letter-spacing: -.065em; font-variant-numeric: lining-nums tabular-nums; }
.metric-value span { color: var(--soft); font-size: .9rem; }
.metric p { color: var(--soft); font-size: .83rem; margin-top: 8px; }
progress { display: block; width: 100%; height: 6px; color: #e68d52; accent-color: #e68d52; background: #eeeee7; border: none; border-radius: 100px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: #eeeee7; border-radius: 100px; }
progress::-webkit-progress-value { background: #e68d52; border-radius: 100px; }
progress::-moz-progress-bar { background: #e68d52; border-radius: 100px; }
.metric progress { margin-top: 16px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.library-preview .section-top { margin-bottom: 11px; }
.search-box { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 48px; padding: 0 15px; background: white; border: 1px solid #cdd5d4; border-radius: 11px; color: #516271; }
.search-box:focus-within { outline: 2px solid #4e829d; outline-offset: 1px; }
.search-box .icon { width: 18px; height: 18px; }
.search-box input { flex: 1; width: 0; min-height: 45px; padding: 3px 0; font-size: 1rem; border: none; background: none; outline: none; color: var(--ink); }
.search-box input:focus-visible { outline: none; }
::placeholder { color: #687681; opacity: 1; }
.preview-list,.word-list { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.preview-list:empty,.word-list:empty { display: none; }
.preview-list { margin-top: 12px; }
.word-row { width: 100%; display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.3fr) minmax(6.7rem,auto); align-items: center; gap: 14px; padding: 13px 20px; min-height: 52px; background: white; text-align: left; }
.word-row + .word-row { border-top: 1px solid #e6e9e3; }
.word-row:hover { background: #f5f8f8; }
.word-row:focus-visible { outline-offset: -3px; }
.word-en,.word-hu { overflow-wrap: anywhere; }
.word-en { font-weight: 650; }
.word-hu { color: #435463; }
.word-status { width: fit-content; justify-self: end; border-radius: 20px; background: #f2f2eb; color: #53605e; font-size: .79rem; padding: 3px 10px; }
.view-heading { margin: 15px 0 25px; }
.view-heading h1 { font-size: clamp(2.8rem,5vw,4rem); }
.lead,.result-count { color: var(--soft); }
.lead { margin-top: 9px; }
.search-tools { display: flex; align-items: stretch; gap: 12px; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap:after { content: ''; pointer-events: none; position: absolute; top: 43%; right: 15px; width: 7px; height: 7px; border: solid var(--soft); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.select-wrap select { appearance: none; padding: 9px 38px 9px 14px; border: 1px solid #cdd5d4; border-radius: 10px; background: white; min-height: 45px; font-size: 1rem; }
.result-count { font-size: .9rem; margin: 14px 0 8px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 19px 0; }
#page-info { font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; padding: 20px 0 max(22px,env(safe-area-inset-bottom)); margin-top: 35px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--soft); }
.site-footer a { color: var(--soft); }
.study-content { width: min(100%,690px); margin: clamp(4px,2vw,24px) auto; }
.study-card { padding: clamp(22px,5vw,45px); background: white; border: 1px solid var(--line); border-radius: 20px; }
.study-card p { margin: .6em 0; }
.study-word { font: 500 clamp(2.45rem,6vw,3.8rem)/1.12 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.study-prompt { color: var(--soft); overflow-wrap: anywhere; }
.study-word + .study-prompt { margin-top: 6px; font-size: 1.18rem; }
.study-meta,.detail-label { color: #536974; font-size: .865rem; font-weight: 650; }
.study-card .study-meta { margin: 0 0 23px; }
.study-hint { color: #4a5b66; font-size: .94rem; }
h2.study-prompt { color: var(--ink); }
.example-block { padding: 14px 18px 6px; background: #edf5f9; border-radius: 12px; margin: 15px 0 21px; overflow-wrap: anywhere; }
.example-block p { margin: 0; }
.example-block p[lang="en"] { font: 500 1.38rem/1.38 var(--serif); color: var(--ink); }
.example-block p + p { color: var(--soft); margin-top: 4px; font-size: .95rem; }
.example-block .btn-quiet { font-size: .86rem; padding-left: 0; }
.detail-label + .actions,.study-hint + .actions { margin-top: 7px; }
#word-dialog { width: min(515px,calc(100% - 28px)); }
#word-dialog .study-hint { margin-top: 12px; }
#word-dialog .section-top { margin-bottom: 5px; }
#word-dialog .actions { gap: 7px; }
#word-dialog .actions .btn { padding-inline: 13px; }
.empty-note { padding: 16px 19px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 23px; }
dialog { padding: clamp(23px,4vw,32px); width: min(460px,calc(100% - 28px)); max-height: 88vh; max-height: 88dvh; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 75px #132a3c30; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #172f4554; }
.icon-button { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border-radius: 50%; background: #eef1ed; }
.field { display: block; font-size: .9375rem; font-weight: 600; margin-top: 15px; }
.field span { color: var(--soft); font-weight: 400; }
.field input { display: block; width: 100%; min-height: 45px; padding: 8px 12px; margin-top: 5px; border: 1px solid #c4cfce; border-radius: 9px; background: #fff; font-size: 1rem; font-weight: 400; }
.toast { z-index: 20; position: fixed; bottom: max(18px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: min(90vw,540px); width: max-content; color: #fff; background: #233e50; border-radius: 12px; padding: 12px 19px; box-shadow: 0 5px 22px #172b4030; font-size: .93rem; }
.notice { margin-bottom: 12px; padding: 10px 14px; background: #fbedd1; border-radius: 9px; }
@media (max-width: 780px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 276px; grid-template-columns: 1.19fr .81fr; }
  .hero-content { padding: 32px 4px 32px 29px; }
  .deck { transform: scale(.79) rotate(-4deg); }
  .hero-art { padding-right: 5%; }
  .metric { padding: 16px 15px; }
  .metric-label { gap: 6px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 8px; }
  .brand { font-size: 1.8rem; gap: 8px; }
  .languages { display: none; }
  .tabs { gap: 0; padding: 3px; }
  .tabs button { padding: 7px 11px; min-height: 44px; gap: 6px; }
  .main { padding-top: 17px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .hero-content { padding: 23px 22px 0; align-self: start; }
  .hero h1 { font-size: clamp(2.8rem,10vw,3.55rem); margin-top: 9px; }
  .hero-copy { font-size: 1rem; margin-top: 6px; }
  .hero-button { margin-top: 16px; min-height: 43px; padding: 9px 15px; }
  .hero-art { height: 136px; display: block; margin-top: -1px; }
  .deck { position: absolute; right: 9%; bottom: 28px; transform: scale(.60) rotate(-5deg); transform-origin: bottom right; }
  .orbit-one,.orbit-two { right: -15%; top: -88px; width: 245px; height: 245px; transform: none; }
  .orbit-two { right: -24%; top: -117px; width: 300px; height: 300px; }
  .block { margin-top: 23px; }
  .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
  .target-metric { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .target-metric .metric-value { margin: 0; }
  .target-metric .metric-value strong { font-size: 1.85rem; }
  .target-metric progress { grid-column: 1/-1; margin-top: 11px; }
  .metric { padding: 13px 14px; border-radius: 13px; }
  .metric-label { font-size: .875rem; }
  .metric-icon { width: 25px; height: 25px; }
  .metric-icon .icon { width: 16px; height: 16px; }
  .metric-value { margin-top: 6px; }
  .metric-value strong { font-size: 1.9rem; }
  .metric p { line-height: 1.4; margin-top: 5px; }
  .word-row { grid-template-columns: 1fr auto; gap: 1px 8px; padding: 10px 14px; }
  .word-en { grid-column: 1; grid-row: 1; }
  .word-hu { grid-column: 1; grid-row: 2; font-size: .93rem; }
  .word-status { grid-column: 2; grid-row: 1/3; }
  .search-tools { flex-direction: column; gap: 8px; }
  .select-wrap { width: max-content; max-width: 100%; }
  .view-heading { align-items: flex-start; margin: 6px 0 19px; gap: 8px; }
  .view-heading .btn { flex: none; padding-inline: 12px; }
  .lead { font-size: .93rem; }
  .study-card { border-radius: 16px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 22px); }
  .hero-content { padding-inline: 17px; }
  .metric { padding: 12px; }
  .metric-label { font-size: .82rem; }
  .brand { gap: 6px; }
  .tabs button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
