/* Dinle ve Bul — consolidated responsive stylesheet. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@600;700;800;900&display=swap');
/* Shared header palette — customize this exercise independently. */
:root {
  --game-header-bg: linear-gradient(105deg,#ffe0ea,#fff5df 48%,#e2f2ff);
  --game-header-border: #86a3ff;
  --game-header-title: #283d66;
  --game-header-button-bg: #f8fbff;
  --game-header-button-border: #b9caee;
  --game-header-button-color: #4568d0;
  --game-header-button-hover-bg: #e1edff;
  --game-header-button-hover-border: #7b9bff;
  --game-header-button-active-bg: #d3e3ff;
  --game-header-focus: #6084ed;
  --game-header-shadow: #0f172a1a;
  --game-header-button-hover-color: #4568d0;
  --game-header-button-active-color: #4568d0;
  --game-header-button-active-border: #7b9bff;
  --game-header-logo-bg: #fff;
  --game-header-logo-border: #b9caee;
  --game-header-brand-hover-shadow: #6084ed33;
}

:root{font-family:'DM Sans',system-ui,sans-serif;color:#25385d;}
*{box-sizing:border-box;}
html,body{margin:0;min-width:320px;min-height:100%;overflow-x:hidden;}
body{background:radial-gradient(ellipse 42% 36% at 8% 6%,#ffd6dc 0%,transparent 76%),
    radial-gradient(ellipse 28% 26% at 95% 5%,#ffe79c 0%,transparent 74%),
    radial-gradient(ellipse 32% 28% at 0% 100%,#fde49f 0%,transparent 70%),
    radial-gradient(ellipse 30% 26% at 98% 84%,#e8e2ff 0%,transparent 72%),
    linear-gradient(180deg,#f6fbff 0%,#f4fbf9 100%);}
button,select{font:inherit;}
button{cursor:pointer;}
button:disabled{cursor:default;}
[hidden]{display:none!important;}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #6084ed;outline-offset:3px;}
svg{display:block;}
.lf-app{height:calc(100dvh - var(--games-header-height,70px));display:flex;min-height:0;overflow:hidden;}
.games-is-fullscreen .lf-app{height:100dvh;}
.lf-main{display:flex;flex-direction:column;flex:0 1 1040px;min-width:0;min-height:0;width:100%;max-width:1040px;margin:0 auto;padding:clamp(8px,1.6vh,19px) clamp(8px,2vw,24px);}
.lf-screen{display:flex;flex:1;min-height:0;flex-direction:column;width:100%;max-width:1040px;margin-inline:auto;}
.lf-panel{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #e0e8f5;border-radius:22px;overflow:hidden;position:relative;border-color:#d9e6f2;background:radial-gradient(circle at 8% 26%,#fff7d6 0 3px,transparent 4px) 0 0/180px 180px,
    radial-gradient(circle at 87% 18%,#c8f0e7 0 3px,transparent 4px) 0 0/210px 210px,
    linear-gradient(150deg,#ffffff 60%,#fbfcff 100%);box-shadow:0 18px 42px rgba(45,79,143,.15),0 3px 10px rgba(45,79,143,.05);}
.lf-menu-panel{padding:clamp(15px,2.2vw,28px);gap:clamp(10px,1.5vh,17px);}
.lf-select-grid{display:grid;grid-template-columns:1fr 1.65fr 1fr;flex:none;gap:12px;}
.lf-select{min-width:0;display:flex;flex-direction:column;gap:6px;font-weight:800;padding:11px 12px 12px;border:1px solid #dfebf6;border-radius:16px;background:linear-gradient(155deg,#ffffff,#f7fbff);box-shadow:0 4px 0 #eef3f8;}
.lf-select span{font-size:10px;font-weight:900;color:#8090af;letter-spacing:.1em;}
.lf-select select{width:100%;min-width:0;padding:0 12px;border:1px solid #d4e2f1;font-size:14px;font-weight:800;text-overflow:ellipsis;cursor:pointer;height:47px;background:#fff;border-radius:13px;color:#31476f;box-shadow:inset 0 1px 0 rgba(255,255,255,.95);}
.lf-select select:hover{border-color:#92b0ef;background:#fbfdff;}
.lf-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;padding-inline:3px;}
.lf-section-heading h2{margin:0;font:900 18px Nunito,system-ui,sans-serif;color:#27406d;}
.lf-section-heading span{font-weight:800;font-size:12px;color:#7f8ea8;}
.lf-unit-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:9px;padding:5px 6px 7px 3px;scrollbar-color:#c7d5ed transparent;}
.lf-unit{display:flex;min-width:0;gap:12px;align-items:center;border:1px solid #dae6f2;padding:10px 13px;color:#4f6081;text-align:left;transition:transform .14s,border-color .14s,background .14s;min-height:60px;border-radius:16px;background:linear-gradient(120deg,#ffffff,#f7fbff);box-shadow:0 4px 0 #edf2f8,0 6px 16px rgba(55,91,154,.05);}
.lf-unit:hover{transform:translateY(-2px);border-color:#99b6ef;box-shadow:0 6px 0 #e8eff9,0 10px 18px rgba(55,91,154,.08);}
.lf-unit strong{white-space:nowrap;flex:none;font-size:14px;color:#3159a8;}
.lf-unit span{font-weight:800;line-height:1.3;text-align:right;margin-left:auto;overflow-wrap:anywhere;font-size:13px;color:#4d6185;}
.lf-menu-footer{border-top:1px solid #e8eef7;display:flex;justify-content:space-between;align-items:center;gap:14px;flex:none;padding-top:15px;}
.lf-direction{flex:0 1 320px;width:100%;background:linear-gradient(155deg,#ffffff,#f8fbff);}
.lf-menu-note{font-size:12px;font-weight:700;line-height:1.35;padding:10px 12px;border-radius:12px;background:#fff9e9;color:#926d2d;border:1px solid #f1deb0;}
.lf-primary{border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;color:white;font-weight:900;white-space:nowrap;transition:transform .15s,background .15s;min-height:48px;padding:12px 22px;border-radius:15px;background:linear-gradient(135deg,#ff8aab,#ff6f96 32%,#6d88ff 100%);box-shadow:0 7px 0 #d55481,0 14px 25px rgba(109,136,255,.24);font-size:14px;letter-spacing:.01em;}
.lf-primary:hover:not(:disabled){background:linear-gradient(135deg,#ff7b9f,#ff658f 34%,#5d7af2 100%);transform:translateY(-2px);}
.lf-primary:disabled{opacity:.55;box-shadow:none;}
.lf-primary svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.lf-game-panel{padding:clamp(15px,2vw,28px);gap:clamp(10px,1.8vh,20px);}
.lf-game-head{display:flex;gap:15px;justify-content:space-between;align-items:center;flex:none;}
.lf-game-head h2{font:900 clamp(22px,2.8vw,31px) Nunito,system-ui,sans-serif;letter-spacing:-.035em;margin:4px 0 0;color:#234067;}
.lf-game-stats{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:12px;}
.lf-score{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border:2px solid #dcefe6;font-size:13px;min-height:42px;padding:10px 15px;border-radius:999px;font-weight:900;box-shadow:0 4px 0 rgba(232,238,247,.95);}
.lf-score strong{color:#27795f;font-size:16px;}
.lf-score-dot{border-radius:50%;width:10px;height:10px;background:#48c79d;box-shadow:0 0 0 4px rgba(72,199,157,.15);}
.lf-progress{overflow:hidden;flex:none;height:10px;background:#e8edf5;border-radius:999px;}
.lf-progress>span{display:block;height:100%;width:0;border-radius:inherit;transition:width .3s ease;background:linear-gradient(90deg,#ff8eaa 0%,#f7c355 40%,#41c7b7 70%,#5d82f0 100%);}
.lf-sound-area{flex:0 1 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border:1px solid #dce8f4;min-height:150px;padding:clamp(14px,2.2vh,28px);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(247,250,255,.96)),
    radial-gradient(circle at 20% 20%,#ffe6ee 0%,transparent 28%),
    radial-gradient(circle at 82% 15%,#ddf5f0 0%,transparent 28%);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 20px rgba(64,97,146,.06);}
.lf-sound-caption{font-size:10px;letter-spacing:.14em;font-weight:900;padding:5px 10px;border-radius:999px;background:#eef4ff;color:#7285b1;}
.lf-sound-button{border-radius:50%;border:8px solid #dbe8ff;display:grid;place-items:center;color:#fff;transition:transform .15s,box-shadow .15s;width:clamp(82px,13vh,124px);height:clamp(82px,13vh,124px);background:linear-gradient(160deg,#53d0be,#4f75e6);box-shadow:0 14px 30px rgba(77,115,232,.24), inset 0 2px 0 rgba(255,255,255,.28);}
.lf-sound-button:hover:not(:disabled){transform:scale(1.07) rotate(-2deg);}
.lf-sound-button.is-speaking{box-shadow:0 0 0 10px rgba(79,117,230,.18),0 16px 30px rgba(77,115,232,.28);}
.lf-sound-button svg{width:45%;height:45%;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.lf-sound-button:disabled{opacity:.8;}
.lf-sound-help{text-align:center;font-weight:700;min-height:18px;font-size:13px;color:#66799b;max-width:520px;}
.lf-answers{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(10px,2vh,18px);}
.lf-answer{display:flex;align-items:center;gap:clamp(10px,1.7vw,20px);padding:clamp(10px,1.5vw,22px);border:2px solid #dae5f4;color:#2e4168;text-align:left;animation:lf-pop .3s calc(var(--lf-order)*65ms) both;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;position:relative;overflow:hidden;min-height:72px;border-radius:21px;background:linear-gradient(135deg,#ffffff,#f8fbff);box-shadow:0 5px 0 #eaf0f8,0 10px 18px rgba(43,67,111,.05);}
.lf-answer:hover:not(:disabled){transform:translateY(-3px);background:linear-gradient(135deg,#ffffff,#f2f7ff);border-color:#a6bbee;box-shadow:0 7px 0 #e3ebf8,0 14px 20px rgba(43,67,111,.08);}
.lf-answer-badge{flex:none;display:grid;place-items:center;font-size:19px;font-weight:900;width:clamp(40px,4vw,52px);height:clamp(40px,4vw,52px);border-radius:15px;background:#eef3ff;color:#4568d0;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.lf-answer-word{min-width:0;flex:1;font:900 clamp(18px,2.2vw,26px)/1.2 Nunito,system-ui,sans-serif;overflow-wrap:anywhere;color:#2e436d;}
.lf-answer.is-correct{color:#247757;border-color:#49c59b;background:linear-gradient(135deg,#eefcf5,#e0f8ee);box-shadow:0 5px 0 #aae2cb,0 10px 18px rgba(55,164,117,.08);}
.lf-answer.is-correct .lf-answer-badge{background:#4fc296;color:#fff;}
.lf-answer.is-wrong{color:#ae524d;border-color:#eba39e;background:linear-gradient(135deg,#fff4f2,#ffe9e6);box-shadow:0 5px 0 #f3cbc6,0 10px 18px rgba(192,91,79,.08);}
.lf-answer.is-wrong .lf-answer-badge{background:#e38d84;color:#fff;}
.lf-answer:disabled{opacity:1;}
.lf-game-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;border-top:1px solid #e8eef7;padding-top:15px;}
.lf-feedback{flex:1;min-width:0;margin:0;text-align:center;line-height:1.5;font-weight:700;overflow-wrap:anywhere;font-size:clamp(13px,1.6vw,15px);color:#667a9d;}
.lf-feedback.is-correct{color:#238264;}
.lf-feedback.is-wrong{color:#be6459;}
.lf-feedback.is-skipped{color:#657c9e;}
.lf-skip{flex:none;min-width:84px;}
.lf-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:30px 26px;border:1px solid #dce6f6;color:#2a426e;text-align:center;box-shadow:0 28px 95px #13264c44;border-radius:24px;background:linear-gradient(165deg,#ffffff 65%,#f6f9ff);}
.lf-dialog::backdrop{background:#102144ab;backdrop-filter:blur(4px);}
.lf-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1;}
.lf-dialog-icon{width:65px;height:65px;border-radius:19px;background:#e9fbf3;color:#36ac83;font:900 38px Nunito,sans-serif;display:grid;place-items:center;margin:0 auto 14px;}
.lf-dialog h2{margin:0;font:900 25px Nunito,system-ui,sans-serif;}
.lf-dialog p{font-size:14px;line-height:1.55;color:#6e7c94;}
.lf-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:22px 0;}
.lf-results div{padding:12px 4px;border-radius:14px;display:flex;flex-direction:column;gap:4px;background:linear-gradient(145deg,#f7faff,#edf3ff);border:1px solid #e1e9f7;}
.lf-results strong{font:900 24px Nunito,system-ui,sans-serif;color:#4069b8;}
.lf-results span{font-size:12px;color:#7d8ba5;font-weight:800;}
.lf-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:22px;}
.lf-secondary{border:1px solid #d8e2f2;border-radius:11px;min-height:44px;color:#42597c;font-size:13px;font-weight:900;background:#f8faff;}
.lf-secondary:hover{background:#eaf1ff;}
.lf-dialog-actions .lf-primary{box-shadow:none;}
.lf-designer{position:fixed;right:9px;bottom:9px;z-index:40;border:1px solid #d8e2f0;border-radius:100px;padding:4px 10px;color:#7b879b;font:700 10px "DM Sans",sans-serif;text-decoration:none;background:#ffffffeb;box-shadow:0 8px 24px rgba(50,82,132,.12);}
.lf-designer:hover{color:#5276e5;}
.games-header .games-header-name{font:900 clamp(15px,2.15vw,27px)/1.12 Nunito,system-ui,sans-serif;letter-spacing:-.04em;}
.lf-menu-panel::before,.lf-menu-panel::after,.lf-game-panel::before,.lf-game-panel::after{content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:0;}
.lf-menu-panel::before{width:230px;height:230px;right:-108px;top:-118px;background:radial-gradient(circle,#d8ecff 0%,transparent 72%);}
.lf-menu-panel::after{width:190px;height:190px;left:-95px;bottom:-92px;background:radial-gradient(circle,#ffe7c0 0%,transparent 72%);}
.lf-game-panel::before{width:220px;height:220px;left:-110px;top:-112px;background:radial-gradient(circle,#ffe0ea 0%,transparent 72%);}
.lf-game-panel::after{width:210px;height:210px;right:-100px;bottom:-96px;background:radial-gradient(circle,#e2f2ff 0%,transparent 72%);}
.lf-menu-panel > *, .lf-game-panel > *{position:relative;z-index:1;}
.lf-select:nth-child(2){background:linear-gradient(155deg,#ffffff,#f6fffb);}
.lf-select:nth-child(3){background:linear-gradient(155deg,#ffffff,#fffaf2);}
.lf-unit:nth-child(3n + 2){background:linear-gradient(120deg,#ffffff,#f8fffb);}
.lf-unit:nth-child(3n){background:linear-gradient(120deg,#ffffff,#fff8f2);}
.lf-unit.is-selected{background:linear-gradient(135deg,#eef5ff,#e6fbf7);border-color:#7fa2ef;box-shadow:inset 0 0 0 1px #8aacfa,0 4px 0 #d9e8ff,0 8px 18px rgba(76,121,235,.14);}
.lf-score{background:#effbf6;border-color:#d7f1e5;color:#426f62;}
.lf-answer::before{content:"";position:absolute;left:0;top:0;bottom:0;width:12px;background:var(--lf-accent,linear-gradient(180deg,#86a3ff,#5677ea));}
.lf-answer:nth-child(1){--lf-accent:linear-gradient(180deg,#7b9bff,#5073e8);}
.lf-answer:nth-child(2){--lf-accent:linear-gradient(180deg,#54d3c0,#38b8ac);}
.lf-answer:nth-child(3){--lf-accent:linear-gradient(180deg,#ffb86a,#f39d2d);}
.lf-answer:nth-child(4){--lf-accent:linear-gradient(180deg,#ff98b6,#ff6c98);}
.lf-answer.is-correct::before{background:linear-gradient(180deg,#55d0a6,#33af81);}
.lf-answer.is-wrong::before{background:linear-gradient(180deg,#f1a59d,#db756c);}
@keyframes lf-pop{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (max-height:650px) and (min-width:680px){
.lf-game-panel{gap:8px;}
.lf-answer{padding:9px 14px;}
.lf-sound-area{gap:6px;}
}
@media (max-width:720px){
.lf-main{padding:9px;}
.lf-menu-panel,.lf-game-panel{border-radius:17px;padding:13px;gap:10px;}
.lf-select-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.lf-select select{font-size:13px;}
.lf-unit-grid{gap:7px;}
.lf-unit{padding:7px 9px;gap:6px;}
.lf-unit strong,.lf-unit span{font-size:12px;}
.lf-game-stats{gap:5px;}
.lf-score{font-size:11px;}
.lf-answer{padding:10px;gap:9px;min-height:66px;border-radius:16px;}
.lf-answer-badge{font-size:16px;}
.lf-panel{box-shadow:0 12px 28px rgba(45,79,143,.13),0 3px 8px rgba(45,79,143,.05);}
.lf-select,.lf-direction{padding:9px 10px 10px;border-radius:14px;}
.lf-sound-area{min-height:132px;}
.lf-answer::before{width:10px;}
}
@media (max-width:440px){
.lf-unit-grid{grid-template-columns:1fr;}
.lf-menu-footer{flex-direction:column;align-items:stretch;}
.lf-menu-footer .lf-primary{width:100%;}
.lf-direction{flex:none;max-width:none;}
.lf-menu-note{font-size:11px;}
.lf-answers{gap:7px;}
.lf-answer{flex-direction:column;justify-content:center;text-align:center;gap:7px;padding:9px 8px;}
.lf-answer-badge{font-size:13px;width:30px;height:30px;border-radius:10px;}
.lf-feedback{min-height:20px;}
.lf-primary{min-height:44px;font-size:13px;}
.lf-select,.lf-direction{padding:8px 9px 9px;}
.lf-answer::before{left:0;top:0;right:0;bottom:auto;width:auto;height:9px;}
}
@media (prefers-reduced-motion:reduce){
.lf-answer{animation:none;}
.lf-primary,.lf-answer,.lf-sound-button{transition:none;}
}

/* Allow short phone viewports to scroll rather than overlap or hide controls. */
@media (max-height: 620px) {
  .lf-app, .games-is-fullscreen .lf-app { height: auto; min-height: calc(100dvh - var(--games-header-height,70px)); overflow: visible; }
  .games-is-fullscreen .lf-app { min-height: 100dvh; }
  .lf-main, .lf-screen, .lf-panel { flex: 1 0 auto; }
  .lf-panel { overflow: visible; }
  .lf-unit-grid { flex: 0 0 auto; max-height: 240px; }
  .lf-menu-footer { padding-bottom: 7px; }
  .lf-sound-area { flex: 0 0 auto; min-height: 0; padding: 9px; gap: 6px; }
  .lf-sound-button { width: 64px; height: 64px; border-width: 5px; }
  .lf-answers { flex: 0 0 auto; grid-template-rows: repeat(2,minmax(72px,auto)); }
  .lf-answer { min-height: 72px; }
}
@media (max-height: 620px) and (min-width: 721px) {
  .lf-sound-area { flex-direction: row; justify-content: center; }
  .lf-game-panel { gap: 9px; padding-block: 10px; }
}
