html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

:root {
    --bg: #121213;
    --text: white;
    --tile-bg: #121213;
    --tile-border: #3a3a3c;
    --key-bg: #88888a;
    --key-text: white;
}

.light {
    --bg: #f5f5f5;
    --text: #000;
    --tile-bg: #fff;
    --tile-border: #ccc;
    --key-bg: #e0e0e0;
    --key-text: #000;
}
.light {
    --bg: #f5f5f5;
    --text: #000;
    --tile-bg: #fff;
    --tile-border: #ccc;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: var(--bg);
    color: var(--text);
}

/* Başlık */
h1 {
    margin-top: 20px;
}

/* Yeni oyun butonu */
#reset {
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 15px;
    background: #538d4e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

#reset:hover {
    background: #6aaa64;
}

/* Tema butonu */
#theme-toggle {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* Tahta */
#board {
    display: grid;
    grid-template-columns: repeat(5, 58px);
    column-gap: 9px;   /* sağ sol boşluk */
    row-gap: 5px;      /* yukarı aşağı boşluk */
    justify-content: center;
    margin-top: 30px;
}

/* Kutular */
.tile {
    width: 58px;
    height: 58px;
    border: 2px solid var(--tile-border);
    font-size: 26px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    border-radius: 8px;
    background: var(--tile-bg);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.03),
                0 2px 4px rgba(0,0,0,0.4);
}

/* Renkler */
.green {
    background-color: #538d4e;
    border: 2px solid #538d4e;
    color: white;
}

.yellow {
    background-color: #b59f3b;
    border: 2px solid #b59f3b;
    color: white;
}

.gray {
    background-color: #303031;
    border: 2px solid #303031;
    color: white;
}

/* Sallanma */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.4s;
}

/* Pop animasyonu */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pop {
    animation: pop 0.4s;
}

/* Modal */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

#modal .box {
    background: #121213;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

#modal button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #538d4e;
    color: white;
    border: none;
    cursor: pointer;
}

/* Logo */
#logo {
    margin-top: 20px;
}

#logo img {
    width: 300px;
    height: auto;
}

/* Klavye */
#keyboard {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#keyboard .row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

#keyboard button {
    padding: 12px 14px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: rgb(117, 117, 117);
    color: white;
    cursor: pointer;
    
    background: var(--key-bg);
    color: var(--key-text);
}


#keyboard button:hover {
    background: #555;
}

#keyboard button.green {
    background: #538d4e;
}

#keyboard button.yellow {
    background: #b59f3b;
}

#keyboard button.gray {
    background: #464545;
}



#open-auth {
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 15px;
    background: var(--key-bg);
    color: var(--key-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    height: 42px;
    box-sizing: border-box;
}

#open-auth:hover {
    background: #6aaa64;
    color: white;
}

#open-auth {
    height: 38px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}



/* Mobile responsive */
@media (max-width: 600px) {

    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #board {
        grid-template-columns: repeat(5, 44px);
        grid-gap: 3px;
        justify-content: center;
    }

    .tile {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    h1 {
        font-size: 20px;
    }

    #keyboard {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #keyboard .row {
        display: flex;
        justify-content: center;
        gap: 2px;
    }

    #keyboard button {
        min-width: 28px;
        padding: 6px;
        font-size: 10px;
        border-radius: 4px;
    }
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    transition: 0.3s;
}

.slider .icon {
    font-size: 16px;
}

.slider::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

input:checked + .slider {
    background: #6aaa64;
}

input:checked + .slider::before {
    transform: translateX(28px);
}

#modal .box {
    background: var(--tile-bg);
    color: var(--text);
}
html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}


input:checked + .slider {
    background: #6aaa64;
}

input:checked + .slider::before {
    transform: translateX(32px);
}

/* gizleme sınıfı */
.hidden {
    display: none !important;
}.keyboard-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.keyboard-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.keyboard-switch .slider {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 28px;
    transition: 0.3s;
    box-sizing: border-box;
}

.keyboard-switch .slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

input:checked + .slider {
    background: #6aaa64;
}

input:checked + .slider::before {
    transform: translateX(28px);
}
#mobile-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* Modal her şeyin üstünde dursun */
#modal {
  z-index: 99999 !important;
}

