:root{--bg:#171015;--panel:#24161f;--text:#ffe9f3;--muted:#caa9ba;--accent:#ffc3dd;--accent2:#8e234c;--ok:#2ecc71;--bad:#e74c3c}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}main{min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:#0f0a0dcc;border-bottom:1px solid #ffffff18;position:sticky;top:0;z-index:10}.brand{display:flex;flex-direction:column}.brand a{font-size:22px;font-weight:800}.brand small{opacity:.75}nav{display:flex;gap:16px;align-items:center}nav a:hover{opacity:.7}.user-themed{--bg:var(--user-bg);--panel:var(--user-panel);--text:var(--user-text);--accent:var(--user-button);background-color:var(--user-bg);color:var(--user-text);background-image:var(--user-bg-image);background-size:cover;background-position:center;background-attachment:fixed}.user-themed .topbar{background:color-mix(in srgb,var(--user-bg) 88%,#000 12%);color:var(--user-text)}.user-themed .note-card,.user-themed .quiz-card,.user-themed .center-card{background:var(--user-panel);color:var(--user-panel-text)}.user-themed .rect-btn,.user-themed .play-btn,.user-themed .shuffle-btn,.user-themed button{background:var(--user-button);color:var(--user-panel-text)}.user-themed input,.user-themed textarea,.user-themed select{background:#ffffffd9;color:#111;border:1px solid #0002}.auth-shell{min-height:100vh;display:grid;place-items:center}.auth-lock{background:#CFE8F6!important;color:#6B102D}.lock-card{background:#F8FCFF;border:1px solid #6B102D33;box-shadow:0 18px 55px #6B102D18;color:#6B102D}.lock-card h1{margin:4px 0 22px;text-align:center;font-size:36px}.lock-kicker{text-align:center;font-weight:900;letter-spacing:.24em;font-size:14px;color:#6B102D}.lock-card label{color:#6B102D}.lock-card input{background:white;color:#222;border:1px solid #6B102D55}.lock-card button{background:#6B102D;color:white}.lock-card .auth-links{color:#6B102D;text-align:center}.auth-card,.center-card{width:min(500px,92vw);border-radius:18px;padding:28px}.auth-card p{color:#6B102D}.auth-links{display:grid;gap:8px;margin-top:18px}.alert{background:#fff0f3;border:1px solid #a83655;padding:12px 14px;border-radius:10px;margin:12px 0;color:#66152b}form{display:grid;gap:14px}label{display:grid;gap:7px;font-size:14px}input,textarea,select{width:100%;border-radius:10px;padding:12px 14px;font:inherit}button,.rect-btn,.play-btn,.shuffle-btn{border:0;cursor:pointer;font-weight:800;padding:13px 18px;border-radius:10px;display:inline-block;text-align:center}.secondary-btn{background:#ffffffaa!important;color:#222!important;border:1px solid #0002!important}.home-screen{min-height:100vh;position:relative;padding:30px;background-color:var(--user-bg,#3E0201);background-image:var(--user-bg-image);background-size:cover;background-position:center;color:var(--user-text,#fff)}.profile-card{position:absolute;left:28px;top:28px;display:flex;gap:12px;align-items:center;background:var(--user-panel,#D6ECFF);color:var(--user-panel-text,#111);border:1px solid #0002;padding:10px 14px;border-radius:14px}.avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--user-button,#D6ECFF);color:var(--user-panel-text,#111);font-weight:900;font-size:22px}.profile-card strong,.profile-card em{display:block}.profile-card em{font-size:12px;opacity:.75}.settings{position:absolute;right:28px;top:28px;background:var(--user-button,#D6ECFF);color:var(--user-panel-text,#111);padding:10px 14px;border-radius:10px;font-weight:800}.hero{min-height:90vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.hero h1{font-size:clamp(44px,8vw,96px);margin:0}.hero p{letter-spacing:.15em}.play-btn{width:240px;height:150px;border-radius:50%;display:grid;place-items:center;font-size:34px;box-shadow:0 14px 35px #0005}.rect-btn{width:min(360px,85vw);border-radius:8px}.corner-hint{position:absolute;left:28px;bottom:20px;font-size:12px;opacity:.75}.game-wrap,.notes{max-width:1100px;margin:auto;padding:40px 24px}.game-wrap h1,.notes h1{font-size:38px}.shuffle-btn{font-size:26px;padding:20px 44px;border-radius:10px}.hidden{display:none}.quiz-card{margin:30px auto;max-width:850px;min-height:360px;border:1px solid #0002;border-radius:20px;padding:30px;box-shadow:0 30px 70px #0003}.quiz-top{display:flex;justify-content:space-between;opacity:.7}.quiz-card h2{font-size:40px;margin:45px 0 30px}.options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.option{border:none;padding:18px;border-radius:10px;font-size:18px;font-weight:750;cursor:pointer}.option.correct{background:var(--ok)!important;color:white!important}.option.wrong{background:var(--bad)!important;color:white!important}#feedback{margin-top:18px;min-height:48px}.note-card{border:1px solid #0002;border-radius:14px;padding:22px;margin:16px 0}.note-card small,.muted{opacity:.72}.note-body{line-height:1.7}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#00000012;font-size:12px}.split{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.admin-actions{margin:20px 0}table{width:100%;border-collapse:collapse;background:#ffffff12}th,td{padding:12px;border-bottom:1px solid #ffffff25;text-align:left}.temp-pass{font-size:36px;font-weight:900;letter-spacing:.08em;background:#ffffff33;padding:18px;border-radius:14px;text-align:center;margin:18px 0}.theme-form h2{margin:16px 0 0}.game-stage{max-width:900px;margin:0 auto;position:relative}.deck-card{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:430px;overflow:hidden}.deck-placeholder{font-size:120px;font-weight:900;opacity:.16;line-height:1;margin:auto}.shuffle-bottom{margin-top:auto;align-self:center;min-width:220px}.shuffle-away{animation:shuffleDeck .38s ease both}@keyframes shuffleDeck{0%{transform:translateX(0) rotate(0);opacity:1}35%{transform:translateX(-35px) rotate(-2deg)}70%{transform:translateX(35px) rotate(2deg)}100%{transform:translateY(-18px) scale(.97);opacity:0}}.acidbase-game .options{grid-template-columns:1fr 1fr}.acidbase-game .option{min-height:90px;font-size:28px}.acidbase-game .quiz-card h2{text-align:center}@media(max-width:760px){nav{display:none}.profile-card{position:static;margin-bottom:20px}.settings{top:24px}.hero{min-height:75vh}.hero h1{font-size:48px}.options{grid-template-columns:1fr}.split{grid-template-columns:1fr}.quiz-card h2{font-size:30px}table{font-size:12px}.home-screen{padding-top:20px}}
/* v0.6 */
.play-btn{width:180px!important;height:180px!important;border-radius:50%!important;aspect-ratio:1/1;display:grid!important;place-items:center!important;padding:0!important}
.profile-card small{display:block;font-size:11px;opacity:.7;margin-top:2px}.profile-card{cursor:pointer}.avatar span{font-size:28px}.avatar-image{overflow:hidden;padding:0}.avatar-image img{width:100%;height:100%;object-fit:cover}.avatar-big{width:92px;height:92px;font-size:44px}.avatar-big span{font-size:48px}
.profile-hero{display:flex;align-items:center;gap:22px;margin:0 0 24px}.profile-hero h1{margin:0 0 4px}.profile-hero p{margin:0 0 7px;opacity:.7}.profile-form{background:var(--user-panel);color:var(--user-panel-text);padding:22px;border-radius:18px}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;max-height:480px;overflow:auto;padding:6px}.avatar-choice{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 8px;border-radius:14px;border:2px solid transparent;background:#ffffff80;cursor:pointer;text-align:center;font-size:12px}.avatar-choice input{display:none}.avatar-choice.selected,.avatar-choice:has(input:checked){border-color:#6B102D;background:#fff}.avatar-choice-icon{font-size:34px}.sound-toggle{margin:20px 0;display:flex;grid-template-columns:auto 1fr;align-items:center}.sound-toggle input{width:auto}.profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.profile-actions .rect-btn{width:auto}.slim{width:min(260px,75vw)!important;font-size:13px;padding:9px 14px!important}
.difficulty-screen{text-align:center}.difficulty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:900px;margin:30px auto}.difficulty-card{background:var(--user-panel);color:var(--user-panel-text);border-radius:20px;padding:36px 20px;box-shadow:0 18px 40px #0003;display:flex;flex-direction:column;gap:8px}.difficulty-card b{font-size:30px}.difficulty-card span{opacity:.7}.difficulty-card:hover{transform:translateY(-3px)}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stat-card{background:var(--user-panel);color:var(--user-panel-text);border-radius:18px;padding:24px;text-align:center}.stat-card b{display:block;font-size:38px}.stat-card span{font-size:13px;opacity:.7}.result-actions{display:flex;gap:12px;flex-wrap:wrap}.inline-form{display:inline-block;margin-top:12px}.danger-btn{background:#7d1b2b!important;color:#fff!important}.result-card{text-align:center}
.acidbase-game .option{border-radius:22px;min-height:110px}.acidbase-game .options{gap:22px}.acidbase-game .option:first-child{outline:3px solid #ff6b6b55}.acidbase-game .option:last-child{outline:3px solid #4dabf755}
@media(max-width:760px){.play-btn{width:150px!important;height:150px!important}.difficulty-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:430px}.avatar-choice{padding:9px 4px;font-size:10px}.avatar-choice-icon{font-size:28px}.profile-hero{align-items:flex-start}.profile-page{padding:24px 14px}}

/* v0.7 */
.user-themed .play-btn{
  width:180px!important;height:180px!important;min-width:180px!important;min-height:180px!important;
  border-radius:50%!important;aspect-ratio:1/1;padding:0!important;display:grid!important;place-items:center!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--user-button) 72%,#fff 28%),var(--user-button))!important;
  box-shadow:0 12px 0 color-mix(in srgb,var(--user-button) 62%,#000 38%),0 22px 34px #0005,inset 0 2px 8px #ffffff88!important;
  transform:translateY(0);transition:transform .09s ease,box-shadow .09s ease;font-size:34px!important;font-weight:900!important
}
.user-themed .play-btn:hover{transform:translateY(-2px)}
.user-themed .play-btn:active{transform:translateY(8px);box-shadow:0 4px 0 color-mix(in srgb,var(--user-button) 62%,#000 38%),0 10px 18px #0004,inset 0 2px 8px #ffffff88!important}
.game-wrap{padding-top:16px!important}.game-wrap h1{margin:0 0 8px!important}.game-stage{margin-top:0!important}.game-stage .quiz-card{margin:10px auto!important}.deck-card{min-height:380px!important}.quiz-card h2{margin:28px 0 26px!important}
@keyframes answerGood{0%{transform:translateY(0);box-shadow:0 30px 70px #0003}50%{transform:translateY(-2px);box-shadow:0 30px 70px #0003,0 0 10px #2ecc7130}100%{transform:translateY(0);box-shadow:0 30px 70px #0003}}
@keyframes answerBad{0%,100%{transform:translateX(0)}35%{transform:translateX(-2px)}65%{transform:translateX(2px)}}
.answer-ok{animation:answerGood .18s ease}.answer-bad{animation:answerBad .16s ease}

/* Avatar seçimi */
.avatar-picker-head{display:grid;grid-template-columns:1fr 170px;gap:24px;align-items:center;margin-bottom:14px}.avatar-preview{width:160px;min-height:190px;border-radius:20px;background:#ffffffa8;border:1px solid #0002;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;text-align:center}.avatar-preview img{width:122px;height:122px;border-radius:50%;object-fit:cover;object-position:center;background:#fff}.avatar-preview-fallback{width:122px;height:122px;border-radius:50%;display:grid;place-items:center;font-size:58px;background:#fff}.avatar-preview strong{font-size:13px}.avatar-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.avatar-filter{width:auto!important;padding:8px 12px!important;border-radius:999px!important;font-size:12px!important;background:#ffffff99!important;color:#222!important;border:1px solid #0002!important}.avatar-filter.active{background:#6B102D!important;color:#fff!important}.avatar-choice-icon{width:76px;height:76px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#fff}.avatar-choice-icon img{width:100%;height:100%;object-fit:cover;object-position:center}.avatar-fallback{font-size:36px}.avatar-choice{min-height:118px;justify-content:flex-start}.avatar-choice[hidden]{display:none!important}

/* Ayarlar */
.settings-page{max-width:1000px}.settings-form{display:grid;gap:18px}.settings-panel{background:var(--user-panel);color:var(--user-panel-text);border-radius:20px;padding:24px;border:1px solid #0002}.settings-panel h2{margin:0 0 16px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings-wide{grid-column:1/-1}.sound-settings{display:grid;gap:12px}.switch-row{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:12px;background:#ffffff66;padding:12px 14px;border-radius:12px}.switch-row input{width:20px!important;height:20px}.volume-row{display:grid;grid-template-columns:150px 1fr 56px;align-items:center;gap:12px;background:#ffffff66;padding:14px;border-radius:12px}.volume-row input{padding:0!important}.volume-row output{text-align:right;font-weight:800}.settings-actions{display:flex;gap:12px;flex-wrap:wrap}.settings-actions button{width:auto}

/* Notlarım ana seçim */
.notes-hub{min-height:calc(100vh - 86px);display:flex;flex-direction:column;justify-content:center;max-width:1100px;margin:0 auto;padding:32px 24px}.notes-hub-title{text-align:center;margin-bottom:26px}.notes-hub-title h1{font-size:44px;margin:0 0 8px}.notes-hub-title p{margin:0;opacity:.72}.notes-hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.notes-hub-box{min-height:250px;border-radius:26px;background:var(--user-panel);color:var(--user-panel-text);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;border:1px solid #0002;box-shadow:0 20px 45px #0003;transition:transform .12s ease}.notes-hub-box:hover{transform:translateY(-2px)}.notes-hub-icon{font-size:54px;line-height:1;margin-bottom:16px}.notes-hub-box strong{font-size:28px}.notes-hub-box small{margin-top:8px;opacity:.65;font-size:14px}

/* Tam ekran not editörü */
.note-editor-screen{min-height:calc(100vh - 86px);padding:18px 28px 24px;display:flex;flex-direction:column}.note-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.note-back{font-weight:800}.autosave-state{font-size:13px;opacity:.72;background:var(--user-panel);color:var(--user-panel-text);padding:7px 11px;border-radius:999px}.note-editor-form{flex:1;display:flex!important;flex-direction:column;gap:12px;min-height:0}.note-title-input{font-size:30px!important;font-weight:800!important;padding:16px 18px!important;border-radius:14px!important}.note-body-input{flex:1;min-height:calc(100vh - 260px);resize:none;font-size:18px!important;line-height:1.65;padding:22px!important;border-radius:16px!important}.note-editor-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}.note-editor-actions button,.note-action-link{width:auto!important}

/* Yazdığım notlar */
.notes-library{min-height:calc(100vh - 86px);max-width:1200px;margin:auto;padding:24px}.notes-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.notes-library-head h1{font-size:40px;margin:8px 0 0}.note-new-shortcut{width:auto!important}.note-search{font-size:17px!important;padding:14px 18px!important;margin-bottom:16px}.note-list{display:grid;gap:12px}.note-list-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;background:var(--user-panel);color:var(--user-panel-text);border-radius:16px;padding:18px 18px 18px 22px;border:1px solid #0002}.note-list-main{display:flex;justify-content:space-between;gap:20px;align-items:center;min-width:0}.note-list-main h2{margin:0 0 5px;font-size:21px}.note-list-main p{margin:0;opacity:.68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:650px}.note-list-main time{font-size:12px;opacity:.65;white-space:nowrap}.note-list-row form{display:block}.note-list-row .danger-btn{width:auto!important;padding:9px 12px!important}.notes-empty{background:var(--user-panel);color:var(--user-panel-text);padding:40px;border-radius:18px;text-align:center;opacity:.8}

@media(max-width:760px){.user-themed .play-btn{width:150px!important;height:150px!important;min-width:150px!important;min-height:150px!important}.game-wrap{padding:10px 12px!important}.game-stage .quiz-card{margin:6px auto!important}.avatar-picker-head{grid-template-columns:1fr}.avatar-preview{width:100%;min-height:auto;flex-direction:row;justify-content:flex-start}.avatar-preview img,.avatar-preview-fallback{width:82px;height:82px}.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-choice-icon{width:58px;height:58px}.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}.volume-row{grid-template-columns:1fr}.notes-hub-grid{grid-template-columns:1fr}.notes-hub-box{min-height:180px}.note-editor-screen{padding:12px}.note-title-input{font-size:24px!important}.note-body-input{min-height:calc(100vh - 240px);font-size:16px!important}.notes-library{padding:14px}.notes-library-head{align-items:flex-start;flex-direction:column}.note-list-row{grid-template-columns:1fr}.note-list-main{align-items:flex-start;flex-direction:column}.note-list-main p{max-width:100%}}


/* v0.8: Deniz'in tarif ettiği sol-alt hacimli OYNA butonu */
.user-themed .play-btn{
  position:relative!important;isolation:isolate;
  box-shadow:none!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--user-button) 70%,#fff 30%),var(--user-button))!important;
  transform:translate(0,0)!important;
}
.user-themed .play-btn::before{
  content:"";position:absolute;z-index:-1;inset:0;border-radius:50%;
  background:color-mix(in srgb,var(--user-button) 54%,#000 46%);
  transform:translate(-14px,14px);
  box-shadow:-5px 7px 13px #0003;
}
.user-themed .play-btn::after{
  content:"";position:absolute;inset:8px 13px auto 18px;height:34%;border-radius:50%;
  background:linear-gradient(180deg,#ffffff70,#ffffff00);pointer-events:none
}
.user-themed .play-btn:hover{transform:translate(1px,-1px)!important}
.user-themed .play-btn:active{transform:translate(-8px,8px)!important}
.user-themed .play-btn:active::before{transform:translate(-6px,6px);box-shadow:-2px 3px 7px #0003}

/* Avatarlar: karartma yok; daha aydınlık, canlı ve portre odaklı */
.avatar-image img,.avatar-choice img,.avatar-preview img{
  filter:brightness(1.10) saturate(1.08) contrast(1.02);
  object-position:center 24%;
}
.avatar-choice{overflow:hidden;box-shadow:0 7px 18px #00000012;transition:transform .12s ease,box-shadow .12s ease}
.avatar-choice:hover{transform:translateY(-2px);box-shadow:0 10px 24px #00000020}
.avatar-choice img{background:#eef8ff}
.avatar-preview{box-shadow:0 12px 30px #00000020,0 0 0 3px #ffffff65}


/* v0.9 — kart konumu, temalar, gerçek iki katmanlı OYNA, not soruları */
.game-wrap{padding-top:4px!important}
.game-wrap h1{margin:0 0 2px!important;line-height:1.05;font-size:32px!important}
.game-stage{margin-top:0!important}
.game-stage .quiz-card{margin:0 auto!important;transform:translateY(-6px)}
.deck-card{min-height:350px!important}

/* OYNA: flu gölge değil, sola ve aşağıya kaymış ikinci dairesel gövde */
.user-themed .play-btn{
  position:relative!important;z-index:1!important;isolation:isolate!important;
  width:180px!important;height:180px!important;border-radius:50%!important;
  box-shadow:0 8px 18px #00000024!important;
  transform:translate(0,0)!important;
  transition:transform .10s ease!important;
}
.user-themed .play-btn::before{
  content:""!important;position:absolute!important;z-index:-1!important;
  width:100%!important;height:100%!important;left:0!important;top:0!important;border-radius:50%!important;
  background:color-mix(in srgb,var(--user-button) 48%,#000 52%)!important;
  transform:translate(-20px,20px)!important;
  box-shadow:none!important;
}
.user-themed .play-btn::after{content:none!important}
.user-themed .play-btn:hover{transform:translate(2px,-2px)!important}
.user-themed .play-btn:active{transform:translate(-13px,13px)!important}
.user-themed .play-btn:active::before{transform:translate(-7px,7px)!important}

/* Tema desenleri */
.theme-theme2,.theme-theme2 .home-screen{
  background-color:#88A0BE!important;
  background-image:repeating-linear-gradient(to bottom,#88A0BE 0,#88A0BE 46px,#F4E6AE 46px,#F4E6AE 92px)!important;
  background-size:auto!important;background-attachment:fixed!important;
}
.theme-theme3,.theme-theme3 .home-screen{
  background-color:#9AA75A!important;
  background-image:radial-gradient(circle,#F5CFD1 0 15px,transparent 16px)!important;
  background-size:126px 126px!important;background-position:0 0,63px 63px!important;background-attachment:fixed!important;
}
.theme-theme4,.theme-theme4 .home-screen{
  background-color:#BCEFE6!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='120' viewBox='0 0 140 120'%3E%3Cpath fill='%239A4D12' d='M35 8l6 14 15 1-12 10 4 15-13-8-13 8 4-15-12-10 15-1z'/%3E%3Cpath fill='%239A4D12' d='M105 68l6 14 15 1-12 10 4 15-13-8-13 8 4-15-12-10 15-1z'/%3E%3C/svg%3E")!important;
  background-size:140px 120px!important;background-attachment:fixed!important;
}
.theme-ataturk,.theme-ataturk .home-screen{
  background-color:#17110F!important;
  background-image:linear-gradient(90deg,rgba(18,12,10,.88),rgba(128,23,22,.44)),url('/static/avatar_images/ataturk.jpg')!important;
  background-size:cover!important;background-position:center top!important;background-attachment:fixed!important;
}
.theme-ataturk .topbar{background:#17110fe8!important;border-bottom:1px solid #f3e5cc35!important}
.theme-ataturk .settings,.theme-ataturk .rect-btn,.theme-ataturk button{border:1px solid #f0dcc633!important}

/* Tema seçici */
.theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.theme-option{position:relative;display:flex!important;flex-direction:column;gap:8px;cursor:pointer;padding:10px;border:3px solid transparent;border-radius:18px;background:#ffffff70}
.theme-option input{position:absolute;opacity:0;pointer-events:none}
.theme-option.selected,.theme-option:has(input:checked){border-color:color-mix(in srgb,var(--user-button) 70%,#111 30%);box-shadow:0 8px 22px #0002}
.theme-thumb{display:block;height:116px;border-radius:13px;border:1px solid #0002;overflow:hidden;background:#ddd}
.theme-preview-theme1 .theme-thumb{background:linear-gradient(135deg,#CFE8F6 0 52%,#3E0201 52%)}
.theme-preview-theme2 .theme-thumb{background:repeating-linear-gradient(to bottom,#88A0BE 0 18px,#F4E6AE 18px 36px)}
.theme-preview-theme3 .theme-thumb{background-color:#9AA75A;background-image:radial-gradient(circle,#F5CFD1 0 8px,transparent 9px);background-size:42px 42px}
.theme-preview-theme4 .theme-thumb{background-color:#BCEFE6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='60'%3E%3Cpath fill='%239A4D12' d='M35 8l5 11 12 1-9 8 3 12-11-6-11 6 3-12-9-8 12-1z'/%3E%3C/svg%3E")}
.theme-preview-ataturk .theme-thumb{background:linear-gradient(90deg,#17110fbb,#9E2A2A77),url('/static/avatar_images/ataturk.jpg') center 18%/cover}
.theme-preview-custom .theme-thumb{background:linear-gradient(135deg,#fff,#bbb,#555)}
.theme-option strong{text-align:center;font-size:15px}

/* Notlarımdan Sorular */
.notes-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.note-question-page{max-width:1100px}
.question-generator{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px;background:var(--user-panel);color:var(--user-panel-text);padding:18px;border-radius:16px;margin-bottom:18px}
.question-generator button{width:auto;height:46px}
.note-question-list{display:grid;gap:16px}
.note-question-card{background:var(--user-panel);color:var(--user-panel-text);padding:20px;border-radius:18px;border:1px solid #0002;box-shadow:0 12px 28px #0002}
.note-question-card form{gap:10px}
.note-question-card textarea{min-height:120px;resize:vertical}
.note-question-status{display:inline-block;margin-bottom:12px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#e6b65f;color:#2b1a00}
.note-question-status.approved{background:#bfe8c8;color:#12451c}
.question-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.question-actions form{display:block}
.question-actions button{width:auto!important}
.approve-btn{background:#2f8f4e!important;color:#fff!important}

@media(max-width:760px){
  .game-wrap{padding-top:2px!important}.game-wrap h1{font-size:25px!important}.game-stage .quiz-card{transform:translateY(-4px)}
  .user-themed .play-btn::before{transform:translate(-16px,16px)!important}
  .theme-picker{grid-template-columns:1fr 1fr}
  .notes-hub-grid{grid-template-columns:1fr}
  .question-generator{grid-template-columns:1fr}
}

/* v0.10 */
.hero{justify-content:flex-start!important;padding-top:9vh;gap:12px!important;min-height:92vh!important}
.hero h1{font-size:clamp(40px,6vw,76px)!important}.hero p{margin:0 0 6px!important}
.user-themed .play-btn{position:relative!important;width:176px!important;height:176px!important;min-width:176px!important;min-height:176px!important;border-radius:50%!important;background:linear-gradient(145deg,color-mix(in srgb,var(--user-button) 72%,#fff 28%),var(--user-button))!important;box-shadow:-12px 14px 0 color-mix(in srgb,var(--user-button) 52%,#000 48%),-15px 18px 0 #00000016!important;transform:translate(0,0)!important;transition:.09s ease!important}
.user-themed .play-btn::before,.user-themed .play-btn::after{content:none!important}
.user-themed .play-btn:hover{transform:translate(1px,-1px)!important}.user-themed .play-btn:active{transform:translate(-8px,9px)!important;box-shadow:-4px 5px 0 color-mix(in srgb,var(--user-button) 52%,#000 48%)!important}
.game-menu-grid{width:min(1080px,92vw);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px}
.game-menu-box{min-height:72px;background:var(--user-panel);color:var(--user-panel-text);border:1px solid #0002;border-radius:16px;padding:14px 12px;display:grid;place-items:center;text-align:center;font-weight:900;box-shadow:0 8px 18px #0002}
.home-utility-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.home-utility-row a{background:#ffffff9e;color:#222;border:1px solid #0002;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:850}
.game-wrap{padding-top:0!important}.game-wrap h1{text-align:center;margin:0 0 0!important;font-size:29px!important}.game-stage .quiz-card{transform:translateY(-18px)!important;margin:0 auto!important}.deck-card{min-height:330px!important}.quiz-card{padding-top:18px!important}.quiz-card h2{margin:16px 0 22px!important;font-size:34px!important}
.question-category{display:inline-block;background:#fff1cf;color:#4a3212;border:1px solid #8d6b3833;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;letter-spacing:.06em}
.question-image-wrap{display:flex;justify-content:center;align-items:center;margin:2px auto 6px;min-height:135px}.question-image-wrap.hidden{display:none!important}.question-image-wrap img{width:132px;height:132px;object-fit:contain;background:#fff;border-radius:18px;padding:5px;box-shadow:0 8px 20px #0002}
.skip-question{margin-top:14px!important;background:#ffffffa8!important;color:#333!important;border:1px solid #0003!important;width:auto!important;padding:9px 14px!important;font-size:12px!important}
.options{align-items:stretch}.option{min-height:60px}
.theme-ataturk,.theme-ataturk .home-screen{background-color:#18120f!important;background-image:linear-gradient(90deg,rgba(15,10,8,.70),rgba(126,27,24,.26)),linear-gradient(0deg,transparent 49%,#f0e1c8 49%,#f0e1c8 51%,transparent 51%),linear-gradient(90deg,transparent 49%,#f0e1c8 49%,#f0e1c8 51%,transparent 51%),url('/static/avatar_images/ataturk.jpg')!important;background-size:cover,cover,cover,52% auto!important;background-repeat:no-repeat,no-repeat,no-repeat,repeat!important;background-position:center!important}
.theme-preview-ataturk .theme-thumb{background:linear-gradient(90deg,#17110faa,#84242055),linear-gradient(0deg,transparent 48%,#eee0c8 48% 52%,transparent 52%),linear-gradient(90deg,transparent 48%,#eee0c8 48% 52%,transparent 52%),url('/static/avatar_images/ataturk.jpg') center/cover!important}
@media(max-width:900px){.game-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding-top:12vh!important}.game-stage .quiz-card{transform:translateY(-12px)!important}}
@media(max-width:600px){.game-menu-grid{grid-template-columns:1fr 1fr;gap:8px}.game-menu-box{font-size:12px;min-height:62px}.hero h1{font-size:38px!important}.question-image-wrap img{width:112px;height:112px}.quiz-card h2{font-size:26px!important}.game-stage .quiz-card{transform:translateY(-8px)!important}}


/* v0.11 — ayarlar/profil, seviye yolu, tam görünür büyük soru görselleri */
.avatar-image,.avatar-choice-icon,.avatar-preview{
  background-color:#eef6fb;
  background-image:url('/static/avatar_images/avatar-default.svg');
  background-repeat:no-repeat;
  background-position:center;
  background-size:68%;
}
.avatar-image img,.avatar-choice-icon img,.avatar-preview img{background:transparent!important}
.profile-readonly small{display:block;margin-top:7px;opacity:.72}.profile-view-card{max-width:720px;background:var(--user-panel);color:var(--user-panel-text);padding:22px;border-radius:18px;border:1px solid #0002}.profile-view-card .rect-btn{width:auto;margin-top:8px}
.account-settings-panel h3{margin:24px 0 5px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}.password-setting{display:grid;gap:7px}.password-setting .secondary-btn{width:100%}.settings-avatar-grid{max-height:520px;overflow:auto}.settings-avatar-grid .avatar-choice-icon{width:86px;height:86px}.settings-avatar-grid .avatar-choice-icon img{object-fit:cover;object-position:center 22%}.avatar-preview img{object-fit:cover;object-position:center 22%}
.question-image-wrap{width:min(360px,88vw)!important;height:260px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:8px auto 12px!important;padding:8px!important;background:#ffffffb8!important;border-radius:18px!important;overflow:hidden!important}
.question-image-wrap.hidden{display:none!important}.question-image-wrap img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:10px!important}
.progress-page{max-width:1150px}.level-progress-panel{background:var(--user-panel);color:var(--user-panel-text);border-radius:20px;padding:24px;border:1px solid #0002;box-shadow:0 14px 34px #0002}.level-progress-head{display:flex;justify-content:space-between;gap:18px;align-items:end}.level-progress-head h2{margin:4px 0 0}.xp-track{height:18px;border-radius:999px;background:#0002;overflow:hidden;margin:18px 0 10px}.xp-track span{display:block;height:100%;background:var(--user-button);border-radius:999px}.level-road-title{margin:30px 0 14px}.level-road{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.level-card{position:relative;min-height:120px;padding:18px 14px;border-radius:16px;background:var(--user-panel);color:var(--user-panel-text);border:2px solid transparent;display:flex;flex-direction:column;justify-content:center;gap:5px}.level-card b{font-size:19px}.level-card strong{font-size:13px}.level-card small{opacity:.65}.level-card.passed{opacity:.72}.level-card.locked{opacity:.48;filter:saturate(.65)}.level-card.current{opacity:1;border-color:var(--user-button);box-shadow:0 0 0 4px color-mix(in srgb,var(--user-button) 25%,transparent),0 14px 28px #0002;transform:translateY(-2px)}.here{position:absolute;top:8px;right:8px;font-size:9px;font-weight:900;padding:5px 7px;border-radius:999px;background:var(--user-button);color:var(--user-panel-text)}
@media(max-width:760px){.account-grid{grid-template-columns:1fr}.settings-avatar-grid .avatar-choice-icon{width:64px;height:64px}.question-image-wrap{height:210px!important;width:min(300px,92vw)!important}.level-progress-head{align-items:flex-start;flex-direction:column}.level-road{grid-template-columns:1fr 1fr}}

/* v0.12 — profil avatarları profilde, oyun kartları daha yukarı */
.profile-avatar-grid{max-height:560px;overflow:auto;margin-top:16px}.profile-avatar-grid .avatar-choice-icon{width:88px;height:88px}.profile-avatar-grid .avatar-choice-icon img,.avatar-preview img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}.profile-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.profile-actions button,.profile-actions .rect-btn{width:auto!important;margin:0!important}.profile-hero small{display:block;margin-top:7px;opacity:.72}
.game-wrap{padding-top:0!important;margin-top:-18px!important}.game-wrap h1{margin:0 0 -8px!important;line-height:1.05!important}.game-stage{margin-top:-10px!important}.game-stage .quiz-card{transform:translateY(-48px)!important;margin:0 auto!important}.question-image-wrap{margin-top:0!important}
@media(max-width:900px){.game-wrap{margin-top:-12px!important}.game-stage .quiz-card{transform:translateY(-38px)!important}}
@media(max-width:600px){.game-wrap{margin-top:-8px!important}.game-stage .quiz-card{transform:translateY(-30px)!important}.profile-avatar-grid .avatar-choice-icon{width:70px;height:70px}}

/* v0.12: oyun görselleri ders materyali gibi, tam görünür */
.question-image-wrap img{image-rendering:auto!important;background:#fff!important;padding:0!important;box-shadow:none!important}

/* v0.12 */
.game-wrap{padding-top:0!important;margin-top:-24px!important}.game-stage{margin-top:-26px!important}.game-stage .quiz-card{transform:translateY(-52px)!important;margin-top:0!important}
.profile-avatar-grid{max-height:540px;overflow:auto}.profile-avatar-grid .avatar-choice-icon{width:86px;height:86px}.profile-avatar-grid .avatar-choice-icon img{width:100%;height:100%;object-fit:cover;object-position:center 22%}.avatar-profile-form{margin-top:18px}.profile-page>.rect-btn{display:inline-block;width:auto;margin-top:18px}
@media(max-width:900px){.game-wrap{margin-top:-14px!important}.game-stage{margin-top:-16px!important}.game-stage .quiz-card{transform:translateY(-42px)!important}}
@media(max-width:600px){.game-wrap{margin-top:-8px!important}.game-stage{margin-top:-10px!important}.game-stage .quiz-card{transform:translateY(-34px)!important}.profile-avatar-grid .avatar-choice-icon{width:68px;height:68px}}

/* v0.13 game title visibility: keep cards high, title visible */
.game-wrap{margin-top:0!important;padding-top:10px!important}
.game-wrap>h1{position:relative!important;z-index:3!important;margin:8px 0 12px!important;line-height:1.15!important}
.game-stage{margin-top:0!important}
.game-stage .quiz-card{transform:translateY(-26px)!important}
@media(max-width:900px){.game-wrap{margin-top:0!important;padding-top:8px!important}.game-stage{margin-top:0!important}.game-stage .quiz-card{transform:translateY(-20px)!important}}
@media(max-width:600px){.game-wrap{margin-top:0!important;padding-top:8px!important}.game-wrap>h1{margin:8px 0 10px!important}.game-stage{margin-top:0!important}.game-stage .quiz-card{transform:translateY(-14px)!important}}

/* v0.14 — ders başlığı ayrıştırıldı, mobil ana ekran tek viewporta sığacak şekilde sıkılaştırıldı */
.lesson-title{margin:0!important;line-height:1!important;font-size:clamp(34px,6vw,58px)!important}
@media(max-width:600px){
  .home-screen{min-height:100svh!important;padding:14px 12px 10px!important;overflow:hidden!important}
  .topbar{padding:12px 16px!important}
  .brand a{font-size:18px!important}.brand small{font-size:11px!important}
  .profile-card{position:relative!important;left:auto!important;top:auto!important;margin:0!important;padding:8px 10px!important;min-height:68px!important;max-width:calc(100% - 96px)!important;border-radius:14px!important;gap:9px!important}
  .profile-card .avatar{width:46px!important;height:46px!important;min-width:46px!important}
  .profile-card strong{font-size:15px!important;line-height:1.05!important;max-width:220px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .profile-card em,.profile-card small{font-size:11px!important}
  .settings{top:14px!important;right:12px!important;padding:9px 10px!important;font-size:13px!important}
  .hero{min-height:0!important;height:auto!important;padding-top:12px!important;justify-content:flex-start!important;gap:9px!important}
  .lesson-title{font-size:30px!important;margin:2px 0 0!important}
  .user-themed .play-btn{width:128px!important;height:128px!important;min-width:128px!important;min-height:128px!important;font-size:28px!important;box-shadow:-8px 9px 0 color-mix(in srgb,var(--user-button) 52%,#000 48%),-10px 12px 0 #00000014!important}
  .game-menu-grid{width:100%!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:2px!important}
  .game-menu-box{min-height:50px!important;padding:8px 6px!important;border-radius:13px!important;font-size:11px!important;line-height:1.08!important}
  .home-utility-row{gap:6px!important;margin-top:0!important}.home-utility-row a{padding:6px 10px!important;font-size:10px!important}
  .corner-hint{display:none!important}
}
@media(max-width:430px) and (max-height:760px){
  .hero{gap:6px!important;padding-top:6px!important}.lesson-title{font-size:27px!important}
  .user-themed .play-btn{width:112px!important;height:112px!important;min-width:112px!important;min-height:112px!important;font-size:25px!important}
  .game-menu-box{min-height:45px!important;font-size:10.5px!important}
  .home-utility-row a{padding:5px 9px!important}
}

/* v0.15 — Kimya brand + mobile home spacing/alignment */
.home-screen .profile-card,
.home-screen .settings{
  min-height:104px!important;
  height:104px!important;
}
.home-screen .settings{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 22px!important;
}
.home-screen .hero{
  gap:14px!important;
  padding-top:24px!important;
}
.home-screen .lesson-title{
  margin:10px 0 12px!important;
}
.home-screen .play-btn{
  margin:4px 0 18px!important;
}
.home-screen .game-menu-grid{
  margin-top:10px!important;
}
@media(max-width:760px){
  .home-screen{padding:14px 14px 12px!important;overflow-x:hidden!important;overflow-y:auto!important}
  .home-screen .profile-card{
    position:relative!important;
    width:calc(100% - 172px)!important;
    margin:0!important;
    left:auto!important;
    top:auto!important;
    min-width:0!important;
  }
  .home-screen .profile-card>div:last-child{min-width:0!important}
  .home-screen .profile-card strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .home-screen .settings{
    position:absolute!important;
    top:14px!important;
    right:14px!important;
    width:158px!important;
    min-height:104px!important;
    height:104px!important;
    border-radius:18px!important;
    font-size:18px!important;
  }
  .home-screen .hero{
    min-height:auto!important;
    padding-top:28px!important;
    gap:14px!important;
  }
  .home-screen .lesson-title{
    font-size:44px!important;
    margin:6px 0 10px!important;
  }
  .home-screen .play-btn{
    width:168px!important;
    height:168px!important;
    min-width:168px!important;
    min-height:168px!important;
    margin:0 0 20px!important;
  }
  .home-screen .game-menu-grid{
    width:100%!important;
    gap:10px!important;
    margin-top:8px!important;
  }
  .home-screen .game-menu-box{
    min-height:68px!important;
    padding:12px 9px!important;
  }
  .home-screen .home-utility-row{
    margin-top:2px!important;
    gap:8px!important;
  }
}
@media(max-width:430px){
  .home-screen .profile-card{width:calc(100% - 146px)!important;height:96px!important;min-height:96px!important;padding:10px 12px!important}
  .home-screen .settings{width:134px!important;height:96px!important;min-height:96px!important;font-size:16px!important;padding:0 10px!important}
  .home-screen .avatar{width:46px!important;height:46px!important;min-width:46px!important}
  .home-screen .hero{padding-top:24px!important;gap:12px!important}
  .home-screen .lesson-title{font-size:40px!important;margin:8px 0 10px!important}
  .home-screen .play-btn{width:156px!important;height:156px!important;min-width:156px!important;min-height:156px!important;margin-bottom:18px!important}
  .home-screen .game-menu-grid{gap:8px!important}
  .home-screen .game-menu-box{min-height:64px!important;font-size:11px!important}
}

/* v0.16 — kullanıcının yüklediği Atatürk fotoğrafı tema arka planı */
.theme-ataturk,.theme-ataturk .home-screen{
  background-color:#18120f!important;
  background-image:linear-gradient(90deg,rgba(15,10,8,.48),rgba(126,27,24,.12)),url('/static/theme-ataturk.jpg')!important;
  background-size:cover,cover!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:center top!important;
  background-attachment:fixed!important;
}
.theme-preview-ataturk .theme-thumb{
  background:linear-gradient(90deg,#17110f77,#84242022),url('/static/theme-ataturk.jpg') center 20%/cover!important;
}


/* v0.18 — arka plan görüntüleme + kullanıcı ayarlı arayüz saydamlığı */
.user-themed.theme-custom,
.user-themed.theme-custom .home-screen{
  background-color:var(--user-bg)!important;
  background-image:var(--user-bg-image)!important;
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
.theme-ataturk,.theme-ataturk .home-screen{
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
/* Saydamlık görselin kendisine değil, arayüz katmanlarına uygulanır. */
.user-themed .topbar,
.user-themed .profile-card,
.user-themed .settings,
.user-themed .lesson-title,
.user-themed .play-btn,
.user-themed .game-menu-box,
.user-themed .home-utility-row a,
.user-themed .corner-hint,
.user-themed .game-wrap>h1,
.user-themed .quiz-card,
.user-themed .difficulty-card,
.user-themed .notes,
.user-themed .center-card,
.user-themed .rect-btn{
  opacity:var(--ui-opacity,.50)!important;
}
/* Ayarlar ekranında yüzdelik değer değişirken anında okunabilir kalsın. */
#ui-opacity,#ui-opacity-value{opacity:1!important}

/* Shared desktop/mobile navigation and membership notifications. */
.header-tools{display:flex;align-items:center;gap:12px;min-width:0}
.site-menu{position:relative}.site-menu summary{display:none}
.site-menu nav{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.site-menu nav a{padding:8px 4px}
.admin-shortcut{display:inline-flex;align-items:center;gap:6px;font-weight:800;white-space:nowrap;padding:9px;border:1px solid currentColor;border-radius:10px}
.pending-badge{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:999px;background:#b42339;color:#fff;font-size:12px}
.membership-notice{padding:12px 24px;background:#fff3d6;color:#422b00;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dbb96d}
.membership-notice[hidden],#membership-toast[hidden]{display:none!important}
.membership-notice a{display:flex;gap:8px;flex-wrap:wrap}
.membership-notice button{font-size:12px;padding:8px;flex-shrink:0}
#membership-toast{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));right:16px;left:16px;width:fit-content;max-width:calc(100vw - 32px);margin-left:auto;padding:16px;border-radius:14px;background:#fff3d6;color:#422b00;box-shadow:0 8px 28px #0004;z-index:100}
.admin-table-scroll{max-width:100%;overflow-x:auto}
.topbar{gap:14px;flex-wrap:wrap}
@media(max-width:1100px){
 .topbar{padding:12px 14px;flex-wrap:nowrap;align-items:center}
 .brand{min-width:0;flex:1}.brand a{font-size:20px;overflow-wrap:anywhere}.brand small{font-size:10px}
 .header-tools{gap:8px;flex-shrink:0}
 .site-menu summary{display:block;cursor:pointer;padding:11px 13px;border:1px solid currentColor;border-radius:10px;font-weight:800;list-style:none}
 .site-menu summary::-webkit-details-marker{display:none}
 .site-menu nav{display:none;position:absolute;right:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 28px));max-height:70vh;overflow-y:auto;padding:10px;border:1px solid #0003;border-radius:14px;background:#fff;color:#20202b;box-shadow:0 12px 32px #0004;z-index:30;gap:4px;grid-template-columns:1fr 1fr}
 .site-menu[open] nav{display:grid!important}
 .site-menu nav a{padding:13px 10px;border-radius:8px;background:#f1f3f8;font-size:14px}
 .site-menu nav a:hover,.site-menu nav a:focus-visible{background:#dce6fb}
 .admin-shortcut{font-size:12px;padding:8px}
 .membership-notice{padding:10px 14px;font-size:13px;flex-wrap:wrap}
 .notes{min-width:0}.admin-table-scroll table{min-width:650px}
}
