/* Karadeniz çay hasadı — makasla sürgün kesimi */
#media-view-tea-game {
    padding-bottom: 0;
}

.tea-game {
    position: relative;
    border-radius: var(--kv-radius);
    overflow: hidden;
    min-height: 520px;
    background: #3d5a4a;
    box-shadow: 0 12px 40px rgba(26, 77, 46, 0.22);
}

/* Karadeniz manzara */
.tea-game__sky {
    position: absolute;
    inset: 0 0 42%;
    background: linear-gradient(180deg, #8fa8b8 0%, #b8c9d4 35%, #c5d4c0 100%);
    pointer-events: none;
}

.tea-game__mist {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 20% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 70% 35% at 80% 25%, rgba(255, 255, 255, 0.45) 0%, transparent 55%);
    pointer-events: none;
    animation: teaMistDrift 12s ease-in-out infinite;
}

@keyframes teaMistDrift {
    0%, 100% { opacity: 0.85; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

.tea-game__mountains {
    position: absolute;
    bottom: 38%;
    left: 0;
    right: 0;
    height: 28%;
    pointer-events: none;
    background:
        linear-gradient(165deg, transparent 40%, #4a6741 40%),
        linear-gradient(195deg, transparent 52%, #3d5a38 52%);
    opacity: 0.7;
}

.tea-game__location {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 4;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.625rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
}

/* HUD */
.tea-game__hud {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 36px 10px 6px;
}

.tea-game__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-size: 0.5625rem;
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tea-game__stat strong {
    font-size: 1.0625rem;
    font-weight: var(--fw-bold);
    color: var(--green);
}

.tea-game__time-track {
    position: relative;
    z-index: 6;
    height: 3px;
    margin: 0 10px 6px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.tea-game__time-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #2d6a4f, #74c69d);
    transition: width 1s linear;
}

.tea-game--urgent .tea-game__time-bar {
    background: linear-gradient(90deg, #c0392b, #c9a227);
}

/* Tarla — teraslar */
.tea-game__plantation-wrap {
    position: relative;
    z-index: 3;
    margin: 0 6px 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tea-game__plantation {
    position: relative;
    height: 340px;
    touch-action: none;
    cursor: crosshair;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 52px,
            rgba(0, 0, 0, 0.06) 52px,
            rgba(0, 0, 0, 0.06) 54px
        ),
        linear-gradient(180deg, #4a7c59 0%, #2d6a4f 25%, #1b4332 55%, #163828 100%);
}

.tea-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 25%;
    padding: 0 4px;
    transform: perspective(200px) rotateX(8deg);
    transform-origin: bottom center;
}

.tea-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.04);
}

.tea-bush {
    position: relative;
    flex: 1;
    max-width: 22%;
    height: 88%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding-bottom: 2px;
}

.tea-bush::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 55%;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(ellipse at 50% 80%, #0d2818 0%, #1a4d2e 45%, #2d6a4f 100%);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.3);
}

/* Çay sürgünü — 2 yaprak + tomurcuk */
.tea-sprig {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 38px;
    margin-bottom: 18%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: crosshair;
    transform-origin: bottom center;
    transition: transform 150ms, filter 150ms;
}

.tea-sprig__stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 14px;
    margin-left: -1px;
    background: linear-gradient(180deg, #5c7a4a, #3d5a30);
    border-radius: 1px;
}

.tea-sprig__leaf {
    position: absolute;
    width: 14px;
    height: 9px;
    border-radius: 0 70% 0 70%;
    background: linear-gradient(135deg, #74c69d 0%, #40916c 50%, #2d6a4f 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tea-sprig__leaf--l {
    bottom: 10px;
    left: 2px;
    transform: rotate(-35deg);
}

.tea-sprig__leaf--r {
    bottom: 10px;
    right: 2px;
    transform: rotate(35deg) scaleX(-1);
}

.tea-sprig__bud {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 6px;
    height: 8px;
    margin-left: -3px;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(180deg, #95d5b2, #52b788);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Olgun sürgün — parlak yeşil */
.tea-sprig--flush .tea-sprig__leaf {
    background: linear-gradient(135deg, #b7e4c7 0%, #52b788 45%, #2d6a4f 100%);
}

.tea-sprig--flush .tea-sprig__bud {
    background: linear-gradient(180deg, #d8f3dc, #74c69d);
    animation: teaBudGlow 1.5s ease-in-out infinite;
}

@keyframes teaBudGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(116, 198, 157, 0.6); }
    50% { box-shadow: 0 0 10px rgba(116, 198, 157, 0.95); }
}

/* Genç filiz — küçük, açık renk */
.tea-sprig--young {
    transform: scale(0.72);
    opacity: 0.75;
}

.tea-sprig--young .tea-sprig__leaf {
    background: linear-gradient(135deg, #d8f3dc, #95d5b2);
    width: 10px;
    height: 7px;
}

.tea-sprig--young .tea-sprig__bud {
    width: 4px;
    height: 5px;
}

/* Kızıl yaprak — eski, kesme */
.tea-sprig--old .tea-sprig__leaf {
    background: linear-gradient(135deg, #c97850, #8b4513);
    width: 16px;
    height: 10px;
}

.tea-sprig--old .tea-sprig__bud {
    display: none;
}

.tea-sprig--near {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.9));
    z-index: 5;
}

.tea-sprig--cut {
    animation: teaSprigCut 450ms ease forwards;
    pointer-events: none;
}

@keyframes teaSprigCut {
    0% { transform: rotate(0); opacity: 1; }
    40% { transform: rotate(18deg) translateY(6px); }
    100% { transform: rotate(40deg) translateY(28px); opacity: 0; }
}

/* Makas */
.tea-scissors {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 52px;
    height: 52px;
    pointer-events: none;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.45));
    transition: transform 80ms ease-out;
    transform-origin: 20% 80%;
}

.tea-scissors.hidden {
    display: none;
}

.tea-scissors--snip {
    animation: teaSnip 180ms ease;
}

@keyframes teaSnip {
    0% { transform: translate(var(--sx, 0), var(--sy, 0)) rotate(-12deg) scale(1); }
    40% { transform: translate(var(--sx, 0), var(--sy, 0)) rotate(-2deg) scale(0.92); }
    100% { transform: translate(var(--sx, 0), var(--sy, 0)) rotate(-12deg) scale(1); }
}

.tea-scissors__svg {
    width: 100%;
    height: 100%;
}

.tea-scissors--open .tea-scissors__blade--r {
    transform: rotate(14deg);
    transform-origin: 42% 78%;
}

.tea-scissors__blade--r {
    transition: transform 120ms;
}

/* Sepet */
.tea-game__basket {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 5;
    width: 48px;
    height: 40px;
    pointer-events: none;
}

.tea-game__basket-body {
    position: absolute;
    inset: 8px 0 0;
    border-radius: 4px 4px 10px 10px;
    background: linear-gradient(180deg, #8b6914, #5c4033);
    border: 2px solid #3d2817;
    overflow: hidden;
}

.tea-game__basket-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, #52b788, #2d6a4f);
    transition: height 400ms ease;
}

.tea-game__basket-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 14px;
    margin-left: -14px;
    border: 3px solid #5c4033;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}

.tea-game__basket-label {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    font-weight: var(--fw-bold);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* Kesim efekti */
.tea-cut-fx {
    position: absolute;
    z-index: 25;
    font-size: 0.8125rem;
    font-weight: var(--fw-bold);
    color: #2d6a4f;
    pointer-events: none;
    transform: translate(-50%, -100%);
    animation: teaCutFx 900ms ease-out forwards;
    text-shadow: 0 1px 0 #fff;
}

.tea-cut-fx--bad {
    color: #c0392b;
}

@keyframes teaCutFx {
    0% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -160%) scale(1.1); }
}

.tea-falling-leaf {
    position: absolute;
    width: 10px;
    height: 6px;
    border-radius: 0 70% 0 70%;
    background: #40916c;
    pointer-events: none;
    animation: teaLeafFall 800ms ease-in forwards;
}

@keyframes teaLeafFall {
    0% { opacity: 1; transform: translate(-50%, 0) rotate(0); }
    100% { opacity: 0; transform: translate(-50%, 60px) rotate(120deg); }
}

.tea-game--warn {
    animation: teaWarnFlash 350ms ease;
}

@keyframes teaWarnFlash {
    0%, 100% { box-shadow: 0 12px 40px rgba(26, 77, 46, 0.22); }
    50% { box-shadow: inset 0 0 0 3px rgba(192, 57, 43, 0.5); }
}

.tea-game__hint.hidden {
    display: none;
}

.tea-game__hint {
    position: relative;
    z-index: 6;
    margin: 0 10px 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    color: var(--green);
    text-align: center;
    line-height: 1.4;
}

.tea-game__hint strong {
    color: var(--green);
}

/* Overlay ekranlar */
.tea-game__overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(22, 56, 40, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tea-game__overlay.hidden {
    display: none !important;
}

.tea-game__card {
    width: 100%;
    max-width: 300px;
    padding: 22px 18px;
    border-radius: var(--kv-radius);
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.tea-game__card-visual {
    width: 100%;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #b8c9d4, #2d6a4f);
    position: relative;
    overflow: hidden;
}

.tea-game__card-visual::after {
    content: '✂️';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tea-game__card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    color: var(--green);
}

.tea-game__card > p {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tea-game__tips {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text);
}

.tea-game__tips li {
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.4;
}

.tea-game__tips li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--gold);
    font-weight: var(--fw-bold);
}

.tea-game__best {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.tea-game__best span {
    font-weight: var(--fw-bold);
    color: var(--green);
}

.tea-game__results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.tea-game__result-box {
    padding: 12px 8px;
    border-radius: 14px;
    background: var(--green-soft);
}

.tea-game__result-box span {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.tea-game__result-box strong {
    font-size: 1.125rem;
    color: var(--green);
}

.tea-game__reward {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 14px;
    background: var(--surface-alt);
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    color: var(--text-muted);
    line-height: 1.45;
}

.tea-game__reward--win {
    background: var(--gold-muted);
    color: var(--green);
}

.tea-game__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tea-game__actions .btn-kv--muted {
    margin-top: 0;
}