/* Focus kaldırma (en alt) */
button:focus {
  outline: none;
}
/* Yazı seçmeyi kapat */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobil zoom ve çift dokunma */
html, body {
    touch-action: manipulation;
}

/* Uzun basınca çıkan menüyü kapat */
body {
    -webkit-touch-callout: none;
}

/* Resim sürüklemeyi kapat */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Mobil input yine seçilebilir olsun */
#mobile-input {
    user-select: text;
}
/* Modal her şeyin üstünde dursun */
#modal {
  z-index: 99999 !important;
}

/* Klavye ve switch modaldan altta kalsın */
#keyboard,
#keyboard-toggle-area,
.keyboard-switch {
  position: relative;
  z-index: 1;
}
/* üst kontrol alanı */
#top-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* uzunluk ikonu */
#len-btn {
    margin-top: 12px;
    width: 42px;
    height: 42px;
    font-size: 20px;
    background: var(--key-bg);
    color: var(--key-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

#len-btn:hover {
    background: #6aaa64;
    color: white;
}

/* kelime uzunluğu paneli */
#len-panel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99998;
}

#len-panel.hidden {
    display: none;
}

.len-box {
    background: var(--tile-bg);
    color: var(--text);
    border: 2px solid var(--tile-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 260px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.len-box h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.len-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.len-option {
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: var(--key-bg);
    color: var(--key-text);
    cursor: pointer;
    transition: 0.2s;
}

.len-option:hover {
    background: #6aaa64;
    color: white;
}

.len-option.active {
    background: #538d4e;
    color: white;
}

#keyboard-toggle-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.keyboard-switch {
    width: 44px;
    height: 22px;
}

.keyboard-switch .slider::before {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
}
.keyboard-switch input:checked + .slider::before {
    transform: translateX(20px);
}
#keyboard-text {
    font-size: 13px;
    display: flex;
    align-items: center;
}
/* ===================== */
/* ÜST KONTROL ALANI */
/* ===================== */

#top-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

#reset {
    padding: 10px 22px;
    font-size: 15px;
    background: #538d4e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    height: 42px;
    box-sizing: border-box;
    margin-top: 0;
}

#reset:hover {
    background: #6aaa64;
}

#len-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
    background: var(--key-bg);
    color: var(--key-text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0;
    position: static;
    left: auto;
    top: auto;
}

#len-btn:hover {
    background: #6aaa64;
    color: white;
}

#theme-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    transition: 0.3s;
}

.slider .icon {
    font-size: 16px;
}

.slider::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

input:checked + .slider {
    background: #6aaa64;
}

input:checked + .slider::before {
    transform: translateX(28px);
}

#keyboard-text {
    display: inline-block;
    width: 110px;
    text-align: center;
}

#auth-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
justify-content:center;
align-items:center;
z-index:99999;
}

.auth-box{
background:var(--tile-bg);
padding:25px;
border-radius:12px;
width:300px;
text-align:center;
border:2px solid var(--tile-border);
}

.auth-box input{
width:100%;
padding:10px;
margin-top:10px;
border-radius:6px;
border:1px solid var(--tile-border);
background:transparent;
color:var(--text);
}

.auth-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

.auth-buttons button {
    flex: 1 1 0;
    min-width: 140px;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

#login-btn,
#register-btn {
    background: var(--key-bg);
    color: var(--key-text);
}

#login-btn:hover,
#register-btn:hover {
    background: #6aaa64 !important;
    color: white !important;
}

#logout-btn {
    background: #ef4444;
    color: white;
}

#logout-btn:hover {
    background: #dc2626;
}

#close-auth{
position:absolute;
margin-left:260px;
cursor:pointer;
font-size:18px;
}

#username{
display:none;
}
#auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.auth-box {
    position: relative;
    background: var(--tile-bg);
    color: var(--text);
    padding: 25px;
    border-radius: 12px;
    width: min(90%, 340px);
    text-align: center;
    border: 2px solid var(--tile-border);
    box-sizing: border-box;
}

.auth-box input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid var(--tile-border);
    background: transparent;
    color: var(--text);
    box-sizing: border-box;
}

#username {
    display: none;
}

