:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);

    --bg: #eef0f2;
    --surf: #fff;
    --ink: #17191c;
    --mu: #5f656d;
    --bd: #d9dde1;
    --ac: #3d5a80;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121416;
        --surf: #1b1e21;
        --ink: #eceef0;
        --mu: #9aa1a8;
        --bd: #2c3136;
        --ac: #8fb0d6;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(32px, 7vw, 88px) clamp(18px, 4vw, 40px) 64px;
}

/* Ana sayfada köşedeki logoya yer aç */
main:not(.adm) {
    padding-top: clamp(84px, 10vw, 112px);
}

h1 {
    font-size: clamp(2.8rem, 10vw, 7rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.045em;
    margin: 0;
    font-variation-settings: "opsz" 96;
    max-width: 12ch;
}

.bio {
    max-width: 36ch;
    margin: 22px 0 0;
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    color: var(--mu);
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: clamp(56px, 9vw, 96px) 0 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bd);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--surf);
    border: 1px solid var(--bd);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s;
}

a.card:hover {
    border-color: var(--ac);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ac);
    outline-offset: 3px;
}

.card h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
}

.card p {
    margin: 0;
    font-size: .98rem;
    color: var(--mu);
    flex: 1;
}

.tag {
    font-size: .82rem;
    color: var(--ac);
    font-weight: 600;
}

.go {
    font-weight: 600;
    color: var(--ac);
}

.soon {
    opacity: .6;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--bd);
    background: var(--surf);
}

.links a:hover {
    border-color: var(--ac);
    color: var(--ac);
}

footer {
    margin-top: 72px;
    color: var(--mu);
    font-size: .9rem;
}


/* ================================
   YÖNETİCİ SAYFASI
   ================================ */

.adm {
    max-width: 720px;
}

.adm h1 {
    font-size: 2rem;
    letter-spacing: -.03em;
    max-width: none;
}

.adm h2 {
    font-size: 1.1rem;
    margin: 36px 0 12px;
}


/* BERK KARABIYIK */
.adm .brand-name {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -.04em;
    margin: 0 0 10px;
    line-height: 1;
    max-width: none;
}


/* Owner Access */
.adm .owner-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 30px;
    letter-spacing: -.03em;
}


.adm label {
    display: block;
    font-size: .85rem;
    color: var(--mu);
    margin-top: 10px;
}

.adm input,
.adm textarea {
    display: block;
    width: 100%;
    font: inherit;
    font-size: .98rem;
    padding: 9px 11px;
    border: 1px solid var(--bd);
    border-radius: 9px;
    background: var(--surf);
    color: var(--ink);
}

.adm .it {
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 4px 14px 14px;
    margin-bottom: 12px;
    background: var(--surf);
}

