:root{--paper:#f7f4ee;--card:#fff;--tint:#fbf1e4;--header-wash:#efe9db;--ink:#362f29;--ink-muted:#7a7266;--ink-faint:#9c9284;--border:#dcd3c4;--border-dash:#e3dccc;--sage:#6b8e6a;--sage-dark:#56765a;--blue:#5a7fb0;--rust:#a8503e;--honey:#d8a857;--rose:#c4688c;--plum:#9b8bb4;--shadow-card:0 1px 3px #362f2914, 0 1px 2px #362f290d;--header-height:64px;--font-display:"Lora", Georgia, serif;--font-body:"Karla", system-ui, sans-serif;font:400 16px/1.5 var(--font-body);color:var(--ink);background:var(--paper);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{box-sizing:border-box;flex-direction:column;width:100%;min-height:100dvh;display:flex}body{margin:0}h1,h2,h3{font-family:var(--font-display);color:var(--ink);margin:0;font-weight:600}p{margin:0}button{font-family:inherit}.app-shell{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;min-height:100dvh;padding:1.5rem;display:flex}.app-shell--with-header{justify-content:flex-start;padding:0}.login-shell{gap:.75rem;padding:2rem 1.5rem}.login-shell__icon{background:var(--header-wash);width:64px;height:64px;color:var(--sage);border-radius:50%;justify-content:center;align-items:center;margin-bottom:.5rem;display:flex}.login-shell__tagline{color:var(--ink-muted);max-width:22rem;margin-bottom:1rem;font-size:.95rem;line-height:1.5}.login-form{flex-direction:column;gap:1rem;width:100%;max-width:22rem;display:flex}.login-form__field{text-align:left;flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:700;display:flex}.login-form__field input{border:2px solid var(--border);background:var(--card);height:52px;color:var(--ink);box-sizing:border-box;border-radius:12px;padding:0 1rem;font-family:inherit;font-size:1rem}.login-form__field input:focus-visible{outline:2px solid var(--sage);outline-offset:1px}.login-form__error,.error-text{color:var(--rust);margin:0;font-size:.9rem}.login-form button{background:var(--sage);height:52px;color:var(--paper);cursor:pointer;border:none;border-radius:26px;margin-top:.25rem;padding:0 1rem;font-size:1rem;font-weight:700;box-shadow:0 2px 6px #6b8e6a59}.login-form button:disabled{opacity:.6;cursor:default;box-shadow:none}.app-header{width:100%;height:var(--header-height);border-bottom:1px solid var(--border);background:var(--card);z-index:20;box-sizing:border-box;justify-content:space-between;align-items:center;gap:1rem;padding:0 1.25rem;display:flex;position:sticky;top:0}.app-header__brand{align-items:center;gap:.5rem;display:flex}.app-header__logo{color:var(--sage)}.app-header__wordmark{font-family:var(--font-display);font-size:1.25rem;font-weight:600}.app-header__nav{gap:.375rem;display:flex}.app-header__nav-btn{color:var(--ink-muted);cursor:pointer;background:0 0;border:none;border-radius:22px;padding:.625rem 1.1rem;font-family:inherit;font-size:.875rem;font-weight:700}.app-header__nav-btn--active{background:var(--sage);color:var(--paper)}.app-header__account{position:relative}.app-header__account-trigger{cursor:pointer;background:0 0;border:none;border-radius:22px;align-items:center;gap:.625rem;min-height:44px;padding:.375rem .625rem .375rem .375rem;display:flex}.app-header__account-trigger:hover{background:var(--header-wash)}.app-header__avatar{background:var(--honey);width:36px;height:36px;color:var(--ink);font-family:var(--font-display);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.9rem;font-weight:700;display:flex}.app-header__name{font-size:.9rem;font-weight:700}.app-header__account-menu{background:var(--card);z-index:30;border-radius:14px;flex-direction:column;gap:.125rem;min-width:12rem;padding:.5rem;display:flex;position:absolute;top:calc(100% + .5rem);right:0;box-shadow:0 8px 20px #362f2926}.app-header__account-menu-item{min-height:44px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:10px;align-items:center;gap:.625rem;padding:.75rem;font-family:inherit;font-size:.9rem;font-weight:600;display:flex}.app-header__account-menu-item:hover{background:var(--header-wash)}.app-tabbar{display:none}.app-main{text-align:center;box-sizing:border-box;width:100%;padding:1.5rem}.search-input{align-items:center;display:flex;position:relative}.search-input__icon{color:var(--ink-faint);pointer-events:none;position:absolute;left:1rem}.search-input__field{border:2px solid var(--border);background:var(--card);width:100%;height:48px;color:var(--ink);box-sizing:border-box;border-radius:24px;padding:0 2.75rem;font-family:inherit;font-size:1rem}.search-input__field:focus-visible{outline:2px solid var(--sage);outline-offset:1px}.search-input__clear{width:36px;height:36px;color:var(--ink-faint);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;right:.375rem}.search-input__clear:hover{background:var(--header-wash)}.quiz{flex-direction:column;gap:.75rem;max-width:min(70rem,max(24rem,192dvh - 652.8px));margin:0 auto;display:flex}.quiz__header{text-align:left;justify-content:space-between;align-items:baseline;gap:1rem;display:flex}.quiz__prompt{justify-content:center;align-items:center;min-height:5.5rem;display:flex}button.quiz__play-btn{background:var(--sage);min-width:10rem;height:52px;color:var(--paper);cursor:pointer;border:none;border-radius:26px;padding:0 2rem;font-size:1.125rem;font-weight:700;box-shadow:0 2px 6px #6b8e6a59}button.quiz__play-btn:hover{background:var(--sage-dark)}button.quiz__play-btn:disabled{opacity:.6;cursor:default}.quiz__question{font-family:var(--font-display);font-size:1.5rem}.quiz__question strong{color:var(--blue)}.quiz__start{flex-direction:column;align-items:center;gap:.625rem;display:flex}.quiz__continents,.leaderboard__categories{flex-wrap:wrap;justify-content:center;gap:.375rem;display:flex}.leaderboard__categories{margin-bottom:1rem}.leaderboard__games{margin-bottom:.5rem}button.quiz__continent-btn{border:2px solid var(--border);background:var(--card);height:34px;color:var(--ink-muted);cursor:pointer;border-radius:17px;padding:0 .875rem;font-family:inherit;font-size:.8125rem;font-weight:700}button.quiz__continent-btn--active{background:var(--blue);border-color:var(--blue);color:var(--paper)}.quiz__name-answers{flex-direction:column;align-items:center;gap:.5rem;display:flex}.quiz__choices{grid-template-columns:repeat(3,1fr);gap:.5rem;width:100%;display:grid}button.quiz__choice{border:2px solid var(--border);background:var(--card);min-height:48px;color:var(--ink);cursor:pointer;border-radius:12px;padding:.375rem .75rem;font-family:inherit;font-size:.9375rem;font-weight:700}button.quiz__choice:hover:not(:disabled){border-color:var(--blue)}button.quiz__choice:disabled{cursor:default}button.quiz__choice--correct{background:var(--sage);border-color:var(--sage);color:var(--paper)}button.quiz__choice--wrong{background:var(--rust);border-color:var(--rust);color:var(--paper)}.quiz__games{justify-content:center;gap:.5rem;display:flex}button.quiz__game-btn{border:2px solid var(--border);background:var(--card);height:44px;color:var(--ink-muted);cursor:pointer;border-radius:22px;padding:0 1.125rem;font-family:inherit;font-size:1rem;font-weight:700}button.quiz__game-btn--active{background:var(--honey);border-color:var(--honey);color:var(--ink)}.quiz__stage{box-sizing:border-box;background:var(--card);border:1px solid var(--border);width:100%;min-height:16rem;box-shadow:var(--shadow-card);border-radius:16px;justify-content:center;align-items:center;padding:3.5rem 1rem 1.5rem;display:flex;position:relative}.quiz__flag{aspect-ratio:4/3;object-fit:contain;border:1px solid var(--border);width:min(22rem,80%);box-shadow:var(--shadow-card);border-radius:6px;display:block}.quiz__flag--small{width:5rem;margin:0 auto .75rem}.quiz__capital-country p{font-family:var(--font-display);font-size:2rem;font-weight:600}.quiz__stage-idle{color:var(--ink-muted)}.quiz__stage-emoji{margin-bottom:.5rem;font-size:3rem;display:block}.quiz__wrong{flex-direction:column;align-items:center;gap:.25rem;display:flex}.quiz__wrong-title{font-family:var(--font-display);font-size:1.375rem}.quiz__wrong-name,.quiz__question strong.quiz__wrong-name{color:var(--rust)}.quiz__right-name,.quiz__question strong.quiz__right-name{color:var(--sage-dark)}button.quiz__next-btn{border:1px solid var(--border);background:var(--card);height:36px;color:var(--ink);cursor:pointer;border-radius:18px;margin-top:.25rem;padding:0 1.25rem;font-weight:700}.quiz__result{flex-direction:column;align-items:center;gap:.5rem;display:flex}.quiz__result-title{font-family:var(--font-display);font-size:1.375rem}.quiz__new-best{color:var(--sage-dark);font-weight:700}.world-map{background:var(--card);border:1px solid var(--border);width:100%;box-shadow:var(--shadow-card);border-radius:16px;position:relative;overflow:hidden}.world-map__svg{touch-action:none;cursor:grab;width:100%;height:auto;display:block}.world-map__svg:active{cursor:grabbing}.world-map__ocean{fill:#e4eef6}.world-map__country{fill:var(--paper);stroke:var(--ink-muted);stroke-width:.6px;vector-effect:non-scaling-stroke;stroke-linejoin:round;cursor:pointer;transition:fill .12s}.world-map__country:hover{fill:var(--tint)}.world-map__country--selected,.world-map__country--selected:hover{fill:var(--honey)}.world-map__country--correct,.world-map__country--correct:hover{fill:var(--sage)}.world-map__country--target,.world-map__country--target:hover{fill:var(--blue)}.world-map__country--wrong,.world-map__country--wrong:hover{fill:var(--rust)}.world-map__marker{pointer-events:none}.world-map__marker-ring{fill:none;stroke:var(--rust);animation:1s ease-in-out infinite world-map-pulse}.world-map__marker--target .world-map__marker-ring{stroke:var(--blue)}.world-map__marker--target .world-map__marker-arrow{fill:var(--blue)}.world-map__marker-arrow{fill:var(--rust);stroke:var(--card);stroke-linejoin:round;animation:.7s ease-in-out infinite alternate world-map-bounce}@keyframes world-map-pulse{0%,to{opacity:1}50%{opacity:.35}}@keyframes world-map-bounce{0%{transform:translateY(0)}to{transform:translateY(-8px)}}@media (prefers-reduced-motion:reduce){.world-map__marker-ring,.world-map__marker-arrow{animation:none}}.world-map__badge{background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-card);font-variant-numeric:tabular-nums;pointer-events:none;border-radius:999px;padding:.375rem .875rem;font-size:1.125rem;font-weight:700;position:absolute;top:.75rem}.world-map__badge--left{left:.75rem}.world-map__badge--right{color:var(--sage-dark);right:.75rem}.world-map__badge--urgent{color:var(--rust)}.world-map__loading{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.world-map__controls{flex-direction:column;gap:.375rem;display:flex;position:absolute;bottom:.75rem;right:.75rem}.world-map__controls button{border:1px solid var(--border);background:var(--card);width:40px;height:40px;color:var(--ink);box-shadow:var(--shadow-card);cursor:pointer;border-radius:50%;font-size:1.25rem;font-weight:700;line-height:1}.world-map__controls button:disabled{color:var(--ink-faint);cursor:default}.muted-text{color:var(--ink-muted);font-size:.8125rem}.leaderboard{text-align:left;max-width:30rem;margin:0 auto}.leaderboard__filters{gap:.5rem;margin:1.25rem 0 1rem;display:flex}.leaderboard__filter-btn{border:2px solid var(--border);background:var(--card);height:44px;color:var(--ink-muted);cursor:pointer;border-radius:22px;flex:1;font-family:inherit;font-size:.875rem;font-weight:700}.leaderboard__filter-btn--active{background:var(--sage);border-color:var(--sage);color:var(--paper)}.leaderboard__list{flex-direction:column;gap:.625rem;display:flex}.leaderboard__row{background:var(--card);box-shadow:var(--shadow-card);box-sizing:border-box;border-radius:14px;align-items:center;gap:.875rem;min-height:56px;padding:.75rem 1rem;display:flex}.leaderboard__row--me{background:var(--tint);box-shadow:none;border:2px solid #e8d6b0}.leaderboard__rank{text-align:center;width:1.5rem;font-family:var(--font-display);color:var(--ink-muted);flex-shrink:0;font-weight:600}.leaderboard__avatar{background:var(--honey);width:40px;height:40px;color:var(--ink);font-family:var(--font-display);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.9375rem;font-weight:700;display:flex}.leaderboard__name{flex:1;font-size:.9375rem;font-weight:700}.leaderboard__you{color:var(--ink-faint);font-size:.8125rem;font-weight:500}.leaderboard__count{font-family:var(--font-display);color:var(--sage-dark);font-size:1.25rem;font-weight:600}.leaderboard__heart{cursor:pointer;color:#c7bfaf;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.leaderboard__heart-input{opacity:0;width:1px;height:1px;position:absolute}.leaderboard__heart:has(.leaderboard__heart-input:checked){color:var(--rust)}.leaderboard__heart:has(.leaderboard__heart-input:checked) svg{fill:currentColor}.leaderboard__heart:has(.leaderboard__heart-input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}.account-page{text-align:left;max-width:22rem;margin:0 auto}.account-page .login-form{max-width:none;margin-top:1.25rem}.account-page__subtitle{color:var(--ink-muted);margin-top:.5rem;font-size:.9rem}.account-page__optional{color:var(--ink-muted);font-weight:400}.account-page__actions{gap:.625rem;margin-top:.25rem;display:flex}.account-page__actions button{flex:1}button.account-page__cancel-btn,button.account-page__back-btn{border:2px solid var(--border);background:var(--card);height:52px;color:var(--ink-muted);cursor:pointer;border-radius:26px;padding:0 1rem;font-size:1rem;font-weight:700}.admin-panel{text-align:left;max-width:40rem;margin:0 auto}.admin-panel__subtitle{color:var(--ink-muted);margin-top:.25rem;font-size:.875rem}.admin-panel__card{background:var(--card);box-shadow:var(--shadow-card);border-radius:14px;margin-top:1.25rem;overflow:hidden}.admin-panel__table{border-collapse:collapse;width:100%}.admin-panel__table th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);padding:1rem 1rem .625rem;font-size:.75rem;font-weight:700}.admin-panel__table td{border-top:1px dashed var(--border-dash);padding:.875rem 1rem;font-size:.9375rem}.admin-panel__row--pending{background:var(--tint)}.admin-panel__name{font-weight:700}.admin-panel__badge{background:var(--header-wash);color:var(--sage-dark);border-radius:10px;padding:.25rem .625rem;font-size:.75rem;font-weight:700}.admin-panel__badge--pending{color:#8a5a2e;background:#f3dcc7}.admin-panel__btn{border:2px solid var(--border);background:var(--card);color:var(--ink-muted);cursor:pointer;border-radius:14px;padding:.5rem .875rem;font-family:inherit;font-size:.8125rem;font-weight:700}.admin-panel__btn:disabled{opacity:.6;cursor:default}.admin-panel__btn--primary{background:var(--sage);border-color:var(--sage);color:var(--paper)}.admin-panel__reset-btn{color:var(--rust);border-color:var(--border);align-items:center;gap:.375rem;display:inline-flex}.admin-panel__confirm{flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.85rem;display:flex}@media (width<=720px){.app-header__nav,.app-header__name{display:none}.app-tabbar{background:var(--card);border-top:1px solid var(--border);padding:.375rem .5rem calc(.5rem + env(safe-area-inset-bottom));z-index:20;display:flex;position:fixed;bottom:0;left:0;right:0}.app-tabbar__btn{color:var(--ink-faint);cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;align-items:center;gap:.25rem;padding:.5rem 0;font-family:inherit;font-size:.6875rem;font-weight:700;display:flex}.app-tabbar__btn--active{color:var(--sage)}.app-main{padding-bottom:5.5rem}.world-map__controls{flex-direction:row;bottom:.5rem;right:.5rem}.world-map__badge{padding:.25rem .625rem;font-size:.9375rem;top:.5rem}.world-map__badge--left{left:.5rem}.world-map__badge--right{right:.5rem}.quiz__question{font-size:1.25rem}.quiz__choices{grid-template-columns:repeat(2,1fr)}.world-map__controls button{width:32px;height:32px;font-size:1rem}}