.auth-buttons {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--key-bg);
    color: var(--key-text);
}

#close-auth {
    position: absolute;
    top: 12px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
}

#show-register {
    border: none;
    background: transparent;
    color: #6aaa64;
    cursor: pointer;
    font-weight: bold;
}

#auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.auth-box {
    position: relative;
    background: var(--tile-bg);
    color: var(--text);
    padding: 25px;
    border-radius: 12px;
    width: min(90%, 340px);
    text-align: center;
    border: 2px solid var(--tile-border);
    box-sizing: border-box;
}

.auth-box input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid var(--tile-border);
    background: transparent;
    color: var(--text);
    box-sizing: border-box;
}

#username {
    display: none;
}

.auth-buttons {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--key-bg);
    color: var(--key-text);
}

#close-auth {
    position: absolute;
    top: 12px;
    right: 14px;
    cursor: pointer;
    font-size: 18px;
}

#show-register {
    border: none;
    background: transparent;
    color: #6aaa64;
    cursor: pointer;
    font-weight: bold;
}

#register-btn {
    display: none;
}
.auth-buttons button:hover {
    background: #6aaa64;
    color: white;
}

#user-info{
margin-top:8px;
font-size:14px;
font-weight:bold;
color:#6aaa64;
}

#leaders-btn {
    padding: 10px 18px;
    font-size: 15px;
    background: var(--key-bg);
    color: var(--key-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    height: 42px;
    box-sizing: border-box;
}

#leaders-btn:hover {
    background: #6aaa64;
    color: white;
}
#top-controls button {
    padding: 10px 20px;
    font-size: 15px;
    height: 42px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--key-bg);
    color: var(--key-text);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top-controls button:hover {
    background: #6aaa64;
    color: white;
}
#user-stats-bar {

margin: 10px auto;

width: fit-content;

padding: 10px 18px;

border-radius: 12px;

display: flex;
align-items: center;
gap: 18px;

background: rgba(255,255,255,0.05);

backdrop-filter: blur(10px);

border: 1px solid #2a2a2c;

font-size: 14px;

}

#user-name{
font-weight: bold;
color: #6aaa64;
}

.stat{
opacity: 0.9;
}




/* ===================== */
/* ÜST KONTROL SAYDAM BAR */
/* ===================== */

#top-bar-glass {
    margin: 12px auto;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 14px;
    background: var(--tile-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tile-border);
    box-sizing: border-box;
}

#top-bar-glass button {
    padding: 8px 14px;
    font-size: 14px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#top-bar-glass button:hover {
    background: #6aaa64;
    color: white;
}

#leaders-btn,
#open-auth {
    min-width: 100px;
}

#reset {
    min-width: 125px;
    background: #538d4e !important;
    color: white !important;
}

#reset:hover {
    background: #6aaa64 !important;
}

#len-btn {
    width: 38px;
    min-width: 38px;
    padding: 0 !important;
    font-size: 16px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    margin-left: 2px;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    transition: 0.3s;
    box-sizing: border-box;
}

.theme-switch .slider .icon {
    font-size: 16px;
    line-height: 1;
}

.theme-switch .slider::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

.theme-switch input:checked + .slider {
    background: #6aaa64;
}

.theme-switch input:checked + .slider::before {
    transform: translateX(28px);
}

/* ===================== */
/* KULLANICI İSTATİSTİK BAR */
/* ===================== */

#user-stats-bar {
    margin: 10px auto 0;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 10px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--tile-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tile-border);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
}

#user-name {
    font-weight: bold;
    color: #6aaa64;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.95;
    color: var(--text);
}

/* ===================== */
/* AUTH MODAL BUTONLARI */
/* ===================== */

.auth-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--key-bg);
    color: var(--key-text);
    transition: 0.2s;
}

.auth-buttons button:hover {
    background: #6aaa64 !important;
    color: white !important;
}


/* ================= */
/* RENKLİ BUTONLAR */
/* ================= */

.btn-green{
background:#538d4e !important;
color:white !important;
}

.btn-green:hover{
background:#6aaa64 !important;
}

.btn-blue{
background:#3b82f6 !important;
color:white !important;
}

.btn-blue:hover{
background:#2563eb !important;
}

