/*
 * Sınıf Denizi — uzaktan kumanda (telefon). Koyu deniz zemini, tek elle kullanılacak büyük hedefler.
 */
.rc-page {
    min-height: 100vh;
    background: radial-gradient(120% 60% at 50% 0%, #13406B, #0B2545 55%, #071A33);
    color: #fff;
}
.rc { display: grid; gap: 14px; width: min(560px, 100%); margin: 0 auto; padding: 14px 16px 40px; }

.rc-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: -14px -16px 0; padding: 12px 16px; background: rgba(7, 26, 51, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rc-head__back, .rc-head__board {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    min-width: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
}
.rc-head__back i, .rc-head__board i { font-size: 20px; }
.rc-head__title { display: grid; flex: 1; min-width: 0; }
.rc-head__title strong { overflow: hidden; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.rc-head__title > span { display: inline-flex; align-items: center; gap: 6px; color: #A9C6DA; font-weight: 700; font-size: .8rem; }
.rc-live { width: 8px; height: 8px; border-radius: 50%; background: #5BE0A0; box-shadow: 0 0 0 3px rgba(91, 224, 160, .25); }
.rc-live.is-off { background: #FF8DA4; box-shadow: 0 0 0 3px rgba(255, 141, 164, .25); }

.rc-card { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .06); }
.rc-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 1.15rem; }
.rc-card h2 i { color: #7FE3E8; font-size: 22px; }
.rc-card h2 small { margin-left: auto; color: #FFD66B; font-weight: 800; font-size: .85rem; }

/* Işıklar */
.rc-light--red { --lc: #FF4D4F; --lc-deep: #B3161B; }
.rc-light--yellow { --lc: #FFC531; --lc-deep: #B27A00; }
.rc-light--green { --lc: #2FD27A; --lc-deep: #0E7A41; }
.rc-lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-light {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 14px 6px 12px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.rc-light b { font-weight: 800; }
.rc-light small { color: #A9C6DA; font-weight: 700; font-size: .78rem; }
.rc-lamp {
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8) 0 8%, var(--lc) 40%, var(--lc-deep));
    box-shadow: 0 0 0 5px #1D2733;
    opacity: .45;
    transition: opacity 200ms, box-shadow 200ms;
}
.rc-light[aria-pressed="true"] { border-color: var(--lc); background: color-mix(in srgb, var(--lc) 16%, transparent); }
.rc-light[aria-pressed="true"] .rc-lamp { opacity: 1; box-shadow: 0 0 0 5px #1D2733, 0 0 26px 6px var(--lc); }

/* Düğmeler */
.rc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.rc-btn i { font-size: 20px; }
.rc-btn:active { transform: scale(.97); }
.rc-btn[hidden] { display: none; }
.rc-btn--wide { width: 100%; height: 58px; font-size: 1.05rem; }
.rc-btn--primary { background: #0B7A86; }
.rc-btn--gold { background: linear-gradient(180deg, #F9C356, #EEA62E); color: #3D2A00; }
.rc-btn--danger { background: rgba(210, 84, 110, .35); }
.rc-btn--ghost { justify-self: center; height: 42px; background: transparent; color: #A9C6DA; }
.rc-btn.is-busy { opacity: .6; }

/* Zamanlayıcı */
.rc-timer { display: grid; gap: 12px; text-align: center; }
.rc-timer[hidden], .rc-setup[hidden] { display: none; }
.rc-timer__label { color: #A9E6EA; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.rc-timer__time { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rc-timer__bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rc-timer__bar i { display: block; height: 100%; border-radius: inherit; background: #4FD1D9; transition: width 250ms linear; }
.rc-timer.is-warn .rc-timer__time { color: #FFB4A3; }
.rc-timer.is-warn .rc-timer__bar i { background: #FF8A6B; }
.rc-timer.is-done .rc-timer__time { color: #FFD66B; font-size: 2.4rem; }
.rc-timer.is-done [data-rc-pause] { visibility: hidden; }

.rc-setup { display: grid; gap: 12px; }
.rc-dial { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rc-dial button { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }
.rc-dial output { min-width: 150px; font-size: 3.2rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.rc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rc-chips button { height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.rc-chips button[aria-pressed="true"] { border-color: #4FD1D9; background: rgba(79, 209, 217, .2); }
.rc-chips--sound button[aria-pressed="true"] { border-color: #FFD66B; background: rgba(255, 214, 107, .18); }

/* Öğrenciler */
.rc-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rc-kids__empty { grid-column: 1 / -1; color: #A9C6DA; font-weight: 700; text-align: center; }
.rc-kid {
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 100%;
    padding: 10px 6px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.rc-kid:active { transform: scale(.96); background: rgba(255, 214, 107, .25); }
.rc-kid img { width: 64px; height: 40px; object-fit: contain; }
.rc-kid b { max-width: 100%; overflow: hidden; font-weight: 800; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.rc-kid small { color: #A9C6DA; font-weight: 700; font-size: .72rem; }
.rc-kid.is-away { opacity: .45; cursor: default; }
.rc-kid.is-busy { opacity: .6; }

/* Kod girişi */
.rc--entry { min-height: 100vh; align-content: center; }
.rc-entry { display: grid; justify-items: center; gap: 16px; padding: 28px 20px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; background: rgba(255, 255, 255, .06); text-align: center; }
.rc-entry__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(150deg, #4FD1D9, #0B7A86 60%, #0B2545); font-size: 38px; }
.rc-entry h1 { margin: 0; color: #fff; font-size: 1.8rem; }
.rc-entry__lead { margin: 0; color: #C9DCEB; font-weight: 600; line-height: 1.5; }
.rc-entry__form { display: grid; gap: 12px; width: 100%; }
.rc-code {
    width: 100%;
    height: 84px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: .25em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.rc-code:focus { outline: none; border-color: #4FD1D9; box-shadow: 0 0 0 4px rgba(79, 209, 217, .2); }
.rc-code::placeholder { color: rgba(255, 255, 255, .25); }
.rc-entry__error { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: #FFB3C3; font-weight: 700; }
.rc-entry__or { position: relative; width: 100%; margin: 4px 0; color: #7F9BB3; font-weight: 700; font-size: .85rem; }
.rc-entry__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255, 255, 255, .12); }
.rc-entry__or span { position: relative; padding: 0 10px; background: #0E2A4A; }
.rc-entry__hint { display: flex; gap: 6px; margin: 4px 0 0; color: #7F9BB3; font-weight: 600; font-size: .82rem; text-align: left; }
.rc-entry .rc-btn { text-decoration: none; }
.rc-head__exp { color: #FFD66B; }

/* Balık menüsü: alttan açılan panel */
.rc-kid.is-away { opacity: .55; cursor: pointer; }
.rc-sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: min(560px, 100%);
    max-width: 100%;
    max-height: 88vh;
    margin: 0 auto;
    padding: 8px 16px 22px;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: #0E2A4A;
    color: #fff;
    overflow-y: auto;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.rc-sheet[open] { display: grid; gap: 12px; animation: rc-up 260ms cubic-bezier(.22, 1, .36, 1); }
.rc-sheet::backdrop { background: rgba(2, 10, 22, .55); }
.rc-sheet__grip { justify-self: center; width: 44px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.rc-sheet__head { display: flex; align-items: center; gap: 12px; }
.rc-sheet__head img { width: 72px; height: 46px; object-fit: contain; flex: none; }
.rc-sheet__head div { display: grid; flex: 1; min-width: 0; }
.rc-sheet__head strong { overflow: hidden; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.rc-sheet__head small { color: #A9C6DA; font-weight: 700; font-size: .82rem; }
.rc-sheet__close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; }
.rc-sheet__label { margin: 4px 0 0; color: #7F9BB3; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.rc-behaviors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-behavior {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.rc-behavior:active { background: rgba(255, 214, 107, .25); }
.rc-behavior:disabled, .rc-state:disabled, .rc-btn:disabled { opacity: .4; cursor: not-allowed; }
.rc-behavior__icon { grid-row: span 2; font-size: 1.6rem; }
.rc-behavior b { display: -webkit-box; overflow: hidden; font-weight: 800; font-size: .88rem; line-height: 1.2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-behavior small { color: #FFD66B; font-weight: 800; font-size: .75rem; }
.rc-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-state {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 6px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: .82rem;
    cursor: pointer;
}
.rc-state i { font-size: 24px; color: #A8B4FF; }
.rc-state[data-rc-act="absent"] i { color: #FFA3B6; }
.rc-state[data-rc-act="calm"] i { color: #7EE0B5; }
.rc-state.is-on { border-color: rgba(127, 227, 232, .6); background: rgba(127, 227, 232, .15); }
@keyframes rc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rc-sheet[open] { animation: none; } }

/* Dünya seçici (Deniz | Gökyüzü): büyük dokunma hedefi, seçili dünya kendi renginde */
.rc-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rc-world {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 56px;
    padding: 14px 10px 12px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.rc-world i { font-size: 30px; }
.rc-world b { font-weight: 800; }
.rc-world small { color: #A9C6DA; font-weight: 700; font-size: .78rem; line-height: 1.3; }
.rc-world--sea { --wc: #3BB3EA; }
.rc-world--sky { --wc: #9ED8FF; }
.rc-world[aria-pressed="true"] { border-color: var(--wc); background: color-mix(in srgb, var(--wc) 18%, transparent); }
.rc-world[aria-pressed="true"] i { color: var(--wc); }
.rc-world:disabled { cursor: progress; opacity: .7; }
.rc-world__note { margin: 10px 0 0; color: #A9C6DA; font-size: .8rem; font-weight: 600; text-align: center; }

/* Puan düşürme (balık panelinin altında, kapalı başlar) ve geri al çubuğu */
.rc-deduct { border-radius: 14px; background: rgba(255, 164, 147, .07); }
.rc-deduct summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #FFC9BE; font-weight: 800; font-size: .95rem; cursor: pointer; list-style: none; }
.rc-deduct summary::-webkit-details-marker { display: none; }
.rc-deduct summary > i:first-child { font-size: 20px; color: #FFA493; }
.rc-deduct__caret { margin-left: auto; transition: transform .2s ease; }
.rc-deduct[open] .rc-deduct__caret { transform: rotate(180deg); }
.rc-deduct__body { display: grid; gap: 10px; padding: 0 12px 12px; }
.rc-reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rc-reason { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 800; font-size: .84rem; line-height: 1.2; text-align: left; cursor: pointer; }
.rc-reason b { flex: 1; font-weight: 800; }
.rc-reason small { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255, 164, 147, .2); color: #FFB4A6; font-weight: 800; font-size: .8rem; }
.rc-reason:active { background: rgba(255, 164, 147, .22); }
.rc-reason.is-busy, .rc-reason:disabled { opacity: .5; }
.rc-deduct__custom { display: flex; align-items: center; gap: 6px; }
.rc-deduct__custom > button:not(.rc-btn) { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; cursor: pointer; }
.rc-deduct__custom > span { min-width: 72px; color: #FFB4A6; font-weight: 800; text-align: center; }
.rc-deduct__custom .rc-btn { margin-left: auto; height: 44px; padding: 0 18px; }
.rc-btn--deduct { background: #C9553F; color: #fff; }
.rc-deduct__note { margin: 0; color: #7F9BB3; font-weight: 700; font-size: .76rem; line-height: 1.4; }
.rc-undo { position: fixed; left: 50%; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 12px; width: min(520px, calc(100% - 24px));
    padding: 10px 10px 10px 16px; border-radius: 16px; background: #0B2545; color: #fff; font-weight: 700; font-size: .9rem;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); transform: translateX(-50%); }
.rc-undo[hidden] { display: none; }
.rc-undo span { flex: 1; min-width: 0; }
.rc-undo button { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