.adm button,
.adm .btn {
    font: inherit;
    font-size: .92rem;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid var(--bd);
    background: var(--surf);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.adm .pri {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
    font-weight: 600;
}

.adm .row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.adm .bar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.msg {
    padding: 10px 14px;
    border-radius: 10px;
    margin: 14px 0;
    background: var(--surf);
    border: 1px solid var(--bd);
}

.msg.err {
    border-color: #d92d20;
    color: #d92d20;
}

.msg.ok {
    border-color: #2a9d62;
    color: #2a9d62;
}

.sticky {
    position: sticky;
    bottom: 0;
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
}


/* Panelde şişedeki mesajlar */
.adm .sise-kutu {
    margin: 20px 0 8px;
}

.adm .sise-ozet {
    margin: 0;
    color: var(--mu);
}

/* Üstteki "Mesajlar" düğmesi ve sayı rozeti */
.adm .sise-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.adm .sise-sayi {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 99px;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    background: var(--bd);
    color: var(--ink);
}

/* Okunmamış mesaj varken düğme yanıp söner */
.adm .sise-btn.flash {
    border-color: var(--ac);
    animation: sise-flash 1.1s ease-in-out infinite;
}

.adm .sise-btn.flash .sise-sayi {
    background: var(--ac);
    color: var(--bg);
}

@keyframes sise-flash {
    0%, 100% { background: var(--surf); box-shadow: 0 0 0 0 rgba(143, 176, 214, 0); }
    50% { background: color-mix(in srgb, var(--ac) 35%, var(--surf)); box-shadow: 0 0 14px 2px rgba(143, 176, 214, .55); }
}

@media (prefers-reduced-motion: reduce) {
    .adm .sise-btn.flash {
        animation: none;
        background: color-mix(in srgb, var(--ac) 25%, var(--surf));
    }
}

.adm .sise-bos {
    color: var(--mu);
}

.adm .sise-mesaj.yeni {
    border-color: var(--ac);
}

.adm .sise-ust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.adm .sise-ust .new-badge {
    margin-left: 0;
}

.adm .sise-ust time {
    margin-left: auto;
    color: var(--mu);
    font-size: .85rem;
}

.adm .sise-metin {
    margin: 10px 0 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.adm .sise-donus {
    margin: 0;
    font-size: .9rem;
    color: var(--mu);
}

.adm .sise-donus a {
    color: var(--ac);
}

/* Üstteki "Canlı" düğmesi: o an sitedeki ziyaretçi sayısı */
.adm .canli-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.adm .canli-btn .ist-nokta {
    background: var(--mu);
    animation: none;
}

.adm .canli-btn.var {
    border-color: #2a9d62;
}

.adm .canli-btn.var .ist-nokta {
    background: #2a9d62;
    animation: ist-nabiz 1.8s ease-out infinite;
}

.adm .canli-btn.var .sise-sayi {
    background: #2a9d62;
    color: #fff;
}

/* Panelde istatistik */
.adm .ist {
    margin-top: 20px;
}

.adm .ist-canli {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm .ist-nokta {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2a9d62;
    box-shadow: 0 0 0 0 rgba(42, 157, 98, .6);
    animation: ist-nabiz 1.8s ease-out infinite;
}

@keyframes ist-nabiz {
    to { box-shadow: 0 0 0 9px rgba(42, 157, 98, 0); }
}

.adm .ist-aralik .btn {
    padding: 6px 12px;
}

.adm .ist-kartlar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.adm .ist-kartlar .it {
    padding: 14px;
    margin: 0;
}

.adm .ist-kartlar span {
    display: block;
    color: var(--mu);
    font-size: .85rem;
}

.adm .ist-kartlar b {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.adm .ist-grafik {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 150px;
    padding: 14px 14px 26px;
    margin-top: 12px;
}

.adm .ist-gun {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.adm .ist-gun i {
    display: block;
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: var(--ac);
    opacity: .85;
}

.adm .ist-gun span {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    font-size: .68rem;
    color: var(--mu);
}

.adm .ist-izgara {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.adm .ist-tablo {
    margin: 0;
}

.adm .ist-tablo h3 {
    margin: 12px 0 10px;
    font-size: 1rem;
}

.adm .ist-satir {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: .9rem;
}

.adm .ist-ad {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adm .ist-cubuk {
    height: 6px;
    border-radius: 3px;
    background: var(--bd);
    overflow: hidden;
}

.adm .ist-cubuk i {
    display: block;
    height: 100%;
    background: var(--ac);
}

.adm .ist-bos,
.adm .ist-not {
    color: var(--mu);
    font-size: .85rem;
}

@media (max-width: 600px) {
    .adm .ist-izgara {
        grid-template-columns: 1fr;
    }

    .adm .ist-kartlar b {
        font-size: 1.4rem;
    }
}

/* Giriş düğmesi şifre alanıyla aynı genişlik ve yükseklikte */
.adm .giris-btn {
    display: block;
    width: 100%;
    padding: 9px 11px;
    font-size: .98rem;
    border-radius: 9px;
}

/* Doğrulama sayfalarında "Vazgeç", "Doğrula"nın hemen altında */
.adm .vazgec-form {
    margin-top: 8px;
}

/* Panelin en altındaki telif satırı */
.adm .adm-telif {
    margin-top: 48px;
    text-align: center;
    font-size: .8rem;
}

/* Panel girişindeki logo */
.adm .adm-logo {
    text-align: center;
    margin: 8px 0 6px;
}

.adm .adm-logo .bk-logo {
    --bk-size: clamp(52px, 13vw, 96px);
}

/* Yalnızca ekran okuyucular için başlık */
.bk-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Mobil görünüm */
@media (max-width: 600px) {

    .adm .brand-name {
        font-size: 36px;
    }

    .adm .owner-title {
        font-size: 1.6rem;
    }

}


/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

/* ================================
   DİNAMİK SU ARKA PLANI
   ================================ */

#water {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
}

/* Sudaki balıklar: suyun üstünde, içeriğin altında */
#fish {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
}

/* Lamba yanınca: su yayılırken içerik sırayla belirir */
html.revealing main > * {
    animation: page-in .9s cubic-bezier(.2, .7, .2, 1) both;
}

html.revealing main > :nth-child(1) { animation-delay: .35s; }
html.revealing main > :nth-child(2) { animation-delay: .55s; }
html.revealing main > :nth-child(3) { animation-delay: .7s; }
html.revealing main > :nth-child(4) { animation-delay: .8s; }

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}


/* ================================
   LAMBA GİRİŞİ (ilk ziyarette)
   ================================ */

/* JS yoksa ya da bu oturumda zaten girildiyse perde hiç görünmez */
#lamp {
    display: none;
}

html.lamp {
    overflow: hidden;
}

html.lamp #lamp,
#lamp.open {
    --light: 143, 176, 214;   /* ampul ışığı: sitenin mavisi (#8fb0d6) */
    --bulb-x: 50%;
    --bulb-y: 150px;
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0b0c0e;
    color: var(--mu);
    overflow: hidden;
    transition: opacity .9s ease .25s;
}

/* Ampulün etrafını aydınlatan, açılışta tüm ekranı dolduran ışık */
.lamp-flood {
    position: absolute;
    left: var(--bulb-x);
    top: var(--bulb-y);
    width: 140vmax;
    height: 140vmax;
    margin: -70vmax 0 0 -70vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--light), .22), rgba(var(--light), .06) 35%, transparent 60%);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .25s, transform 1s cubic-bezier(.3, .6, .2, 1);
    pointer-events: none;
}