.btn-purple{
background:#8b5cf6 !important;
color:white !important;
}

.btn-purple:hover{
background:#7c3aed !important;
}

.btn-orange{
background:#f59e0b !important;
color:white !important;
}

.btn-orange:hover{
background:#d97706 !important;
}



#profile-panel{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.profile-box{
background:var(--tile-bg);
padding:20px 25px;
border-radius:12px;
border:1px solid var(--tile-border);
display:flex;
flex-direction:column;
gap:10px;
text-align:center;
}

.profile-stats{
font-size:15px;
}

#logout-btn{
margin-top:10px;
padding:8px 12px;
border:none;
border-radius:6px;
background:#ef4444;
color:white;
cursor:pointer;
}

#logout-btn:hover{
background:#dc2626;
}
#modal .box {
    background: var(--tile-bg);
    color: var(--text);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    width: min(92%, 360px);
    box-sizing: border-box;
}

#modal-title {
    margin-top: 0;
    margin-bottom: 10px;
}

#modal-score {
    margin: 8px 0 16px;
    font-size: 16px;
    font-weight: bold;
    color: #6aaa64;
}

#modal-ad-area {
    width: 100%;
    min-height: 250px;
    margin: 12px 0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 10px;
    border: 1px solid var(--tile-border);
    background: rgba(255,255,255,0.03);
    box-sizing: border-box;
    overflow: hidden;
}

#footer-links{
margin-top:20px;
text-align:center;
font-size:14px;
opacity:0.8;
}

#footer-links a{
color:inherit;
text-decoration:none;
}

#footer-links a:hover{
text-decoration:underline;
}

#serodle-info{
    max-width: 1100px;
    margin: 40px auto 20px;
    padding: 0 16px;
    box-sizing: border-box;
    color: var(--text);
}

.info-hero{
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 22px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    text-align: center;
    line-height: 1.7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.info-hero h2{
    margin: 0 0 12px;
    font-size: 28px;
}

.info-hero p{
    margin: 0;
    font-size: 16px;
}

.info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
}

.info-card{
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    padding: 22px;
    line-height: 1.7;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.info-card h3{
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.info-card p{
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 15px;
}

.tile-guide{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-row{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-row p{
    margin: 0;
    font-size: 14px;
}

.guide-word,
.score-tiles{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mini-tile{
    width: 36px;
    height: 36px;
    border: 2px solid var(--tile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 8px;
    background: var(--tile-bg);
    color: var(--text);
    text-transform: uppercase;
}

.mini-tile.green{
    background: #538d4e;
    border-color: #538d4e;
    color: white;
}

.mini-tile.yellow{
    background: #b59f3b;
    border-color: #b59f3b;
    color: white;
}

.mini-tile.gray{
    background: #3a3a3c;
    border-color: #3a3a3c;
    color: white;
}

.score-board{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--tile-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

.score-visual{
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-badge{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--key-bg);
    color: var(--key-text);
    font-size: 13px;
    font-weight: bold;
}

.score-text{
    font-size: 15px;
    white-space: nowrap;
}

.lose-row .score-badge{
    background: #8b3a3a;
    color: white;
}

.mini-highlight{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mini-highlight span{
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--tile-border);
    font-size: 14px;
}

.soon-card{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.soon-badge{
    display: inline-block;
    margin: 0 auto 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f59e0b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.soon-logo{
    font-size: 56px;
    margin: 4px 0 12px;
}

.soon-button{
    margin: 10px auto 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--tile-border);
    width: fit-content;
    min-width: 120px;
    font-weight: bold;
}

.soon-button.disabled{
    opacity: 0.75;
    cursor: default;
}

@media (max-width: 900px){
    .info-grid{
        grid-template-columns: 1fr;
    }

    .score-row{
        flex-direction: column;
        align-items: flex-start;
    }

    .score-text{
        white-space: normal;
    }
}

@media (max-width: 600px){
    #serodle-info{
        margin-top: 28px;
        padding: 0 12px;
    }

    .info-hero,
    .info-card{
        padding: 18px;
    }

    .info-hero h2{
        font-size: 24px;
    }

    .info-card h3{
        font-size: 20px;
    }

    .mini-tile{
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

.score-board{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.score-example{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px;
    border:1px solid var(--tile-border);
    border-radius:14px;
    background:rgba(255,255,255,0.02);
}

.score-grid{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.score-grid .row{
    display:flex;
    gap:4px;
}

.score-grid span{
    width:22px;
    height:22px;
    border:2px solid var(--tile-border);
    border-radius:4px;
    background:var(--tile-bg);
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
    text-transform:uppercase;
}

.row.correct span{
    background:#538d4e;
    border-color:#538d4e;
    color:white;
}

.row.wrong span{
    background:#303031;
    border-color:#303031;
    color:white;
}

.score-side{
    min-width:110px;
    text-align:right;
    font-size:15px;
    line-height:1.5;
}

.info-longtext{
margin-top:30px;
line-height:1.8;
font-size:15px;
}

.info-longtext h3{
margin-top:30px;
font-size:22px;
}

.info-longtext p{
margin-top:10px;
}





#scroll-spacer{
height: 90vh;
}
#mobile-scroll-space{
    display:none;
}

#scroll-hint{
    text-align:center;
    margin-top:12px;
    opacity:0.7;
    font-size:13px;
}

.scroll-arrow{
    font-size:22px;
    animation: scrollBounce 1.6s infinite;
}

.scroll-text{
    margin-top:4px;
}

@keyframes scrollBounce{

    0%{transform:translateY(0)}
    50%{transform:translateY(6px)}
    100%{transform:translateY(0)}

}


@media (max-width: 600px){
    #mobile-scroll-space{
        display:block;
        height: 120vh;
    }
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 18px 20px;
  margin: 12px auto;
  background: #1f1f20;
  border: 1px solid #2f2f31;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #c9b458;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.game-card:focus {
  outline: none;
  box-shadow: none;
}

.game-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #c9b458;
}

.game-card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #d7d7d7;
}

.anlam-card {
  background: linear-gradient(180deg, #1f1f20 0%, #18181a 100%);
}


@media (max-width: 700px){
    .score-example{
        flex-direction:column;
        align-items:flex-start;
    }

    .score-side{
        min-width:0;
        text-align:left;
    }
    
}

#dictionary-page-link{
    margin-top: 20px;
    text-align: center;
}

#dictionary-link-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
    box-sizing: border-box;
}

#dictionary-link-btn:hover{
    background: #2563eb;
}

@media (max-width: 600px){
    #dictionary-page-link{
        margin-top: 16px;
    }

    #dictionary-link-btn{
        width: calc(100% - 24px);
        max-width: 420px;
    }
}

#scroll-hint{
    text-align:center;
    margin-top:12px;
    opacity:0.7;
    font-size:13px;
    transition: opacity 0.6s ease;
}

.scroll-arrow{
    font-size:22px;
    animation: scrollBounce 1.6s infinite;
}

.scroll-text{
    margin-top:4px;
}

@keyframes scrollBounce{

    0%{transform:translateY(0)}
    50%{transform:translateY(6px)}
    100%{transform:translateY(0)}

}

/* gizlenme */
#scroll-hint.hide{
    opacity:0;
}

#dictionary-box{
    max-width: 900px;
    margin: 28px auto 0;
    padding: 22px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    color: var(--text);
    box-sizing: border-box;
}

#dictionary-box h2{
    margin: 0 0 8px;
    font-size: 26px;
    text-align: center;
}

.dictionary-subtitle{
    margin: 0 0 18px;
    text-align: center;
    opacity: 0.8;
}

.dictionary-search{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#dictionary-input{
    width: min(100%, 420px);
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--tile-border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    box-sizing: border-box;
}

#dictionary-search-btn{
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #538d4e;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#dictionary-search-btn:hover{
    background: #6aaa64;
}

#dictionary-result{
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--tile-border);
    background: rgba(255,255,255,0.03);
    min-height: 70px;
    box-sizing: border-box;
}

.dictionary-empty{
    margin: 0;
    opacity: 0.75;
    text-align: center;
}

.dictionary-word{
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: bold;
    color: #6aaa64;
}