.lamp-cord {
    position: absolute;
    left: var(--bulb-x);
    top: 0;
    width: 2px;
    height: calc(var(--bulb-y) - 46px);
    margin-left: -1px;
    background: #2a2c30;
}

.lamp-bulb {
    position: absolute;
    left: var(--bulb-x);
    top: calc(var(--bulb-y) - 48px);
    width: 64px;
    margin-left: -32px;
    transform-origin: 50% -80px;
    z-index: 2;
}

.lamp-socket {
    width: 26px;
    height: 22px;
    margin: 0 auto;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(90deg, #26282c, #45484e 45%, #1f2124);
}

.lamp-glass {
    position: relative;
    width: 64px;
    height: 74px;
    margin-top: -2px;
    border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
    /* Opak zemin: arkadaki ip camın içinden görünmesin */
    background: radial-gradient(circle at 35% 30%, #2b2e33, #17191c 60%);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .2s, box-shadow .2s;
}

/* Tel (filaman) */
.lamp-glass::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 22px;
    width: 18px;
    height: 16px;
    margin-left: -9px;
    border: 2px solid #5a5248;
    border-top: 0;
    border-radius: 0 0 9px 9px;
    transition: border-color .2s, box-shadow .2s;
}

.lamp-beam {
    position: absolute;
    left: var(--bulb-x);
    top: calc(var(--bulb-y) + 10px);
    width: min(760px, 120vw);
    height: 75vh;
    transform: translateX(-50%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    background: linear-gradient(to bottom, rgba(var(--light), .28), rgba(var(--light), .06) 55%, transparent);
    filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.lamp-dust {
    position: absolute;
    left: var(--bulb-x);
    top: calc(var(--bulb-y) + 30px);
    width: min(560px, 90vw);
    height: 60vh;
    transform: translateX(-50%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s;
}

.lamp-dust i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(var(--light), .7);
    filter: blur(.6px);
    animation: lamp-float var(--d) linear infinite;
    animation-delay: var(--delay);
}

@keyframes lamp-float {
    0%   { transform: translate(0, 0); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate(var(--dx), -120px); opacity: 0; }
}

/* Çekme ipi: üstü camın arkasında kalır */
.lamp-rope {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.lamp-rope path {
    fill: none;
    stroke: #8a8172;
    stroke-width: 2;
    stroke-linecap: round;
}

.lamp-knob {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    margin: -10px 0 0 -22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: grab;
    touch-action: none;
    z-index: 4;
}

.lamp-knob::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 14px;
    height: 22px;
    margin-left: -7px;
    border-radius: 7px 7px 9px 9px;
    background: linear-gradient(90deg, #7b6f5c, #b9aa8e 45%, #6d624f);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.lamp-knob:active {
    cursor: grabbing;
}

.lamp-knob:focus-visible {
    outline: 3px solid var(--ac);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Işık açık */
#lamp.on .lamp-flood,
#lamp.on .lamp-beam,
#lamp.on .lamp-dust {
    opacity: 1;
}

#lamp.on .lamp-flood {
    transform: scale(1);
}

#lamp.on .lamp-glass {
    background: radial-gradient(circle at 50% 45%, #f2f8ff, rgb(var(--light)) 45%, #5f84b3 85%);
    box-shadow: 0 0 30px 8px rgba(var(--light), .55), 0 0 120px 40px rgba(var(--light), .18);
}

#lamp.on .lamp-glass::before {
    border-color: #eef6ff;
    box-shadow: 0 0 8px #d6e8ff;
}

/* Işık ekranı doldurur, perde kaybolur, site görünür */
#lamp.open .lamp-flood {
    transform: scale(2.2);
    background: radial-gradient(circle, rgba(var(--light), .5), rgba(var(--light), .2) 40%, transparent 70%);
}

#lamp.open {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Gizli sürpriz: ampul patlar ---------- */

/* Patlamadan hemen önceki göz alıcı parlama */
#lamp.flash .lamp-glass {
    background: #fff;
    box-shadow: 0 0 60px 30px rgba(255, 255, 255, .85), 0 0 220px 90px rgba(var(--light), .5);
}