.dictionary-meaning{
    margin: 0;
    line-height: 1.7;
}
.dictionary-meaning .feature {
    color: #d35400; /* turuncu, istediğin renge değiştirebilirsin */
    font-weight: bold;
}

@media (max-width: 600px){
    #dictionary-box{
        margin-top: 22px;
        padding: 18px;
    }

    #dictionary-box h2{
        font-size: 22px;
    }

    .dictionary-search{
        flex-direction: column;
        align-items: stretch;
    }

    #dictionary-input,
    #dictionary-search-btn{
        width: 100%;
    }
}




/* ===================== */
/* MOBİL */
/* ===================== */

@media (max-width: 600px) {
    #top-bar-glass {
        gap: 8px;
        padding: 8px 10px;
    }

    #top-bar-glass button {
        font-size: 13px;
        height: 36px;
        padding: 8px 12px;
    }

    #leaders-btn,
    #open-auth {
        min-width: 90px;
    }

    #reset {
        min-width: 110px;
    }

    #len-btn {
        width: 36px;
        min-width: 36px;
        font-size: 15px;
    }

    #user-stats-bar {
        gap: 12px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .theme-switch {
        width: 56px;
        height: 30px;
    }

    .theme-switch .slider::before {
        width: 24px;
        height: 24px;
        top: 3px;
        left: 3px;
    }

    .theme-switch input:checked + .slider::before {
        transform: translateX(26px);
    }
}





/* mobilde panel biraz küçük olsun */
@media (max-width: 600px) {

    body {
        max-width: 100%;
        overflow-x: hidden;
    }

 #board {
    display: grid;
    justify-content: center;
    margin-top: 30px;
}

  

    /* MOBİL KLAVYE */

    #keyboard {
        width: 95vw;
        max-width: 430px;
        margin: 18px auto 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    #keyboard .row {
        width: 100%;
        display: grid;
        gap: 4px;
    }

    /* 1. satır 10 harf */
    #keyboard .row:nth-child(1) {
        grid-template-columns: repeat(10, 1fr);
    }

    /* 2. satır 11 harf */
    #keyboard .row:nth-child(2) {
        grid-template-columns: repeat(11, 1fr);
    }

    /* 3. satır 10 tuş */
    #keyboard .row:nth-child(3) {
            grid-template-columns: 1.3fr repeat(8, 0.9fr) 1.3fr;
            }
     #keyboard .row:nth-child(3) button:first-child {
    font-size: 13px;
}



    #keyboard button {
        width: 100%;
        height: 52px;
        min-width: 0;
        padding: 0;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        box-sizing: border-box;
    }
}

.update-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.update-box {
  background: #1f1f20;
  border: 1px solid #3a3a3c;
  border-radius: 14px;
  padding: 25px;
  max-width: 400px;
  text-align: center;
  color: white;
}

.update-box h2 {
  margin-bottom: 15px;
}

.update-box p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.update-box button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #6aaa64;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* BAYRAM FOOTER MESAJ */
#bayram-footer-note {
  max-width: 900px;
  margin: 30px auto 12px;
  text-align: center;
  color: #f4d67a;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.95;
}

/* hafif parıltı efekti */
#bayram-footer-note::after {
  content: " ";
  animation: bayramBlink 2s infinite;
}

@keyframes bayramBlink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* mobil */
@media (max-width: 768px) {
  #bayram-footer-note {
    margin: 24px 12px 10px;
    font-size: 14px;
  }
}

#modal-meaning-area{
  margin:18px auto 10px;
  text-align:center;
}

#show-meaning-btn{
  padding:10px 18px;
  border:none;
  border-radius:10px;
  background:#6aaa64;
  color:#fff;
  font-weight:bold;
  cursor:pointer;
  transition:0.2s ease;
}

#show-meaning-btn:hover{
  background:#5b9656;
}

#modal-meaning-result{
  margin-top:14px;
  padding:12px 14px;
  border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid #3a3a3c;
  color:#fff;
  line-height:1.5;
  font-size:14px;
  text-align:left;
}.meaning-word-boxes {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.meaning-letter-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6aaa64;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(106, 170, 100, 0.35);
}

.meaning-text {
  color: #fff;
  line-height: 1.6;
  font-size: 14px;
  text-align: left;
}

/* ===== DIGER OYUNLAR BUTONU ===== */
#other-games-btn {
  background: linear-gradient(135deg, #ff4d4f, #c1121f) !important;
  color: #fff !important;
  font-weight: bold;
  border: none !important;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.4);
  transition: all 0.2s ease;
}

/* hover efekti */
#other-games-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #d62828) !important;
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.5);
  transform: translateY(-1px);
}

/* tıklama efekti */
#other-games-btn:active {
  transform: scale(0.97);
}
.games-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
}

.games-modal.hidden {
  display: none;
}

.games-modal-box {
  width: 100%;
  max-width: 420px;
  background: #1f1f20;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  padding: 22px 18px 18px;
  position: relative;
  text-align: center;
}

.games-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.games-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-go-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f486b 0%, #3c5d88 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
/* BLOG BUTONU */

#top-bar-glass .btn-orange {
    background: #ff7a18;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#top-bar-glass .btn-orange:hover {
    background: #ff5e00;
    transform: translateY(-1px);
}


/* BLOG GRID (ileride ana sayfada kullanmak için) */

.blog-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:18px;
margin-top:20px;
}

/* BLOG KART */

.blog-card{
background:rgba(255,255,255,0.05);
border-radius:16px;
padding:18px;
transition:0.2s;
text-decoration:none;
color:inherit;
border:1px solid rgba(255,255,255,0.05);
}

.blog-card:hover{
transform:translateY(-3px);
background:rgba(255,255,255,0.08);
border:1px solid rgba(255,255,255,0.1);
}

/* BLOG BAŞLIK */

.blog-card h3{
margin-bottom:8px;
font-size:18px;
font-weight:700;
}

/* BLOG AÇIKLAMA */

.blog-card p{
font-size:14px;
line-height:1.6;
opacity:0.85;
}


/* BLOG FOOTER LINK */

#footer-links a{
transition:0.2s;
}

#footer-links a:hover{
color:#ff7a18;
}
/* ========================= */
/* BLOG SHOWCASE - TEMA UYUMLU */
/* ========================= */

#blog-showcase {
    max-width: 980px;
    margin: 28px auto 24px;
    padding: 22px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 18px;
    color: var(--text);
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.blog-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.blog-showcase-title {
    flex: 1;
    min-width: 220px;
}

.blog-showcase-title h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text);
    text-align: left;
}

.blog-showcase-title p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.75;
    text-align: left;
}

.blog-showcase-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #538d4e;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.blog-showcase-all:hover {
    background: #6aaa64;
    transform: translateY(-1px);
}

.blog-slider-shell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-nav-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--tile-border);
    border-radius: 12px;
    background: var(--key-bg);
    color: var(--key-text);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.blog-nav-btn:hover {
    background: #6aaa64;
    color: white;
    border-color: #6aaa64;
}

.blog-cards-track {
    flex: 1;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
}

.blog-cards-track::-webkit-scrollbar {
    display: none;
}

.blog-item-card {
    flex: 0 0 280px;
    min-height: 220px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    padding: 20px 18px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.blog-item-card:hover {
    transform: translateY(-3px);
    border-color: #6aaa64;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.blog-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(106,170,100,0.14);
    color: #6aaa64;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.blog-item-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
    color: var(--text);
}

.blog-item-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.78;
    max-width: 230px;
}

.blog-item-link {
    margin-top: 16px;
    display: inline-block;
    color: #6aaa64;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

/* LIGHT THEME İÇİN DAHA TEMİZ KART */
.light #blog-showcase {
    background: var(--tile-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.light .blog-item-card {
    background: rgba(0,0,0,0.02);
}

.light .blog-item-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.light .blog-item-badge {
    background: rgba(83,141,78,0.10);
    color: #538d4e;
}

/* MOBİL */
@media (max-width: 768px) {
    #blog-showcase {
        margin: 22px auto 20px;
        padding: 18px 14px;
    }

    .blog-showcase-head {
        justify-content: center;
        text-align: center;
    }

    .blog-showcase-title h2,
    .blog-showcase-title p {
        text-align: center;
    }

    .blog-showcase-title h2 {
        font-size: 24px;
    }

    .blog-showcase-title p {
        font-size: 14px;
    }

    .blog-slider-shell {
        gap: 8px;
    }

    .blog-nav-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 22px;
        border-radius: 10px;
    }

    .blog-item-card {
        flex: 0 0 240px;
        min-height: 210px;
        padding: 18px 14px;
    }

    .blog-item-card h3 {
        font-size: 18px;
    }

    .blog-item-card p {
        font-size: 13px;
        max-width: 100%;
    }
}
.serohesap-section {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1070px;
  min-height: 280px;
  margin: 18px auto 10px auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at top center, rgba(59,130,246,0.14), transparent 35%),
    linear-gradient(180deg, #111318 0%, #0d0f14 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.math-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.math-bg span {
  position: absolute;
  color: rgba(255,255,255,0.07);
  font-weight: 700;
  user-select: none;
  white-space: nowrap;
  filter: blur(0.2px);
}