#lamp.flash .lamp-flood {
    opacity: 1;
    transform: scale(1.4);
}

/* Patlamış ampul: içi isle kararmış, teli kopuk */
#lamp.blown .lamp-glass,
#lamp.recover .lamp-glass {
    background: radial-gradient(circle at 50% 38%, #4a4540, #24221f 55%, #161514);
    transition: background 1.2s;
}

#lamp.blown .lamp-glass::before {
    border-color: #2b2723;
    clip-path: inset(0 55% 0 0);
}

#lamp.blown .lamp-bulb {
    animation: lamp-jolt .5s ease-out;
}

@keyframes lamp-jolt {
    20% { translate: 0 -4px; }
    45% { translate: 0 2px; }
}

.lamp-smoke {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 0;
    height: 0;
    pointer-events: none;
}

.lamp-smoke i {
    position: absolute;
    left: -9px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(160, 160, 165, .5);
    filter: blur(6px);
    opacity: 0;
}

#lamp.blown .lamp-smoke i {
    animation: lamp-smoke 2.6s ease-out var(--sd) both;
}

@keyframes lamp-smoke {
    0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
    15%  { opacity: .9; }
    100% { opacity: 0; transform: translate(var(--sx), -120px) scale(2.6); }
}

/* Toparlanma: tel ısınıp iki kez cılız yanar, sonra normal kapalı hâline döner */
#lamp.recover .lamp-glass {
    animation: lamp-recover 1.1s steps(1, end);
}

@keyframes lamp-recover {
    0%, 30%, 62%, 100% { box-shadow: none; }
    18%, 48% { box-shadow: 0 0 14px 2px rgba(var(--light), .35); }
}

/* Kapatma ipiyle geri dönüş: ışık söner, karanlık perde hızla iner */
#lamp.again {
    animation: lamp-back .35s ease both;
}

@keyframes lamp-back {
    from { opacity: 0; }
}

/* İsmin sağında sarkan kapatma ipi (sayfayla birlikte kayar) */
.off-rope {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity .6s;
}

html:not(.lamp) .off-rope {
    opacity: 1;
    transition-delay: .9s;
}

.off-rope svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: visible;
    pointer-events: none;
}

.off-rope path {
    fill: none;
    stroke: #8a8172;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (prefers-reduced-motion: reduce) {
    html.revealing main > * {
        animation: none;
    }

    .lamp-dust {
        display: none;
    }

    #lamp.open {
        transition-duration: .3s;
        transition-delay: 0s;
    }
}


/* ================================
   ŞİŞEDEKİ MESAJ
   ================================ */

.bottle-open {
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
    color: var(--ink);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--bd);
    background: var(--surf);
    cursor: pointer;
}

.bottle-open:hover {
    border-color: var(--ac);
    color: var(--ac);
}