/* Dağılmış semboller */
.math-bg span:nth-child(1)  { top: 12%; left: 8%;  font-size: 42px; transform: rotate(-12deg); }
.math-bg span:nth-child(2)  { top: 18%; left: 22%; font-size: 34px; transform: rotate(8deg); }
.math-bg span:nth-child(3)  { top: 14%; right: 16%; font-size: 48px; transform: rotate(-18deg); }
.math-bg span:nth-child(4)  { top: 58%; left: 10%; font-size: 44px; transform: rotate(14deg); }
.math-bg span:nth-child(5)  { top: 65%; right: 18%; font-size: 40px; transform: rotate(-10deg); }
.math-bg span:nth-child(6)  { top: 28%; right: 8%; font-size: 32px; transform: rotate(10deg); }
.math-bg span:nth-child(7)  { top: 22%; left: 50%; font-size: 52px; transform: rotate(-6deg); }
.math-bg span:nth-child(8)  { top: 68%; left: 28%; font-size: 46px; transform: rotate(16deg); }
.math-bg span:nth-child(9)  { top: 62%; left: 74%; font-size: 38px; transform: rotate(-14deg); }
.math-bg span:nth-child(10) { top: 40%; left: 14%; font-size: 36px; transform: rotate(7deg); }
.math-bg span:nth-child(11) { top: 16%; left: 72%; font-size: 44px; transform: rotate(-9deg); }
.math-bg span:nth-child(12) { top: 70%; left: 52%; font-size: 40px; transform: rotate(11deg); }
.math-bg span:nth-child(13) { top: 34%; left: 34%; font-size: 30px; transform: rotate(-8deg); }
.math-bg span:nth-child(14) { top: 52%; right: 30%; font-size: 34px; transform: rotate(13deg); }
.math-bg span:nth-child(15) { top: 24%; left: 60%; font-size: 28px; transform: rotate(-15deg); }
.math-bg span:nth-child(16) { top: 46%; right: 12%; font-size: 30px; transform: rotate(9deg); }
.math-bg span:nth-child(17) { top: 76%; right: 38%; font-size: 32px; transform: rotate(-7deg); }
.math-bg span:nth-child(18) { top: 10%; left: 38%; font-size: 30px; transform: rotate(12deg); }
.math-bg span:nth-child(19) { top: 74%; left: 82%; font-size: 38px; transform: rotate(-12deg); }
.math-bg span:nth-child(20) { top: 38%; left: 86%; font-size: 34px; transform: rotate(15deg); }

.serohesap-content {
  position: relative;
  z-index: 2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 34px 22px;
}

.serohesap-content h2 {
  margin: 0 0 14px;
  font-size: 2.05rem;
  line-height: 1.15;
  font-weight: 800;
}

.serohesap-content p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.serohesap-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34,197,94,0.22);
  transition: 0.25s ease;
}

.serohesap-go-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(34,197,94,0.28);
}

@media (max-width: 768px) {
  .serohesap-section {
    width: calc(100% - 24px);
    min-height: 240px;
    margin: 14px auto 8px auto;
    border-radius: 20px;
  }

  .serohesap-content {
    min-height: 240px;
    padding: 26px 16px;
  }

  .serohesap-content h2 {
    font-size: 1.55rem;
  }

  .serohesap-content p {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .math-bg span {
    opacity: 0.9;
  }
}