html.bottle-lock {
    overflow: hidden;
}

.bottle-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 16px;
}

.bottle-modal[hidden] {
    display: none;
}

.bottle-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, .55);
    opacity: 0;
    transition: opacity .25s;
}

/* Mesaj kâğıdı: iki temada da aynı eski kâğıt */
.bottle-note {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 26px 26px 22px;
    border-radius: 6px;
    background: #f3ead6;
    color: #2b2620;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    transform: translateY(16px) rotate(-.6deg);
    opacity: 0;
    transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1);
}

.bottle-modal.in .bottle-backdrop {
    opacity: 1;
}

.bottle-modal.in .bottle-note {
    opacity: 1;
    transform: rotate(-.6deg);
}

.bottle-note h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bottle-sub {
    margin: 4px 0 16px;
    color: #6b6152;
    font-size: .95rem;
}

.bottle-note label {
    display: block;
    margin-top: 10px;
    font-size: .85rem;
    font-weight: 600;
}

.bottle-note label span {
    font-weight: 400;
    color: #8a7f6d;
}

.bottle-note textarea,
.bottle-note input {
    display: block;
    width: 100%;
    margin-top: 4px;
    font: inherit;
    color: #2b2620;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed #b9a479;
    border-radius: 0;
    padding: 6px 2px;
}

/* Çizgili kâğıt */
.bottle-note textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 28px;
    background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(185, 164, 121, .45) 27px 28px);
}

.bottle-note textarea:focus-visible,
.bottle-note input:focus-visible,
.bottle-note button:focus-visible {
    outline: 2px solid #3d5a80;
    outline-offset: 2px;
}

.bottle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Etiketlerden biri iki satıra bölünse de iki alanın çizgisi aynı hizada kalsın */
.bottle-row > div {
    display: flex;
    flex-direction: column;
}

.bottle-row input {
    margin-top: auto;
}

.bottle-row label {
    margin-bottom: 4px;
}

.bottle-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.bottle-err {
    min-height: 1.2em;
    margin: 6px 0 0;
    font-size: .85rem;
    color: #b42318;
}

.bottle-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.bottle-actions button {
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 99px;
    cursor: pointer;
}

.bottle-cancel {
    background: transparent;
    color: #6b6152;
    border: 1px solid #cfc2a4;
}

.bottle-send {
    background: #3d5a80;
    color: #fff;
    border: 1px solid #3d5a80;
}

/* Şişe */
.bottle {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 160;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}

.bottle.show {
    opacity: 1;
}

/* Mantar: kendi alt kenarı etrafında döner */
.bottle .b-cork {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

/* Kâğıttan sarılan rulo: kenarları koyu, ortası açık bir silindir */
.bottle-roll {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 161;
    border-radius: 99px;
    background: linear-gradient(to bottom, #a8946a, #d9cba7 18%, #f6eedb 42%, #fffaf0 50%, #efe3c6 64%, #c9b88f 86%, #9c875c);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    transform-origin: 50% 50%;
    pointer-events: none;
}

/* Şişe yüzerken sayfa içeriği geri çekilir, su öne çıkar */
main,
.off-rope {
    transition: opacity .6s;
}

html.bottle-sailing main,
html.bottle-sailing .off-rope {
    opacity: .12;
}

.bottle-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 170;
    max-width: min(440px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--surf);
    border: 1px solid var(--bd);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}

.bottle-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.bottle-toast.bad {
    border-color: #d92d20;
}

@media (max-width: 600px) {
    .bottle-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Telefonda düğmeler alt alta, tam genişlik; ana düğme üstte */
    .bottle-actions {
        flex-direction: column-reverse;
    }

    .bottle-actions button {
        width: 100%;
    }
}


/* ================================
   YENİ PROJE ETİKETİ (3 gün)
   ================================ */

.new-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 99px;
    vertical-align: middle;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--bg);
    background: var(--ac);
    animation: new-pulse 2.4s ease-in-out infinite;
}

@keyframes new-pulse {
    50% { box-shadow: 0 0 0 6px rgba(143, 176, 214, 0); }
    0%, 100% { box-shadow: 0 0 0 0 rgba(143, 176, 214, .45); }
}

@media (prefers-reduced-motion: reduce) {
    .new-badge {
        animation: none;
    }
}
