#yuzbir-okey.active { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 18px; }
#yuzbir-okey > .panel-heading { flex: 0 0 auto; margin-bottom: 16px; }
.okey-frame-shell { width: 100%; flex: none; aspect-ratio: 1.6; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.okey-frame-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.okey-frame-shell:fullscreen { box-sizing: border-box; width: 100vw; height: 100dvh; padding-block: clamp(10px, 1.5dvh, 18px); border: 0; border-radius: 0; }
.okey-frame-shell.okey-expanded { aspect-ratio: auto; height: 85dvh; }
.okey-hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 600px) { #yuzbir-okey.active { height: auto; min-height: 0; padding: 12px; } .okey-frame-shell { flex: none; height: 76dvh; } }
:root {
    color-scheme: dark;
    --bg: #101114;
    --panel: #191b20;
    --panel-2: #20232a;
    --text: #f6f7fb;
    --muted: #aab0bf;
    --line: #303542;
    --accent: #18a999;
    --accent-strong: #dffefb;
    --accent-2: #f4d35e;
    --danger: #ff5f6d;
    --success: #4ade80;
    --surface: #11141a;
    --surface-raised: var(--panel-2);
    --surface-soft: var(--surface);
    --border: var(--line);
    --border-strong: #454b59;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 10px;
    --control-height: 42px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
}

html {
    background: #101114;
    overscroll-behavior-y: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #101114;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    border-right: 1px solid var(--line);
    background: #14161a;
    padding: 24px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

/* Metadata Cleaner */
.metadata-cleaner-panel {
    --metadata-safe: var(--accent);
}

.metadata-cleaner-heading {
    align-items: flex-start;
}

.metadata-cleaner-shell {
    display: grid;
    gap: 20px;
}

.metadata-cleaner-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
}

.metadata-drop-zone,
.metadata-batch-card,
.metadata-files-section,
.metadata-selection {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.metadata-drop-zone {
    display: grid;
    min-height: 320px;
    place-items: center;
    align-content: center;
    gap: 14px;
    border-style: dashed;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.metadata-drop-zone:hover,
.metadata-drop-zone.is-dragging {
    border-color: var(--accent);
    background: rgba(24, 169, 153, 0.06);
}

.metadata-drop-zone.is-dragging {
    transform: translateY(-2px);
}

.metadata-drop-zone:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.18);
}

.metadata-upload-icon {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid rgba(24, 169, 153, 0.36);
    border-radius: 50%;
    background: rgba(24, 169, 153, 0.1);
}

.metadata-upload-icon::before {
    content: "";
    width: 24px;
    height: 18px;
    border: 2px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    transform: translateY(7px);
}

.metadata-upload-icon span,
.metadata-upload-icon span::before,
.metadata-upload-icon span::after {
    position: absolute;
    display: block;
    content: "";
    background: var(--accent);
}

.metadata-upload-icon span {
    top: 17px;
    left: 32px;
    width: 3px;
    height: 27px;
    border-radius: 2px;
}

.metadata-upload-icon span::before,
.metadata-upload-icon span::after {
    top: 1px;
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.metadata-upload-icon span::before {
    left: -1px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.metadata-upload-icon span::after {
    right: -1px;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.metadata-drop-zone h3,
.metadata-batch-card h3,
.metadata-section-heading h3,
.metadata-selection-heading h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.metadata-drop-zone p,
.metadata-batch-card p,
.metadata-section-heading p,
.metadata-selection-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.metadata-drop-zone > small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.metadata-upload-status {
    min-height: 18px;
}

.metadata-batch-card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 20px;
}

.metadata-batch-actions {
    display: grid;
    gap: 9px;
}

.metadata-batch-actions .primary-button {
    min-height: 48px;
}

.metadata-batch-actions button:disabled,
.metadata-file-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.metadata-batch-progress {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.metadata-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--panel-2);
}

.metadata-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 180ms ease;
}

.metadata-format-notes {
    display: grid;
    gap: 7px;
}

.metadata-format-notes span {
    position: relative;
    color: var(--muted);
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
}

.metadata-format-notes span::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.metadata-purpose-note {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    font-size: 11px !important;
}

.metadata-files-section {
    padding: 18px;
}

.metadata-section-heading {
    margin-bottom: 14px;
}

.metadata-file-list {
    display: grid;
    gap: 10px;
}

.metadata-empty-list,
.metadata-selection-empty {
    display: grid;
    min-height: 130px;
    place-content: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.metadata-empty-list strong,
.metadata-selection-empty strong {
    color: var(--text);
}

.metadata-file-card {
    display: grid;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 12px;
    outline: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.metadata-file-card:hover,
.metadata-file-card.is-selected {
    border-color: rgba(24, 169, 153, 0.58);
}

.metadata-file-card.is-selected {
    background: rgba(24, 169, 153, 0.05);
}

.metadata-file-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.18);
}

.metadata-file-thumbnail {
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
}

.metadata-file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metadata-file-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.metadata-file-title-row {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.metadata-file-title-row h4 {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metadata-file-status {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
}

.metadata-file-status.is-complete {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    color: var(--success);
}

.metadata-file-status.is-error {
    border-color: rgba(255, 95, 109, 0.38);
    background: rgba(255, 95, 109, 0.08);
    color: var(--danger);
}

.metadata-file-status.is-analyzing,
.metadata-file-status.is-cleaning {
    border-color: rgba(244, 211, 94, 0.34);
    color: var(--accent-2);
}

.metadata-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 0;
}

.metadata-file-meta > div {
    display: flex;
    gap: 5px;
    font-size: 11px;
}

.metadata-file-meta dt,
.metadata-file-meta dd {
    margin: 0;
}

.metadata-file-meta dt {
    color: var(--muted);
}

.metadata-file-meta dd {
    color: var(--text);
    font-weight: 650;
}

.metadata-file-warning,
.metadata-file-error,
.metadata-selection-error {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.45;
}

.metadata-file-warning {
    color: var(--accent-2);
}

.metadata-file-error,
.metadata-selection-error {
    color: var(--danger);
}

.metadata-file-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(82px, 1fr));
    gap: 7px;
}

.metadata-file-actions button,
.metadata-file-actions a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
}

.metadata-file-actions .is-remove:hover:not(:disabled) {
    border-color: rgba(255, 95, 109, 0.55);
    color: var(--danger);
}

.metadata-selection {
    min-width: 0;
    padding: 20px;
}

.metadata-selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.metadata-selection-heading > div {
    min-width: 0;
}

.metadata-selection-heading h3 {
    overflow-wrap: anywhere;
}

.metadata-primary-download {
    min-height: 48px;
    padding-inline: 22px;
}

.metadata-gps-notice {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 95, 109, 0.35);
    border-radius: 8px;
    background: rgba(255, 95, 109, 0.07);
    padding: 12px 14px;
}

.metadata-gps-notice strong {
    color: var(--danger);
}

.metadata-gps-notice span {
    color: var(--muted);
    font-size: 12px;
}

.metadata-comparison-grid,
.metadata-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metadata-comparison-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 16px;
}

.metadata-comparison-card.is-cleaned {
    border-color: rgba(24, 169, 153, 0.35);
}

.metadata-comparison-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metadata-comparison-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.metadata-comparison-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(48, 53, 66, 0.65);
    padding-bottom: 7px;
}

.metadata-comparison-card dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.metadata-comparison-card dt,
.metadata-comparison-card dd {
    margin: 0;
    font-size: 12px;
}

.metadata-comparison-card dt {
    color: var(--muted);
}

.metadata-comparison-card dd {
    text-align: right;
    font-weight: 700;
}

.metadata-comparison-pending {
    display: grid;
    min-height: 132px;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.metadata-preview-grid {
    margin-top: 12px;
}

.metadata-preview-pane {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.metadata-preview-pane figcaption {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 700;
}

.metadata-preview-stage {
    display: grid;
    height: clamp(220px, 30vw, 420px);
    place-items: center;
    overflow: hidden;
    background-color: #13161c;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.metadata-preview-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.metadata-preview-stage span {
    color: var(--muted);
    padding: 18px;
    font-size: 12px;
    text-align: center;
}

.metadata-verification {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.06);
    padding: 14px 16px;
}

.metadata-verification strong {
    color: var(--success);
}

.metadata-verification span,
.metadata-verification small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.metadata-verification small {
    font-size: 11px;
}

.metadata-details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.metadata-details summary {
    cursor: pointer;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 750;
}

.metadata-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.metadata-detail-group {
    padding: 14px 16px;
}

.metadata-detail-group + .metadata-detail-group {
    border-top: 1px solid var(--line);
}

.metadata-detail-group h4 {
    margin: 0 0 9px;
    color: var(--accent);
    font-size: 12px;
}

.metadata-detail-group dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.metadata-detail-group dl > div {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) minmax(0, 0.65fr);
    gap: 14px;
    align-items: baseline;
}

.metadata-detail-group dt,
.metadata-detail-group dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.metadata-detail-group dt {
    color: var(--muted);
}

.metadata-detail-group dt small {
    display: block;
    margin-top: 2px;
    color: var(--accent);
    font-size: 9px;
}

.metadata-detail-group dd {
    color: var(--text);
}

.metadata-details-empty {
    margin: 0;
    color: var(--muted);
    padding: 16px;
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .metadata-drop-zone,
    .metadata-file-card,
    .metadata-progress-track span {
        transition: none;
    }
}

@media (max-width: 1050px) {
    .metadata-cleaner-main-grid {
        grid-template-columns: 1fr;
    }

    .metadata-batch-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .metadata-file-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .metadata-file-thumbnail {
        width: 64px;
        height: 64px;
    }

    .metadata-file-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .metadata-selection-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .metadata-primary-download {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .metadata-drop-zone {
        min-height: 290px;
        padding: 22px 14px;
    }

    .metadata-batch-card,
    .metadata-files-section,
    .metadata-selection {
        padding: 14px;
    }

    .metadata-batch-actions,
    .metadata-comparison-grid,
    .metadata-preview-grid {
        grid-template-columns: 1fr;
    }

    .metadata-file-card {
        align-items: start;
        gap: 10px;
        padding: 10px;
    }

    .metadata-file-title-row {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .metadata-file-title-row h4 {
        flex: 0 1 auto;
        width: 100%;
    }

    .metadata-file-status {
        align-self: flex-start;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .metadata-file-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metadata-file-meta > div {
        display: grid;
        gap: 1px;
    }

    .metadata-file-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metadata-gps-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .metadata-preview-stage {
        height: 280px;
    }

    .metadata-detail-group dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 390px) {
    .metadata-file-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .metadata-file-thumbnail {
        width: 52px;
        height: 52px;
    }
}

.brand:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.28);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #101114;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.panel-heading p {
    color: var(--muted);
}

.app-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.app-search:hover {
    border-color: #454b59;
    background: var(--panel);
}

.app-search:focus-within {
    border-color: var(--accent);
    background: var(--panel);
    box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.18);
}

.app-search-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.app-search-icon::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.app-search-icon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 7px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: right center;
}

.app-search-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 0 46px 0 42px;
    font-size: 14px;
}

.app-search-input::placeholder {
    color: #858c9b;
    opacity: 1;
}

.app-search-input::-webkit-search-cancel-button {
    display: none;
}

.app-search-shortcut,
.app-search-clear {
    position: absolute;
    right: 9px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.app-search-shortcut {
    color: var(--muted);
    background: var(--panel-2);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
}

.app-search-clear {
    padding: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.app-search-clear:hover {
    border-color: #4c5361;
    background: var(--panel-2);
    color: var(--text);
}

.app-search-clear:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.app-search-clear[hidden],
.app-search-shortcut[hidden] {
    display: none;
}

.tool-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    width: 100%;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    padding: 0 14px;
}

.nav-item:hover,
.nav-item.active {
    border-color: var(--line);
    background: var(--panel-2);
    color: var(--text);
}

.workspace {
    min-width: 0;
    padding: 28px;
}

.app-home {
    width: min(100%, 1240px);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    padding: 22px 4px 36px;
    /* Keep the first paint stable; translating the whole catalog blurs its text. */
    animation: none;
}

.app-home[hidden] {
    display: none;
}

.app-home-header {
    display: flex;
    align-items: center;
    padding: 0;
}

.app-home-search {
    flex: 1 1 auto;
    width: 100%;
    height: 50px;
    margin: 0;
    border-color: var(--line);
    background: var(--panel);
}

.app-home-search .app-search-input {
    padding-left: 44px;
    font-size: 15px;
}

.app-home-category-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(24, 169, 153, 0.055), rgba(21, 24, 30, 0.92) 38%);
    padding: 9px 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.app-home-category-bar > span {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    color: #747c8d;
    padding: 2px 4px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-home-category-bar > span svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #79d8cc;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-home-category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: visible;
    padding: 0;
}

.app-home-category-filter {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(12, 15, 20, 0.72);
    color: var(--muted);
    padding: 0 8px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(47, 53, 65, 0.72);
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.app-home-category-filter:hover {
    border-color: #525967;
    background: var(--panel-2);
    color: var(--text);
}

.app-home-category-filter[aria-pressed="true"] {
    border-color: rgba(24, 169, 153, 0.48);
    background: rgba(24, 169, 153, 0.12);
    color: #dffefb;
    box-shadow: inset 0 0 0 1px rgba(24, 169, 153, 0.1), 0 0 18px rgba(24, 169, 153, 0.07);
}

.app-home-category-filter:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.26);
    outline-offset: 2px;
}

.app-home-category-filter span {
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-home-category-filter small {
    display: grid;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 999px;
    background: var(--panel-2);
    color: #8f97a7;
    padding: 0 4px;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.app-home-grid {
    display: grid;
    gap: 46px;
    margin-top: 26px;
}

.app-home-grid[hidden],
.app-home-card[hidden],
.app-home-category-section[hidden],
.app-home-empty[hidden] {
    display: none;
}

.app-home-category-section {
    display: grid;
    gap: 18px;
    scroll-margin-top: 20px;
}

.app-home-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-home-category-title-group {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.app-home-category-symbol {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(24, 169, 153, 0.32);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(24, 169, 153, 0.18), rgba(244, 211, 94, 0.08));
    color: #8ee8dc;
    font-size: 21px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    text-rendering: optimizeLegibility;
    white-space: nowrap;
}

.app-home-category-symbol svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#qr-download[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.app-home-category-heading h2 {
    margin: 0 0 4px;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.app-home-category-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.app-home-category-count {
    flex: 0 0 auto;
    color: #747c8d;
    font-size: 11px;
    font-weight: 700;
}

.app-home-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.app-home-card {
    display: grid;
    flex: 0 1 calc(33.333% - 8px);
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 120px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, #15181e, #11141a);
    color: var(--text);
    padding: 18px 20px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-home-card.has-icon {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
}

.app-home-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    color: var(--accent);
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    text-rendering: optimizeLegibility;
}

.app-home-card:hover {
    border-color: rgba(24, 169, 153, 0.45);
    background: linear-gradient(135deg, rgba(24, 169, 153, 0.09), rgba(255, 255, 255, 0.025));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.app-home-card:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.28);
    outline-offset: 2px;
}

.app-home-card-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
}

.app-home-card-copy {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.app-home-card-description {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.app-home-card-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-home-card:hover .app-home-card-arrow {
    border-color: rgba(24, 169, 153, 0.42);
    background: rgba(24, 169, 153, 0.12);
    color: var(--accent);
    transform: translateX(2px);
}

.app-home-empty {
    min-height: 240px;
    margin-top: 42px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding-top: 82px;
    text-align: center;
}

.app-home-empty strong,
.app-home-empty span {
    display: block;
}

.app-home-empty strong {
    margin-bottom: 7px;
    font-size: 16px;
}

.app-home-empty span {
    color: var(--muted);
    font-size: 13px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-heading > div {
    min-width: 0;
}

.panel-heading p {
    max-width: none;
    margin-bottom: 0;
    line-height: 1.5;
}

h1,
h2,
p {
    margin-top: 0;
}

h2 {
    margin-bottom: 6px;
    font-size: 26px;
}

.tool-panel {
    display: none;
    min-height: calc(100vh - 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 24px;
}

.tool-panel.active {
    display: block;
    animation: panel-enter 180ms ease-out;
}

@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-search,
    .app-home-category-filter,
    .app-home-card,
    .app-home-card-arrow {
        transition: none;
    }

    .app-home,
    .app-home-card:hover {
        animation: none;
        transform: none;
    }

    .tool-panel.active {
        animation: none;
    }
}

.primary-button,
.secondary-button,
.ghost-button {
    min-height: var(--control-height);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 700;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.primary-button {
    background: var(--accent);
    color: #06110f;
}

.secondary-button,
.ghost-button {
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
}

.secondary-button.active {
    border-color: rgba(24, 169, 153, 0.7);
    background: rgba(24, 169, 153, 0.18);
    color: var(--accent-strong);
}

.primary-button:hover:not(:disabled) {
    background: #20bbaa;
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
    border-color: var(--border-strong);
    background: #262a32;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.25);
    outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.crypto-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
    gap: 16px;
    align-items: start;
}

.crypto-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.crypto-side {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 16px;
}

.crypto-side strong {
    color: var(--text);
    font-size: 18px;
}

.crypto-side p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.crypto-side-list {
    display: grid;
    gap: 8px;
}

.crypto-side-list span {
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent-strong);
    padding: 0 12px;
    font-weight: 800;
}

.coin {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #202226;
    padding: 10px 18px 10px 8px;
    font-family: Mukta, Inter, sans-serif;
}

.coin.rising {
    background: linear-gradient(90deg, var(--panel-2), rgba(74, 222, 128, 0.12));
}

.coin.falling {
    background: linear-gradient(90deg, var(--panel-2), rgba(255, 95, 109, 0.13));
}

.coin img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.coin-name h3 {
    margin: 0;
    text-transform: uppercase;
    font-size: 24px;
}

.coin-name span,
.coin-change {
    color: var(--muted);
}

.coin-price {
    text-align: right;
}

.coin-price strong {
    display: block;
    font-size: 24px;
}

.rising .coin-price strong {
    color: var(--success);
}

.falling .coin-price strong {
    color: var(--danger);
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 28px;
}

.crypto-empty {
    display: grid;
    gap: 6px;
    min-height: 150px;
    align-content: center;
    background: var(--panel-2);
}

.crypto-empty strong {
    color: var(--text);
    font-size: 18px;
}

.crypto-empty.error {
    border-color: rgba(255, 95, 109, 0.55);
    color: #ffb1b8;
}

.crypto-empty.is-loading {
    position: relative;
    overflow: hidden;
}

.crypto-empty.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.07) 45%, transparent 80%);
    animation: weatherShimmer 1.1s linear infinite;
}

.qr-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(340px, 640px);
    gap: 24px;
    align-items: start;
}

.control-card,
.qr-preview-card,
.gradient-preview-card,
.gradient-controls,
.speech-form {
    display: grid;
    gap: 12px;
}

.control-card,
.qr-preview-card,
.gradient-preview-card,
.gradient-controls {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.field-group {
    display: grid;
    gap: 8px;
}

label {
    color: var(--muted);
    font-weight: 700;
}

.control-label {
    color: var(--muted);
    font-weight: 700;
}

.text-input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    outline: none;
    padding: 12px;
}

.text-input:focus,
select:focus,
textarea:focus {
    border-color: rgba(24, 169, 153, 0.72);
    box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.14);
}

textarea {
    resize: vertical;
}

.inline-controls,
.qr-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.qr-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-controls label:last-child {
    grid-column: 1 / -1;
}

.qr-controls label {
    display: grid;
    gap: 8px;
}

input[type="color"] {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.qr-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.qr-preview-top strong {
    color: var(--text);
}

.qr-output {
    display: grid;
    min-height: 420px;
    place-items: center;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    background: #f8fafc;
    padding: 20px;
}

.qr-output img,
.qr-output canvas {
    width: min(100%, 400px) !important;
    max-width: 100%;
    height: auto !important;
}

.qr-actions .primary-button,
.qr-actions .secondary-button {
    flex: 1;
}

.speech-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
    gap: 16px;
    align-items: start;
}

.speech-form,
.speech-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.speech-form textarea {
    min-height: 230px;
    line-height: 1.65;
}

.speech-actions {
    margin-top: 4px;
}

.speech-actions .primary-button,
.speech-actions .secondary-button {
    flex: 1;
}

.speech-side {
    display: grid;
    gap: 12px;
}

.speech-side strong {
    color: var(--text);
    font-size: 18px;
}

.speech-side p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.speech-state {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.speech-state span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.speech-state strong {
    color: var(--accent-strong);
}

.gradient-grid {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(360px, 1fr);
    gap: 24px;
    align-items: start;
}

.gradient-color-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gradient-color-row label {
    display: grid;
    gap: 8px;
}

.gradient-preview-card {
    min-height: 540px;
}

.gradient-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.gradient-preview-top strong {
    color: var(--text);
}

.gradient-preview {
    min-height: 460px;
    border-radius: 8px;
    background: linear-gradient(to bottom, #18a999, #f4d35e);
}

.gradient-controls {
    align-content: start;
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.direction-grid button {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
}

.direction-grid button.active {
    border-color: transparent;
    background: var(--accent-2);
    color: #111318;
}

.gradient-code-card {
    display: grid;
    gap: 10px;
}

.gradient-code-card textarea {
    min-height: 104px;
    font-family: "Cascadia Code", Consolas, monospace;
    line-height: 1.5;
}

.typing-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(260px, 340px);
    gap: 24px;
    align-items: start;
}

.typing-card,
.typing-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.typing-card {
    display: grid;
    gap: 16px;
}

.typing-side {
    display: grid;
    gap: 14px;
}

.typing-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.typing-status strong {
    color: var(--accent-2);
    font-size: 28px;
}

.typing-stats {
    display: grid;
    gap: 10px;
}

.typing-stats p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--muted);
    padding: 14px;
    font-weight: 700;
}

.typing-stats span {
    color: var(--text);
    font-weight: 800;
}

.quote-box {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    line-height: 1.9;
    padding: 18px;
    font-size: 18px;
}

#quote-input {
    min-height: 150px;
    line-height: 1.7;
    font-size: 17px;
}

.quote-char.success {
    color: var(--success);
}

.quote-char.fail {
    color: var(--danger);
}

.result-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    padding: 16px;
}

.result-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.password-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(280px, 380px);
    gap: 24px;
    align-items: start;
}

.password-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.password-output-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

#password-output {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 18px;
    letter-spacing: 0;
}

.password-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #111318;
}

.password-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--danger);
    transition: width 0.25s ease, background 0.25s ease;
}

.password-meter.weak span {
    width: 28%;
    background: var(--danger);
}

.password-meter.medium span {
    width: 58%;
    background: var(--accent-2);
}

.password-meter.strong span {
    width: 100%;
    background: var(--success);
}

.password-meta,
.range-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.password-meta {
    color: var(--muted);
    font-weight: 700;
}

.password-meta span:first-child,
.range-header strong {
    color: var(--text);
}

#password-length {
    width: 100%;
    accent-color: var(--accent);
}

.password-options {
    display: grid;
    gap: 10px;
}

.password-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111318;
    color: var(--text);
    padding: 0 12px;
    cursor: pointer;
}

.password-options input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.panel-actions {
    margin-top: 0;
}

#parolla-end[hidden] {
    display: none;
}

.numble-hard-control {
    position: relative;
    flex: 1 1 auto;
}

.numble-hard-control > button {
    width: 100%;
}

.numble-hard-help {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 9px;
    width: min(306px, calc(100vw - 40px));
    padding: 13px 14px;
    border: 1px solid rgba(24, 169, 153, 0.38);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.numble-hard-help > strong {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
}

.numble-hard-rule {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.numble-hard-rule i {
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.numble-hard-rule i.exact {
    background: #22a06b;
}

.numble-hard-rule i.present {
    background: #c6a82f;
}

.numble-hard-help::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 24px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(24, 169, 153, 0.38);
    border-left: 1px solid rgba(24, 169, 153, 0.38);
    background: var(--surface);
    transform: rotate(45deg);
}

.numble-hard-control:hover .numble-hard-help,
.numble-hard-control > button:focus-visible + .numble-hard-help {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .numble-hard-help {
        transition: none;
    }
}

.parolla-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.parolla-card,
.parolla-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.parolla-card {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.parolla-topline,
.parolla-final-grid,
.parolla-stats {
    display: grid;
    gap: 10px;
}

.parolla-topline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parolla-topline div,
.parolla-final-grid div,
.parolla-stats p,
.parolla-intro,
.parolla-final-lists > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.parolla-topline div,
.parolla-final-grid div {
    display: grid;
    gap: 5px;
    min-height: 68px;
    align-content: center;
    padding: 12px;
}

.parolla-topline span,
.parolla-final-grid span,
.parolla-final-lists span,
.parolla-stats p {
    color: var(--muted);
    font-weight: 800;
}

.parolla-topline strong,
.parolla-final-grid strong {
    color: var(--accent-2);
    font-size: 26px;
}

.parolla-intro {
    display: grid;
    gap: 10px;
    min-height: 260px;
    align-content: center;
    padding: 24px;
}

.parolla-intro strong {
    color: var(--accent-strong);
    font-size: clamp(34px, 7vw, 64px);
}

.parolla-intro p,
.parolla-side p,
.parolla-final-list-content {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.parolla-play {
    display: grid;
    gap: 16px;
}

.parolla-letter {
    display: grid;
    width: 100%;
    min-height: 108px;
    place-items: center;
    border: 1px solid rgba(24, 169, 153, 0.45);
    border-radius: 8px;
    background: radial-gradient(circle at 35% 28%, rgba(244, 211, 94, 0.1), transparent 36%), #11141a;
    color: var(--accent-strong);
    font-size: clamp(46px, 12vw, 82px);
    font-weight: 900;
}

.parolla-question {
    display: grid;
    place-items: center;
    min-height: 108px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 18px;
    text-align: center;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    line-height: 1.35;
}

.parolla-form {
    display: grid;
    gap: 12px;
}

.parolla-answer-actions {
    margin-top: 0;
}

.parolla-answer-actions button {
    flex: 1;
}

.parolla-feedback {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.parolla-feedback.success {
    color: var(--success);
}

.parolla-feedback.error {
    color: var(--danger);
}

.parolla-side {
    display: grid;
    gap: 12px;
}

.parolla-side strong {
    color: var(--text);
    font-size: 20px;
}

.parolla-stats p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 12px;
}

.parolla-stats span {
    color: var(--text);
}

.parolla-letter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 8px;
}

.parolla-letter-list span {
    display: grid;
    min-height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 900;
}

.parolla-letter-list span.active {
    border-color: rgba(24, 169, 153, 0.72);
    color: var(--accent-strong);
}

.parolla-letter-list span.correct {
    border-color: transparent;
    background: #22a06b;
    color: #06110f;
}

.parolla-letter-list span.wrong {
    border-color: transparent;
    background: #4c2430;
    color: #ffb1b8;
}

.parolla-letter-list span.passed {
    border-color: transparent;
    background: #343842;
    color: #cbd5e1;
}

.parolla-final {
    display: grid;
    gap: 16px;
}

.parolla-final[hidden],
.parolla-play[hidden],
.parolla-intro[hidden] {
    display: none;
}

.parolla-final-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.parolla-final-lists {
    display: grid;
    gap: 10px;
}

.parolla-final-lists > div {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.parolla-final-lists > div:nth-child(2) {
    border-color: rgba(255, 115, 128, 0.28);
    background: linear-gradient(180deg, rgba(255, 115, 128, 0.08), rgba(17, 20, 26, 0.58)), var(--surface);
}

.parolla-final-lists > div:nth-child(3) {
    border-color: rgba(244, 211, 94, 0.24);
    background: linear-gradient(180deg, rgba(244, 211, 94, 0.06), rgba(17, 20, 26, 0.58)), var(--surface);
}

.parolla-final-list-content {
    display: flex;
    min-height: 42px;
    align-items: center;
}

.parolla-final-chip-list {
    flex-wrap: wrap;
    gap: 8px;
}

.parolla-result-chip {
    display: inline-grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #262b34;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.parolla-result-chip.correct {
    border-color: rgba(125, 181, 142, 0.35);
    background: #7db58e;
    color: #101712;
}

.parolla-result-chip.wrong {
    border-color: rgba(229, 84, 95, 0.45);
    background: #e5545f;
    color: #fff7f8;
}

.parolla-result-chip.passed {
    border-color: rgba(203, 213, 225, 0.22);
    background: #303540;
    color: #cbd5e1;
}

.parolla-review-list {
    display: grid;
    gap: 8px;
}

.parolla-review-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    border: 1px solid rgba(255, 115, 128, 0.18);
    border-radius: 8px;
    background: rgba(14, 17, 23, 0.42);
    padding: 9px;
}

.parolla-review-row.passed {
    border-color: rgba(244, 211, 94, 0.16);
}

.parolla-review-letter {
    display: grid;
    min-height: 38px;
    place-items: center;
    border-radius: 999px;
    background: #e5545f;
    color: #fff7f8;
    font-weight: 900;
}

.parolla-review-row.passed .parolla-review-letter {
    background: #665b2c;
    color: #fff1ad;
}

.parolla-review-body {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.parolla-review-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.parolla-review-body p {
    display: grid;
    gap: 2px;
    margin: 0;
    min-width: 0;
}

.parolla-review-body span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.parolla-review-body strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.parolla-review-question {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.parolla-review-question strong {
    font-weight: 700;
}

.parolla-review-details .correct-answer strong {
    color: #9de2ad;
}

.parolla-final-empty {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.numble-grid {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) 320px;
    gap: 18px;
    align-items: start;
    width: min(100%, 880px);
}

.numble-card,
.numble-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.numble-card,
.numble-side {
    display: grid;
    gap: 14px;
}

.numble-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
    min-height: 36px;
}

.numble-status strong {
    color: var(--accent-2);
    font-size: 28px;
    line-height: 1;
}

.numble-board {
    display: grid;
    gap: 7px;
    justify-content: center;
    padding: 4px 0;
}

.numble-row {
    display: grid;
    grid-template-columns: repeat(5, 56px);
    gap: 7px;
}

.numble-cell {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0f1218;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    font-size: 28px;
    font-weight: 800;
}

.numble-cell.exact {
    border-color: transparent;
    background: #22a06b;
    color: #06110f;
}

.numble-cell.present {
    border-color: transparent;
    background: #f4d35e;
    color: #111318;
}

.numble-cell.absent {
    border-color: transparent;
    background: #343842;
    color: #cbd5e1;
}

.numble-keypad {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 7px;
    width: 100%;
}

.numble-key {
    min-height: 46px;
    border: 1px solid #3a4150;
    border-radius: 7px;
    background: linear-gradient(180deg, #171b23, #0d1016);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #07090d;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    grid-column: span 2;
}

.numble-key:hover {
    background: linear-gradient(180deg, #202632, #121722);
    border-color: #5a6476;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 0 #07090d;
}

.numble-key.action {
    grid-column: span 5;
    border-color: #2ecfc0;
    background: linear-gradient(180deg, #32d3c4, #16a295);
    color: #06110f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 #0c5f58;
    font-size: 16px;
    letter-spacing: 0;
}

.numble-key.action:hover {
    background: linear-gradient(180deg, #4ee0d3, #18ad9f);
    border-color: #66f1e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 0 #0c5f58;
}

.numble-rule,
.numble-stats {
    display: grid;
    gap: 10px;
}

.numble-rule p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.numble-stats p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    color: var(--muted);
    padding: 13px 14px;
    font-weight: 700;
}

.wordle-stats {
    display: grid;
    gap: 10px;
}

.wordle-stats p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    color: var(--muted);
    padding: 13px 14px;
    font-weight: 700;
}

.wordle-stats span {
    color: var(--text);
}

.wordle-result-card {
    background: #0f1218;
}

.numble-stats span {
    color: var(--text);
}

#numble-copy {
    width: 100%;
    margin-top: 12px;
}

.wordle-shell,
.github-grid {
    display: grid;
    grid-template-columns: minmax(390px, 1fr) 320px;
    gap: 18px;
    align-items: start;
    width: min(100%, 920px);
}

.wordle-card,
.wordle-side,
.github-search,
.github-result {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.wordle-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
    min-height: 36px;
    align-items: center;
}

.wordle-topline #score {
    color: var(--accent-2);
    font-size: 18px;
}

.wordle-game,
.wordle-board,
.wordle-side,
.github-search {
    display: grid;
    gap: 12px;
}

.wordle-board {
    justify-content: center;
    margin-top: 4px;
}

.wordle-board .row {
    display: grid;
    grid-template-columns: repeat(5, 56px);
    gap: 7px;
}

.wordle-board .element {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0f1218;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    font-size: 28px;
    font-weight: 800;
    transition: transform 0.35s ease;
}

.wordle-board .element.typed {
    border-color: #4b5563;
    transform: scale(1.03);
}

.wordle-board .element.flipped {
    transform: rotateX(180deg) scaleY(-1);
}

.wordle-board .element.correct,
.wordle-key.correct {
    border-color: transparent;
    background: #22a06b !important;
    color: #06110f;
}

.wordle-board .element.invalid,
.wordle-key.invalid {
    border-color: transparent;
    background: #f4d35e !important;
    color: #111318;
}

.wordle-board .element.wrong,
.wordle-key.wrong {
    border-color: transparent;
    background: #343842 !important;
    color: #cbd5e1;
}

#keyboard {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

#keyboard .keyboard-row {
    display: flex;
    justify-content: center;
    gap: 7px;
}

#keyboard .key {
    width: 42px;
    min-height: 48px;
    border: 1px solid #3a4150;
    border-radius: 7px;
    background: linear-gradient(180deg, #171b23, #0d1016);
    color: var(--text);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #07090d;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#keyboard .key:hover {
    background: linear-gradient(180deg, #202632, #121722);
    border-color: #5a6476;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 0 #07090d;
}

#keyboard .enter,
#keyboard .del {
    width: 68px;
    border-color: #2ecfc0;
    background: linear-gradient(180deg, #32d3c4, #16a295);
    color: #06110f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 #0c5f58;
    font-size: 15px;
}

.wordle-side p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.wordle-finder-layout {
    display: grid;
    grid-template-columns: minmax(390px, 520px) minmax(320px, 1fr);
    gap: 18px;
    align-items: start;
    width: min(100%, 1120px);
}

.wordle-finder-card,
.wordle-finder-results {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.wordle-finder-card {
    display: grid;
    gap: 14px;
}

.wordle-finder-topline,
.wordle-finder-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.wordle-finder-topline strong {
    color: var(--accent-2);
    font-size: 18px;
}

.wordle-finder-results-head strong {
    color: var(--text);
}

.wordle-finder-results-head span {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.wordle-finder-grid {
    display: grid;
    gap: 10px;
}

.wordle-finder-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 8px;
    align-items: end;
}

.wordle-finder-row.is-draft {
    border: 1px solid rgba(24, 169, 153, 0.28);
    border-radius: 8px;
    background: rgba(24, 169, 153, 0.06);
    padding: 10px;
}

.wordle-finder-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.wordle-finder-cell input {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0f1218;
    color: var(--text);
    outline: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.wordle-finder-letter {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0f1218;
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
}

.wordle-finder-cell input:focus {
    border-color: #5a6476;
}

.wordle-finder-cell button {
    min-height: 34px;
    border: 1px solid #3a4150;
    border-radius: 7px;
    background: linear-gradient(180deg, #171b23, #0d1016);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.wordle-finder-cell.correct input,
.wordle-finder-cell.correct .wordle-finder-letter,
.wordle-finder-cell.correct button {
    border-color: transparent;
    background: #22a06b;
    color: #06110f;
}

.wordle-finder-cell.present input,
.wordle-finder-cell.present .wordle-finder-letter,
.wordle-finder-cell.present button {
    border-color: transparent;
    background: #f4d35e;
    color: #111318;
}

.wordle-finder-cell.wrong input,
.wordle-finder-cell.wrong .wordle-finder-letter,
.wordle-finder-cell.wrong button {
    border-color: transparent;
    background: #343842;
    color: #cbd5e1;
}

.wordle-finder-actions {
    margin-top: 0;
}

.wordle-finder-actions button {
    width: 100%;
}

.wordle-finder-key {
    display: grid;
    gap: 8px;
}

.wordle-finder-key span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    color: var(--muted);
    padding: 0 10px;
    font-weight: 700;
}

.wordle-finder-results {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.wordle-finder-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.wordle-finder-word {
    display: grid;
    min-height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    color: var(--accent-strong);
    font-weight: 800;
}

.wordle-finder-empty {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    min-height: 160px;
    align-content: center;
}

.wordle-finder-empty strong {
    color: var(--text);
}

.feedback-legend {
    display: grid;
    gap: 8px;
}

.feedback-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    color: var(--muted);
    padding: 0 10px;
    font-weight: 700;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-dot.exact {
    background: #22a06b;
}

.legend-dot.present {
    background: #f4d35e;
}

.legend-dot.absent {
    background: #343842;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--success);
}

.game-2048-layout {
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(260px, 340px);
    gap: 18px;
    align-items: start;
}

.game-2048-card,
.game-2048-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.game-2048-card {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.game-2048-topline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.game-2048-topline div,
.game-2048-state,
.game-2048-stats p {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.game-2048-topline div {
    display: grid;
    gap: 5px;
    min-height: 68px;
    align-content: center;
    padding: 12px;
}

.game-2048-topline span,
.game-2048-stats p {
    color: var(--muted);
    font-weight: 800;
}

.game-2048-topline strong {
    color: var(--accent-2);
    font-size: 26px;
}

.game-2048-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 520px);
    justify-self: center;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #11141a;
    padding: 10px;
    outline: none;
    touch-action: none;
    user-select: none;
}

.game-2048-board:focus {
    border-color: rgba(24, 169, 153, 0.62);
    box-shadow: 0 0 0 4px rgba(24, 169, 153, 0.12);
}

.game-2048-cell {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: #222733;
    color: var(--text);
    font-size: clamp(22px, 6vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.game-2048-cell.tile-empty {
    background: #252933;
}

.game-2048-cell.tile-2 {
    background: #eee4da;
    color: #776e65;
}

.game-2048-cell.tile-4 {
    background: #ede0c8;
    color: #776e65;
}

.game-2048-cell.tile-8 {
    background: #f2b179;
    color: #f9f6f2;
}

.game-2048-cell.tile-16 {
    background: #f59563;
    color: #f9f6f2;
}

.game-2048-cell.tile-32 {
    background: #f67c5f;
    color: #f9f6f2;
}

.game-2048-cell.tile-64 {
    background: #f65e3b;
    color: #f9f6f2;
}

.game-2048-cell.tile-128 {
    background: #edcf72;
    color: #f9f6f2;
    font-size: clamp(20px, 5vw, 36px);
}

.game-2048-cell.tile-256 {
    background: #edcc61;
    color: #f9f6f2;
    font-size: clamp(20px, 5vw, 36px);
}

.game-2048-cell.tile-512 {
    background: #edc850;
    color: #f9f6f2;
    font-size: clamp(20px, 5vw, 36px);
}

.game-2048-cell.tile-1024 {
    background: #edc53f;
    color: #f9f6f2;
    font-size: clamp(17px, 4.4vw, 32px);
}

.game-2048-cell.tile-2048 {
    background: #edc22e;
    color: #f9f6f2;
    font-size: clamp(17px, 4.4vw, 32px);
}

.game-2048-side {
    display: grid;
    gap: 12px;
}

.game-2048-state {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.game-2048-state strong {
    color: var(--accent-strong);
    font-size: 22px;
}

.game-2048-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.game-2048-stats {
    display: grid;
    gap: 8px;
}

.game-2048-stats p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 12px;
}

.game-2048-stats span {
    color: var(--text);
}

.valorant-crosshair-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 18px;
    align-items: start;
}

.valorant-crosshair-main,
.valorant-crosshair-side,
.valorant-crosshair-preview-card,
.valorant-crosshair-code-card {
    min-width: 0;
}

.valorant-crosshair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.valorant-crosshair-card,
.valorant-crosshair-preview-card,
.valorant-crosshair-code-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
}

.valorant-crosshair-card {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.valorant-crosshair-card-preview {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(24, 169, 153, 0.12), transparent 56%),
        #111318;
    background-size: 28px 28px, 28px 28px, auto, auto;
    cursor: pointer;
}

.valorant-crosshair-card-preview img,
.valorant-crosshair-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.valorant-crosshair-card-body {
    display: grid;
    gap: 8px;
}

.valorant-crosshair-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.valorant-crosshair-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.valorant-crosshair-card-copy {
    width: 100%;
}

.valorant-crosshair-side {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 24px;
}

.valorant-crosshair-preview-card,
.valorant-crosshair-code-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.valorant-crosshair-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.valorant-crosshair-preview-head span {
    color: var(--muted);
    font-weight: 700;
}

.valorant-crosshair-preview-head strong {
    color: var(--text);
    text-align: right;
}

.valorant-crosshair-preview {
    display: grid;
    place-items: center;
    min-height: 260px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 50% 42%, rgba(24, 169, 153, 0.18), transparent 34%),
        linear-gradient(180deg, #18202a, #101318);
    background-size: 34px 34px, 34px 34px, auto, auto;
}

.valorant-crosshair-preview-empty,
.valorant-crosshair-feedback {
    color: var(--muted);
}

.valorant-crosshair-code-card textarea {
    min-height: 130px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.valorant-crosshair-actions {
    margin-top: 0;
}

.valorant-crosshair-feedback {
    min-height: 20px;
    margin: 0;
    opacity: 0;
    transition: opacity 160ms ease;
    font-weight: 700;
}

.valorant-crosshair-feedback.is-visible {
    opacity: 1;
    color: var(--success);
}

.valorant-crosshair-render {
    position: relative;
    width: 170px;
    height: 170px;
}

.vc-line,
.vc-dot,
.vc-axis {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
}

.vc-axis {
    background: rgba(255, 255, 255, 0.08);
}

.vc-axis-x {
    width: 100%;
    height: 1px;
    transform: translate(-50%, -50%);
}

.vc-axis-y {
    width: 1px;
    height: 100%;
    transform: translate(-50%, -50%);
}

.vc-line {
    background: var(--vc-color);
    box-shadow: 0 0 10px var(--vc-color);
}

.vc-inner {
    opacity: var(--vc-inner-opacity);
}

.vc-outer {
    opacity: var(--vc-outer-opacity);
}

.vc-inner.vc-top,
.vc-inner.vc-bottom {
    width: var(--vc-inner-thickness);
    height: var(--vc-inner-vertical);
}

.vc-inner.vc-left,
.vc-inner.vc-right {
    width: var(--vc-inner-length);
    height: var(--vc-inner-thickness);
}

.vc-outer.vc-top,
.vc-outer.vc-bottom {
    width: var(--vc-outer-thickness);
    height: var(--vc-outer-vertical);
}

.vc-outer.vc-left,
.vc-outer.vc-right {
    width: var(--vc-outer-length);
    height: var(--vc-outer-thickness);
}

.vc-top {
    transform: translate(-50%, calc(-100% - var(--vc-inner-offset)));
}

.vc-right {
    transform: translate(var(--vc-inner-offset), -50%);
}

.vc-bottom {
    transform: translate(-50%, var(--vc-inner-offset));
}

.vc-left {
    transform: translate(calc(-100% - var(--vc-inner-offset)), -50%);
}

.vc-outer.vc-top {
    transform: translate(-50%, calc(-100% - var(--vc-outer-offset)));
}

.vc-outer.vc-right {
    transform: translate(var(--vc-outer-offset), -50%);
}

.vc-outer.vc-bottom {
    transform: translate(-50%, var(--vc-outer-offset));
}

.vc-outer.vc-left {
    transform: translate(calc(-100% - var(--vc-outer-offset)), -50%);
}

.vc-dot {
    width: var(--vc-dot-size);
    height: var(--vc-dot-size);
    border-radius: 2px;
    background: var(--vc-color);
    box-shadow: 0 0 10px var(--vc-color);
    transform: translate(-50%, -50%);
}

.github-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    width: min(100%, 1120px);
}

/* Boş durum kartının ek iç boşluğu vardır; yalnızca ilk görünümde iki sütunu eşitle. */
.github-grid:has(.github-result.empty-state) {
    align-items: stretch;
}

.github-command {
    display: grid;
    gap: 12px;
}

.github-command,
.github-result {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c2028;
    padding: 16px;
}

.github-search {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.github-search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.github-search p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.github-hints {
    display: grid;
    gap: 8px;
}

.github-hints div {
    display: grid;
    gap: 3px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    padding: 10px 12px;
}

.github-hints strong {
    color: var(--text);
    font-size: 14px;
}

.github-hints span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.github-result {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.github-result.empty-state {
    position: relative;
    min-height: 260px;
    place-items: center;
    align-content: center;
    color: var(--muted);
    line-height: 1.55;
    padding: clamp(28px, 5vw, 64px);
    text-align: center;
}

.github-result.empty-state strong {
    color: var(--text);
}

.github-empty-content {
    display: grid;
    width: min(100%, 560px);
    justify-items: center;
    gap: 18px;
}

.github-empty-mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(24, 169, 153, 0.42);
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 5px rgba(24, 169, 153, 0.06);
}

.github-empty-mark svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.github-empty-copy {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.github-empty-copy strong {
    font-size: 20px;
}

.github-empty-copy span {
    max-width: 520px;
}

.github-empty-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.github-empty-tags span {
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #0f1218;
    color: var(--muted);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
}

.github-result.empty-state.is-error .github-empty-mark {
    border-color: rgba(255, 82, 106, 0.48);
    color: var(--danger);
    box-shadow: inset 0 0 0 5px rgba(255, 82, 106, 0.06);
}

.github-profile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.github-avatar {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #0f1218;
}

.github-profile h3 {
    margin: 0 0 4px;
    font-size: 22px;
}

.github-profile a,
.github-meta a {
    color: var(--accent);
    text-decoration: none;
}

.github-bio {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.github-stats div,
.github-meta p,
.github-repo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1218;
    padding: 12px;
}

.github-stats span,
.github-meta span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.github-stats strong,
.github-meta strong {
    display: block;
    margin-top: 4px;
}

.github-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.github-meta p {
    margin: 0;
    overflow-wrap: anywhere;
}

.github-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.github-section-title strong {
    font-size: 15px;
}

.github-section-title a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.github-repos {
    display: grid;
    gap: 8px;
}

.github-repo-card {
    display: grid;
    gap: 8px;
}

.github-repo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.github-repo-heading a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.github-repo-badge {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
}

.github-repo-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.github-repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.github-repo-card.is-error {
    border-color: rgba(255, 82, 106, 0.4);
}

.github-repo-card.is-error strong {
    color: var(--danger);
}

.github-repo-card.is-empty strong {
    color: var(--text);
}

.weather-layout {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(240px, 1fr);
    gap: 16px;
    align-items: start;
}

.weather-app,
.weather-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.weather-app {
    position: relative;
    overflow: hidden;
    transition: min-height 0.35s ease;
}

.weather-app.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 80%);
    animation: weatherShimmer 1.1s linear infinite;
}

.weather-app .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.weather-app .eyebrow {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.weather-app h3 {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.weather-app button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.weather-app .location-button,
.weather-app .search-box button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.weather-app .location-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    background: rgba(244, 211, 94, 0.16);
    color: #fff4b8;
    box-shadow: inset 0 0 0 1px rgba(244, 211, 94, 0.28);
}

.weather-app .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.weather-app .search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.weather-app .search-box input::placeholder {
    color: var(--muted);
}

.weather-app .search-box button {
    flex: 0 0 58px;
    min-height: 44px;
    background: var(--accent);
    color: #06110f;
}

.weather-app .status-message {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.weather-app .status-message:empty {
    display: none;
}

.weather-app .status-message.error {
    color: #ff9aa3;
}

.weather-app .not-found,
.weather-app .weather-box {
    display: none;
    text-align: center;
}

.weather-app .not-found,
.weather-app .weather-box,
.weather-app .weather-details {
    opacity: 0;
    transform: scale(0.96);
}

.weather-app .not-found {
    margin-top: 24px;
}

.weather-app .not-found img,
.weather-app .weather-box img {
    width: min(230px, 72%);
    margin-top: 18px;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.weather-app .not-found p {
    margin-top: 12px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.weather-app .location-name {
    margin-bottom: 0;
    color: var(--accent-strong);
    font-size: 17px;
    font-weight: 900;
}

.weather-app .temperature {
    position: relative;
    margin: 8px 0 0;
    color: var(--text);
    font-size: 76px;
    line-height: 1;
    font-weight: 900;
}

.weather-app .temperature span {
    position: absolute;
    margin-left: 4px;
    font-size: 24px;
}

.weather-app .description {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 21px;
    font-weight: 800;
    text-transform: capitalize;
}

.weather-app .weather-details {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.weather-app .weather-details > div {
    display: flex;
    min-width: 0;
    min-height: 84px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px 8px;
    text-align: center;
}

.weather-app .detail-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--accent-2);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.weather-app .weather-details span {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
}

.weather-app .weather-details p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.weather-app .fadeIn {
    animation: weatherFadeIn 0.45s forwards;
}

.weather-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.weather-side-head {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.weather-side-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.weather-side-head strong {
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.weather-flow {
    display: grid;
    gap: 10px;
}

.weather-flow div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.weather-flow span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 211, 197, 0.14);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.weather-flow p,
.weather-source {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

.weather-source {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 211, 94, 0.08);
    padding: 12px;
    color: #fff4b8;
    font-weight: 800;
}

.translate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.translate-panel,
.translate-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.translate-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.translate-panel .field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.translate-panel label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.translate-select-wrap {
    position: relative;
}

.translate-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.translate-panel select,
.translate-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.translate-panel select {
    min-height: 52px;
    padding: 0 44px 0 14px;
    appearance: none;
    cursor: pointer;
}

.translate-text-field {
    margin-top: 16px;
}

.translate-panel textarea {
    min-height: 230px;
    resize: vertical;
    padding: 14px;
    line-height: 1.65;
}

.translate-panel textarea::placeholder {
    color: var(--muted);
}

.translate-panel select:focus,
.translate-panel textarea:focus {
    border-color: rgba(37, 211, 197, 0.72);
    box-shadow: 0 0 0 4px rgba(37, 211, 197, 0.13);
}

.translate-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.translate-actions .primary-button {
    min-width: 150px;
}

.translate-convert-icon {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

#translate-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

#translate-status.error {
    color: #ff9aa3;
}

.translate-side {
    display: grid;
    gap: 12px;
}

.translate-side strong {
    color: var(--text);
    font-size: 18px;
}

.translate-side p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.translate-side-list {
    display: grid;
    gap: 8px;
}

.translate-side-list span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent-strong);
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 900;
}

@keyframes weatherFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes weatherShimmer {
    to {
        transform: translateX(100%);
    }
}

.chess-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.chess-card,
.chess-side {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.chess-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    min-width: 0;
}

.chess-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: var(--muted);
    font-weight: 700;
}

.chess-topline strong {
    color: var(--accent-strong);
    font-size: 18px;
}

.chess-board-shell {
    --diameter-board: min(66vh, 560px, 100%);
    --transition-duration: 180ms;
    --color-board-dark: #5f6f51;
    --color-board-light: #c1b69e;
    --color-board-line: rgba(11, 18, 32, 0.35);
    --color-highlight-active: #f8d65b;
    --color-highlight-move: rgba(38, 166, 154, 0.46);
    --color-highlight-capture: rgba(239, 68, 68, 0.58);
    --stroke: rgba(15, 23, 42, 0.34);
    position: relative;
    width: var(--diameter-board);
    max-width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-board-light);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.chess-board-shell .board,
.chess-board-shell .pieces {
    position: absolute;
    inset: 0;
}

.chess-board-shell .pieces {
    pointer-events: none;
}

.chess-board-shell .board {
    display: flex;
    flex-direction: column-reverse;
}

.chess-board-shell.perspective-black .board {
    flex-direction: column;
}

.chess-board-shell .row {
    display: flex;
    flex: 1;
}

.chess-board-shell.perspective-black .row {
    flex-direction: row-reverse;
}

.chess-board-shell .tile {
    position: relative;
    width: 12.5%;
    border: 0;
    border-radius: 0;
    background: var(--color-board-light);
    cursor: pointer;
    padding: 0;
}

.chess-board-shell .row:nth-child(odd) .tile:nth-child(even),
.chess-board-shell .row:nth-child(even) .tile:nth-child(odd) {
    background: var(--color-board-dark);
}

.chess-board-shell .tile::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
}

.chess-board-shell .tile.highlight-active::after {
    inset: 10%;
    border: 3px solid var(--color-highlight-active);
    opacity: 1;
}

.chess-board-shell .tile.highlight-move::after {
    background: var(--color-highlight-move);
    opacity: 1;
}

.chess-board-shell .tile.highlight-capture::after {
    inset: 12%;
    border: 4px solid var(--color-highlight-capture);
    opacity: 1;
}

.chess-board-shell .tile .move,
.chess-board-shell .tile .moves,
.chess-board-shell .tile .captures {
    display: none;
}

.chess-board-shell .piece {
    --pos-col: 0;
    --pos-row: 0;
    --scale: 1;
    --transition-delay: 0ms;
    position: absolute;
    left: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 12.5%;
    height: 12.5%;
    color: #f8fafc;
    pointer-events: none;
    transform: translate(calc(var(--pos-col) * 100%), calc(var(--pos-row) * -100%)) scale(var(--scale));
    transition: transform var(--transition-duration) ease var(--transition-delay), opacity var(--transition-duration) ease;
    z-index: 2;
}

.chess-board-shell.perspective-black .piece {
    transform: translate(calc((7 - var(--pos-col)) * 100%), calc((var(--pos-row) - 7) * 100%)) scale(var(--scale));
}

.chess-board-shell .chess-symbol {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.chess-board-shell .chess-symbol img {
    display: block;
    width: 94%;
    height: 94%;
    object-fit: contain;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.28));
    user-select: none;
    -webkit-user-drag: none;
}

.chess-board-shell .piece.highlight-active .chess-symbol {
    filter: drop-shadow(0 0 10px rgba(248, 214, 91, 0.78));
}

.chess-board-shell .piece.highlight-capture .chess-symbol {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.chess-side {
    display: grid;
    gap: 12px;
}

.chess-side > strong {
    font-size: 16px;
}

.chess-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.chess-level {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.chess-level.active {
    border-color: rgba(37, 211, 197, 0.7);
    background: rgba(37, 211, 197, 0.18);
    color: #dffefb;
}

.chess-stats {
    display: grid;
    gap: 8px;
}

.chess-stats p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.chess-stats span {
    color: var(--text);
}

.coach-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.coach-card,
.coach-side {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.coach-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    min-width: 0;
}

.coach-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: var(--muted);
    font-weight: 800;
}

.coach-topline strong {
    color: var(--accent-strong);
    font-size: 20px;
}

.coach-board {
    display: block;
    container-type: inline-size;
    width: min(100%, 560px, 66vh);
    aspect-ratio: 1;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #c1b69e;
    box-shadow:
        inset 0 0 0 1px var(--line),
        0 18px 42px rgba(0, 0, 0, 0.24);
}

.coach-board .board-b72b1 {
    border: 0;
    width: 100% !important;
    height: 100% !important;
}

.coach-board .white-1e1d7 {
    background: #c1b69e;
}

.coach-board .black-3c85d {
    background: #5f6f51;
}

.coach-board .square-55d63 {
    position: relative;
    width: 12.5% !important;
    height: 12.5cqw !important;
}

.coach-board img {
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.28));
}

.coach-board .highlight-from {
    box-shadow: inset 0 0 0 4px rgba(244, 211, 94, 0.92);
}

.coach-board .highlight-to {
    box-shadow: inset 0 0 0 4px rgba(37, 211, 197, 0.72);
}

.coach-side {
    display: grid;
    gap: 12px;
}

.coach-best {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(37, 211, 197, 0.35);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 211, 197, 0.14), rgba(244, 211, 94, 0.06));
    padding: 14px;
}

.coach-best span,
.coach-line span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.coach-best strong {
    font-size: 30px;
    color: var(--accent-strong);
}

.coach-best p,
.coach-line p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.coach-actions {
    margin-top: 0;
}

.coach-actions button {
    flex: 1;
}

.coach-stats {
    display: grid;
    gap: 8px;
}

.coach-stats p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.coach-stats span {
    color: var(--text);
}

.coach-lines {
    display: grid;
    gap: 8px;
}

.coach-line {
    display: grid;
    grid-template-columns: 26px 58px 1fr;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
}

.coach-line strong {
    color: var(--text);
    font-size: 17px;
}

.xox-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.xox-card,
.xox-side {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.xox-card {
    display: grid;
    gap: 16px;
    justify-items: center;
    min-width: 0;
}

.xox-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    color: var(--muted);
    font-weight: 800;
}

.xox-topline strong {
    color: var(--accent-strong);
    font-size: 18px;
}

.xox-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: min(100%, 430px);
    aspect-ratio: 1;
}

.xox-cell {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #11141a;
    color: var(--text);
    cursor: pointer;
    font-size: clamp(40px, 9vw, 72px);
    font-weight: 900;
    line-height: 1;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, opacity 180ms ease;
    overflow: hidden;
}

.xox-cell span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    transform: translateY(-0.03em);
}

.xox-cell:not(:disabled):hover {
    border-color: rgba(37, 211, 197, 0.72);
    background: #172026;
    transform: translateY(-1px);
}

.xox-cell:disabled {
    cursor: default;
}

.xox-cell.mark-x {
    color: #25d3c5;
    text-shadow: 0 8px 18px rgba(37, 211, 197, 0.25);
}

.xox-cell.mark-o {
    color: #f4d35e;
    text-shadow: 0 8px 18px rgba(244, 211, 94, 0.24);
}

.xox-cell.is-expiring {
    opacity: 0.48;
    border-style: dashed;
}

.xox-cell.is-expiring span {
    animation: xox-expiring-pulse 900ms ease-in-out infinite alternate;
}

@keyframes xox-expiring-pulse {
    from {
        opacity: 0.48;
        transform: translateY(-0.03em) scale(0.96);
    }

    to {
        opacity: 0.84;
        transform: translateY(-0.03em) scale(1);
    }
}

.xox-side {
    display: grid;
    gap: 12px;
}

.xox-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.xox-level {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.xox-level.active {
    border-color: rgba(37, 211, 197, 0.7);
    background: rgba(37, 211, 197, 0.18);
    color: #dffefb;
}

.xox-stats {
    display: grid;
    gap: 8px;
}

.xox-stats p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.xox-stats span {
    color: var(--text);
}

.sudoku-panel-heading {
    align-items: flex-start;
}

.sudoku-live-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
}

.sudoku-live-stats > div {
    display: grid;
    gap: 3px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 9px 11px;
}

.sudoku-live-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sudoku-live-stats strong {
    color: var(--text);
    font-size: 15px;
    white-space: nowrap;
}

.sudoku-layout {
    display: grid;
    grid-template-columns: minmax(0, 620px) 300px;
    gap: 16px;
    align-items: start;
    width: min(100%, 936px);
    margin-inline: auto;
}

.sudoku-game-card,
.sudoku-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.sudoku-game-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
}

.sudoku-game-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
}

.sudoku-game-topline span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.sudoku-game-topline strong {
    color: var(--accent-strong);
    font-size: 16px;
}

.sudoku-board-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

.sudoku-board {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
    width: min(100%, 580px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid var(--muted);
    border-radius: 8px;
    background: var(--line);
}

.sudoku-cell {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: var(--surface);
    color: var(--accent-strong);
    cursor: pointer;
    padding: 0;
    font-size: clamp(17px, 7cqi, 32px);
    font-weight: 700;
    line-height: 1;
    transition: background 130ms ease, color 130ms ease, box-shadow 130ms ease;
}

.sudoku-cell:nth-child(9n) {
    border-right: 0;
}

.sudoku-cell:nth-child(n+73) {
    border-bottom: 0;
}

.sudoku-cell:nth-child(9n+3),
.sudoku-cell:nth-child(9n+6) {
    border-right: 2px solid var(--muted);
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid var(--muted);
}

.sudoku-cell:hover {
    background: var(--panel-2);
}

.sudoku-cell:focus-visible {
    z-index: 3;
    box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--surface);
}

.sudoku-cell.is-given {
    background: var(--panel-2);
    color: var(--text);
    font-weight: 900;
}

.sudoku-cell.is-peer {
    background: rgba(24, 169, 153, 0.09);
}

.sudoku-cell.is-given.is-peer {
    background: rgba(24, 169, 153, 0.13);
}

.sudoku-cell.is-match {
    background: rgba(244, 211, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(244, 211, 94, 0.36);
}

.sudoku-cell.is-selected {
    z-index: 2;
    background: rgba(24, 169, 153, 0.24);
    box-shadow: inset 0 0 0 3px var(--accent);
}

.sudoku-cell.is-hint {
    color: var(--accent-2);
}

.sudoku-cell.is-error {
    color: var(--danger);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.sudoku-cell.is-error::after {
    content: "!";
    position: absolute;
    top: 4px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    border: 1px solid var(--danger);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
}

.sudoku-cell.is-unit-complete {
    animation: sudoku-complete-pulse 420ms ease-out;
}

.sudoku-cell-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: clamp(7px, 2.7cqi, 12px);
    font-weight: 700;
    line-height: 1;
}

.sudoku-cell-notes span {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}

.sudoku-pause-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    border: 2px solid var(--muted);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
    z-index: 5;
}

.sudoku-pause-cover[hidden],
.sudoku-modal[hidden] {
    display: none;
}

.sudoku-pause-cover strong {
    font-size: 20px;
}

.sudoku-side {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.sudoku-control-section {
    display: grid;
    gap: 10px;
}

.sudoku-control-section > strong {
    font-size: 14px;
}

.sudoku-difficulties {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sudoku-difficulties button,
.sudoku-number-pad button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.sudoku-difficulties button {
    min-height: 42px;
    padding: 0 8px;
}

.sudoku-difficulties button.active {
    border-color: rgba(24, 169, 153, 0.7);
    background: rgba(24, 169, 153, 0.18);
    color: var(--accent-strong);
}

.sudoku-number-pad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sudoku-number-pad button {
    min-height: 52px;
    color: var(--accent-strong);
    font-size: 20px;
}

.sudoku-number-pad button:hover:not(:disabled),
.sudoku-difficulties button:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--panel-2);
}

.sudoku-number-pad button.is-complete {
    border-style: dashed;
    color: var(--muted);
}

.sudoku-number-pad button:disabled,
.sudoku-difficulties button:disabled,
.sudoku-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.sudoku-difficulties button:focus-visible,
.sudoku-number-pad button:focus-visible,
.sudoku-actions button:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.48);
    outline-offset: 2px;
}

.sudoku-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sudoku-actions button {
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding-inline: 10px;
}

.sudoku-action-mark {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
}

.sudoku-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 50;
    background: rgba(8, 10, 14, 0.78);
    padding: 16px;
}

.sudoku-modal-card {
    display: grid;
    justify-items: center;
    width: min(100%, 430px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
    padding: 24px;
    text-align: center;
    animation: sudoku-modal-enter 180ms ease-out;
}

.sudoku-modal-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.sudoku-modal-card > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.sudoku-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 18px;
}

.sudoku-result-summary[hidden] {
    display: none;
}

.sudoku-result-summary > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
}

.sudoku-result-summary span {
    color: var(--muted);
    font-size: 12px;
}

.sudoku-result-summary strong {
    color: var(--accent-strong);
}

.sudoku-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
}

@keyframes sudoku-complete-pulse {
    0%, 100% {
        box-shadow: none;
    }

    45% {
        box-shadow: inset 0 0 0 2px var(--success);
    }
}

@keyframes sudoku-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sudoku-cell,
    .sudoku-modal-card {
        animation: none;
        transition: none;
    }
}

/* Shared tool workspace sizing
   The tool shell owns the available desktop area. Data/form workspaces use
   that area directly; board games keep a natural primary column and let their
   control panel consume the remaining width. */
.crypto-layout,
.qr-grid,
.speech-layout,
.gradient-grid,
.typing-grid,
.password-grid,
.wordle-finder-layout,
.github-grid,
.weather-layout,
.translate-layout,
.valorant-crosshair-layout {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.crypto-layout {
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.85fr);
    align-items: stretch;
}

.crypto-side {
    height: 100%;
    align-content: start;
}

.qr-grid {
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
}

.speech-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.72fr);
}

.speech-form textarea {
    min-height: clamp(280px, 38vh, 480px);
}

.gradient-grid {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
}

.typing-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.68fr);
}

.password-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
}

.translate-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.translate-panel textarea {
    min-height: clamp(260px, 36vh, 440px);
}

.weather-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
}

.github-grid {
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
}

.github-result.empty-state {
    min-height: clamp(300px, 42vh, 560px);
}

.wordle-finder-layout {
    grid-template-columns: minmax(420px, 540px) minmax(0, 1fr);
}

.valorant-crosshair-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
}

.converter-category-tabs {
    margin: 0 0 20px;
}

.game-2048-layout,
.parolla-layout,
.numble-grid,
.wordle-shell,
.chess-layout,
.coach-layout,
.xox-layout,
.sudoku-layout {
    width: 100%;
    margin-inline: 0;
    align-items: stretch;
}

.game-2048-layout {
    grid-template-columns: minmax(520px, 620px) minmax(260px, 1fr);
}

.parolla-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.7fr);
}

.numble-grid {
    grid-template-columns: minmax(480px, 620px) minmax(280px, 1fr);
}

.wordle-shell {
    grid-template-columns: minmax(520px, 660px) minmax(280px, 1fr);
}

.chess-layout,
.coach-layout,
.sudoku-layout {
    grid-template-columns: minmax(520px, 620px) minmax(280px, 1fr);
}

.xox-layout {
    grid-template-columns: minmax(460px, 560px) minmax(260px, 1fr);
}

.game-2048-side,
.parolla-side,
.numble-side,
.wordle-side,
.chess-side,
.coach-side,
.xox-side,
.sudoku-side {
    height: 100%;
    align-content: start;
}

/* Previous centered-workspace selectors intentionally stay listed here so
   future tool additions do not silently reintroduce narrow desktop wrappers. */
.game-2048-layout,
.crypto-layout,
.qr-grid,
.speech-layout,
.gradient-grid,
.typing-grid,
.password-grid,
.parolla-layout,
.numble-grid,
.wordle-shell,
.wordle-finder-layout,
.github-grid,
.weather-layout,
.translate-layout,
.chess-layout,
.coach-layout,
.xox-layout,
.valorant-crosshair-layout {
    min-width: 0;
}

/* A desktop sidebar leaves a narrow content column around tablet widths.
   Stack compound workspaces before their minimum tracks can overflow. */
@media (min-width: 901px) and (max-width: 1180px) {
    .app-home-card {
        flex-basis: calc(50% - 6px);
    }

    .qr-grid,
    .crypto-layout,
    .gradient-grid,
    .typing-grid,
    .password-grid,
    .translate-layout,
    .speech-layout,
    .numble-grid,
    .wordle-shell,
    .wordle-finder-layout,
    .github-grid,
    .weather-layout,
    .game-2048-layout,
    .parolla-layout,
    .valorant-crosshair-layout,
    .coach-layout,
    .chess-layout,
    .xox-layout,
    .sudoku-layout {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .valorant-crosshair-side {
        position: static;
    }
}

@media (min-width: 621px) and (max-width: 1500px) {
    .app-home-category-filters {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 8px;
    }

    .app-home-category-filter {
        width: 100%;
        padding-inline: 12px;
    }

    .app-home-category-filter small {
        display: grid;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .is-app-home .tool-nav,
    .is-tool-active .tool-nav {
        display: none;
    }

    .is-app-home .brand,
    .is-tool-active .brand {
        margin-bottom: 0;
    }

    .app-home-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 0;
    }

    .app-home-search {
        flex: none;
        width: 100%;
    }

    .app-home-card {
        flex-basis: calc(50% - 6px);
    }

    .tool-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qr-grid,
    .crypto-layout,
    .gradient-grid,
    .typing-grid,
    .password-grid,
    .translate-layout,
    .speech-layout,
    .numble-grid,
    .wordle-shell,
    .wordle-finder-layout,
    .github-grid,
    .weather-layout,
    .game-2048-layout,
    .parolla-layout,
    .valorant-crosshair-layout,
    .coach-layout,
    .chess-layout,
    .xox-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sudoku-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sudoku-live-stats {
        width: 100%;
    }

    .qr-output {
        min-height: 320px;
    }

    .gradient-preview-card {
        min-height: auto;
    }

    .gradient-preview {
        min-height: 340px;
    }

    .quote-box,
    #quote-input {
        min-height: 130px;
    }

    .wordle-card {
        overflow: hidden;
    }

    .wordle-finder-list {
        max-height: 460px;
    }

    .valorant-crosshair-side {
        position: static;
    }

    .wordle-game,
    .wordle-board,
    #keyboard {
        min-width: 0;
    }

    .wordle-board .row {
        grid-template-columns: repeat(5, minmax(46px, 56px));
    }

    .wordle-board .element {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    #keyboard {
        width: 100%;
        max-width: 560px;
        justify-self: center;
    }

    #keyboard .keyboard-row {
        gap: 6px;
        min-width: 0;
    }

    #keyboard .key {
        width: clamp(30px, 7vw, 42px);
        min-height: 44px;
    }

    #keyboard .enter,
    #keyboard .del {
        width: clamp(54px, 13vw, 68px);
    }
}

@media (max-width: 620px) {
    .workspace,
    .sidebar,
    .tool-panel {
        padding: 16px;
    }

    .panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .app-home {
        padding-top: 0;
    }

    .app-home-header {
        gap: 0;
        padding: 0;
    }

    .app-home-search {
        width: 100%;
    }

    .app-home-category-bar {
        padding: 10px;
    }

    .app-home-category-bar > span {
        padding: 2px 4px 10px;
    }

    .app-home-category-filters {
        flex-wrap: wrap;
    }

    .app-home-category-filter {
        flex: 1 1 calc(50% - 4px);
    }

    .app-home-grid {
        gap: 36px;
        margin-top: 24px;
    }

    .app-home-category-heading {
        align-items: flex-end;
    }

    .app-home-category-heading p {
        display: none;
    }

    .app-home-card {
        flex-basis: 100%;
        min-height: 104px;
    }

    .tool-nav,
    .inline-controls,
    .qr-controls {
        grid-template-columns: 1fr;
    }

    .qr-controls label:last-child {
        grid-column: auto;
    }

    .coin {
        grid-template-columns: 52px 1fr;
        padding: 10px 12px;
    }

    .coin-price {
        grid-column: 2;
        text-align: left;
    }

    .coin-name h3,
    .coin-price strong {
        font-size: 20px;
    }

    .gradient-color-row {
        grid-template-columns: 1fr;
    }

    .direction-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .password-output-row {
        grid-template-columns: 1fr;
    }

    .panel-actions {
        width: 100%;
    }

    .panel-actions button {
        flex: 1;
    }

    .numble-row {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
    }

    .wordle-board .row {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
        gap: 6px;
    }

    .wordle-finder-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .wordle-finder-row.is-draft {
        padding: 8px;
    }

    .wordle-finder-cell input {
        font-size: clamp(22px, 7vw, 30px);
    }

    .wordle-finder-cell button {
        min-height: 32px;
        padding: 0 4px;
        font-size: 11px;
    }

    .wordle-finder-letter {
        font-size: clamp(22px, 7vw, 30px);
    }

    .wordle-board .element {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        font-size: clamp(22px, 7vw, 28px);
    }

    #keyboard {
        gap: 6px;
        margin-top: 10px;
    }

    #keyboard .keyboard-row {
        gap: 5px;
        width: 100%;
        min-width: 0;
    }

    #keyboard .key {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 0;
        font-size: clamp(13px, 4vw, 17px);
    }

    #keyboard .enter,
    #keyboard .del {
        flex: 1.65 1 0;
        width: auto;
        font-size: clamp(12px, 3.5vw, 15px);
    }

    .github-search-row,
    .github-profile,
    .github-stats,
    .github-meta {
        grid-template-columns: 1fr;
    }

    .translate-language-grid,
    .translate-actions {
        grid-template-columns: 1fr;
    }

    .translate-language-grid {
        gap: 12px;
    }

    .translate-actions {
        display: grid;
        justify-items: stretch;
    }

    .translate-actions .primary-button {
        width: 100%;
    }

    #translate-status {
        text-align: left;
    }

    .translate-panel,
    .translate-side,
    .parolla-card,
    .parolla-side,
    .valorant-crosshair-preview-card,
    .valorant-crosshair-code-card {
        padding: 14px;
    }

    .valorant-crosshair-preview {
        min-height: 220px;
    }

    .valorant-crosshair-render {
        width: 145px;
        height: 145px;
    }

    .weather-app,
    .weather-side {
        padding: 14px;
    }

    .weather-app .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .weather-app .location-button {
        width: 100%;
    }

    .weather-app .weather-details {
        grid-template-columns: 1fr;
    }

    .weather-app .weather-details > div {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 68px;
        gap: 10px;
        padding: 14px 12px;
        text-align: left;
    }

    .weather-app .temperature {
        font-size: 64px;
    }

    .chess-card,
    .chess-side,
    .coach-card,
    .coach-side,
    .game-2048-card,
    .game-2048-side,
    .xox-card,
    .xox-side,
    .sudoku-game-card,
    .sudoku-side {
        padding: 12px;
    }

    .sudoku-live-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chess-topline,
    .coach-topline,
    .xox-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .coach-board {
        width: min(100%, 520px);
    }

    .coach-line {
        grid-template-columns: 24px 54px 1fr;
    }

    .chess-board-shell {
        --diameter-board: min(75vw, 520px);
    }

    .game-2048-board {
        gap: 7px;
        padding: 7px;
    }

    .parolla-topline,
    .parolla-final-grid {
        grid-template-columns: 1fr;
    }

    .parolla-review-row,
    .parolla-review-details {
        grid-template-columns: 1fr;
    }

    .parolla-review-letter {
        width: 38px;
    }
}

@media (max-width: 420px) {
    .app-home-category-filter small {
        display: none;
    }
}

@media (max-width: 420px) {
    .wordle-card,
    .wordle-side,
    .wordle-finder-card,
    .wordle-finder-results,
    .parolla-card,
    .parolla-side,
    .valorant-crosshair-card {
        padding: 12px;
    }

    .wordle-board .row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    #keyboard .keyboard-row {
        gap: 4px;
    }

    #keyboard .key {
        min-height: 40px;
        border-radius: 6px;
    }

    .wordle-finder-topline,
    .wordle-finder-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .wordle-finder-list {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }

    .valorant-crosshair-grid {
        grid-template-columns: 1fr;
    }

    .chess-levels,
    .xox-levels {
        grid-template-columns: 1fr;
    }

    .game-2048-topline {
        grid-template-columns: 1fr;
    }

    .xox-board {
        gap: 7px;
    }

    .xox-cell {
        border-radius: 7px;
    }

    .coach-line {
        grid-template-columns: 1fr;
    }

    .coach-best strong {
        font-size: 26px;
    }

    .sudoku-live-stats {
        grid-template-columns: 1fr;
    }

    .sudoku-live-stats > div {
        grid-template-columns: 1fr auto;
        align-items: center;
        min-height: 44px;
    }

    .sudoku-game-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .sudoku-actions button {
        gap: 6px;
        padding-inline: 6px;
        font-size: 14px;
    }

    .sudoku-action-mark {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .sudoku-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* Dönüştürücü merkezi */
.converter-heading {
    align-items: flex-start;
}

.converter-shell {
    width: 100%;
    margin-inline: 0;
}

.converter-category-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(96px, 1fr));
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
}

.converter-category-tab {
    display: grid;
    min-width: 0;
    min-height: 72px;
    place-content: center;
    justify-items: center;
    gap: 6px;
    border: 0;
    border-right: 1px solid var(--line);
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    padding: 9px 6px;
    transition: background-color 150ms ease, color 150ms ease;
}

.converter-category-tab:last-child {
    border-right: 0;
}

.converter-category-tab:hover:not(:disabled),
.converter-category-tab.active {
    background: rgba(24, 169, 153, 0.1);
    color: var(--text);
}

.converter-category-tab.active {
    box-shadow: inset 0 -3px 0 var(--accent);
}

.converter-category-tab:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.converter-category-icon {
    font-size: 21px;
    line-height: 1;
}

.converter-category-label {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-category-heading,
.converter-section-heading,
.converter-preview-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.converter-category-heading {
    margin-bottom: 14px;
}

.converter-category-heading h3,
.converter-drop-zone h3,
.converter-options h3,
.converter-files-section h3,
.converter-preview-section h3 {
    margin: 0 0 5px;
    font-size: 19px;
    letter-spacing: 0;
}

.converter-category-heading p,
.converter-drop-zone p,
.converter-options p,
.converter-section-heading p,
.converter-preview-toolbar p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.converter-privacy-note {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.converter-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 16px;
    align-items: stretch;
}

.converter-drop-zone,
.converter-options,
.converter-preview-section {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
}

.converter-drop-zone {
    display: grid;
    min-height: 380px;
    place-content: center;
    justify-items: center;
    gap: 14px;
    border-style: dashed;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.converter-drop-zone:hover,
.converter-drop-zone.is-dragging {
    border-color: var(--accent);
    background: rgba(24, 169, 153, 0.08);
}

.converter-drop-zone.is-dragging {
    transform: translateY(-2px);
}

.converter-drop-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
}

.converter-drop-zone > small {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.45;
}

.converter-upload-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.converter-upload-status {
    min-height: 20px;
    color: var(--muted) !important;
    font-size: 12px;
    font-weight: 700;
}

.converter-options {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
}

.converter-capability {
    display: grid;
    gap: 4px;
    border-left: 3px solid var(--accent-2);
    background: var(--surface);
    padding: 10px 12px;
}

.converter-capability.is-ready {
    border-left-color: var(--success);
}

.converter-capability.needs-engine {
    border-left-color: var(--accent-2);
}

.converter-capability strong {
    font-size: 13px;
}

.converter-capability span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.converter-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.converter-field,
.converter-range-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.converter-field[data-setting-key="outputFormat"],
.converter-field[data-setting-key="codec"],
.converter-field[data-setting-key="sampleRate"],
.converter-field[data-setting-key="audioBitrate"],
.converter-field[data-setting-key="videoQuality"],
.converter-field[data-setting-key="resolution"],
.converter-field[data-setting-key="pageSize"],
.converter-field[data-setting-key="operation"],
.converter-field[data-setting-key="compression"],
.converter-field[data-setting-key="slideSize"] {
    grid-column: 1 / -1;
}

.converter-field > span,
.converter-range-heading label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.converter-field select,
.converter-fit-control select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    padding: 0 11px;
}

.converter-range-field {
    grid-column: 1 / -1;
}

.converter-range-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.converter-range-heading output {
    display: grid;
    min-width: 64px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--accent-strong);
    padding-inline: 8px;
    font-weight: 800;
}

.converter-range-field input,
.converter-zoom-control input {
    width: 100%;
    accent-color: var(--accent);
}

.converter-toggle-field {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
    cursor: pointer;
}

.converter-toggle-field input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.converter-toggle-field span {
    display: grid;
    gap: 3px;
}

.converter-toggle-field strong {
    font-size: 13px;
}

.converter-toggle-field small {
    color: var(--muted);
    line-height: 1.35;
}

.converter-output-note {
    min-height: 40px;
    border-left: 3px solid var(--accent-2);
    background: var(--surface);
    padding: 9px 11px;
    font-size: 12px;
}

.converter-batch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.converter-batch-actions button {
    min-width: 0;
    padding-inline: 9px;
}

.converter-batch-actions .converter-clear-button {
    grid-column: 1 / -1;
}

.converter-batch-actions button:disabled,
.converter-file-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.converter-batch-progress {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.converter-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface);
}

.converter-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 180ms ease;
}

.converter-files-section {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.converter-file-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.converter-empty-list {
    display: grid;
    min-height: 140px;
    place-content: center;
    justify-items: center;
    gap: 7px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 20px;
    text-align: center;
}

.converter-empty-list strong {
    color: var(--text);
}

.converter-file-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 138px;
    gap: 14px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--panel-2);
    padding: 12px;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.converter-file-card:hover,
.converter-file-card.is-selected {
    border-color: rgba(24, 169, 153, 0.72);
}

.converter-file-card.is-selected {
    background: rgba(24, 169, 153, 0.06);
}

.converter-file-thumbnail {
    display: grid;
    width: 110px;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    font-size: 32px;
}

.converter-file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.converter-file-content {
    min-width: 0;
}

.converter-file-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.converter-file-title-row h4 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-file-status {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}

.converter-file-status.is-complete {
    border-color: rgba(74, 222, 128, 0.5);
    color: var(--success);
}

.converter-file-status.is-error {
    border-color: rgba(255, 95, 109, 0.55);
    color: var(--danger);
}

.converter-file-status.is-processing {
    border-color: rgba(244, 211, 94, 0.55);
    color: var(--accent-2);
}

.converter-file-status.is-cancelled {
    border-style: dashed;
}

.converter-file-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 12px 0 0;
}

.converter-file-meta > div,
.converter-file-meta dt,
.converter-file-meta dd {
    min-width: 0;
}

.converter-file-meta dt,
.converter-file-meta dd {
    margin: 0;
}

.converter-file-meta dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.converter-file-meta dd {
    margin-top: 3px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-file-error {
    margin: 10px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.converter-file-error::before {
    content: "!";
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    margin-right: 6px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
}

.converter-file-actions {
    display: grid;
    align-content: start;
    gap: 6px;
}

.converter-file-actions button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding-inline: 7px;
    font-size: 11px;
}

.converter-file-actions .is-remove:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
}

.converter-preview-section {
    margin-top: 22px;
    padding: 16px;
}

.converter-preview-section:fullscreen {
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: var(--panel);
    padding: 24px;
}

.converter-preview-controls,
.converter-image-preview-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.converter-image-preview-controls[hidden] {
    display: none;
}

.converter-view-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.converter-view-modes button {
    min-height: 40px;
    border: 0;
    border-right: 1px solid var(--line);
    cursor: pointer;
    background: var(--surface);
    color: var(--muted);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.converter-view-modes button:last-child {
    border-right: 0;
}

.converter-view-modes button.active {
    background: rgba(24, 169, 153, 0.16);
    color: var(--accent-strong);
}

.converter-fit-control {
    width: 136px;
}

.converter-fit-control select {
    min-height: 40px;
    font-size: 12px;
}

.converter-zoom-control {
    display: grid;
    grid-template-columns: auto 100px 44px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.converter-zoom-control output {
    color: var(--text);
    text-align: right;
}

.converter-icon-command {
    width: 42px;
    min-height: 40px;
    padding: 0;
    font-size: 20px;
}

.converter-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.converter-preview-grid[data-view="before"],
.converter-preview-grid[data-view="after"] {
    grid-template-columns: 1fr;
}

.converter-preview-grid[data-view="before"] .converter-preview-after,
.converter-preview-grid[data-view="after"] .converter-preview-before {
    display: none;
}

.converter-preview-pane {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.converter-preview-pane figcaption {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
}

.converter-preview-stage {
    display: flex;
    width: 100%;
    min-height: 320px;
    max-height: 560px;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: var(--surface);
    background-image:
        linear-gradient(45deg, rgba(170, 176, 191, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(170, 176, 191, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(170, 176, 191, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(170, 176, 191, 0.08) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    color: var(--muted);
    padding: 12px;
    text-align: center;
}

.converter-preview-stage img {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    max-height: none;
}

.converter-preview-grid[data-fit="contain"] .converter-preview-stage img {
    object-fit: contain;
}

.converter-preview-grid[data-fit="cover"] .converter-preview-stage {
    overflow: hidden;
}

.converter-preview-grid[data-fit="cover"] .converter-preview-stage img {
    object-fit: cover;
}

.converter-preview-grid[data-fit="original"] .converter-preview-stage {
    justify-content: flex-start;
}

.converter-preview-stage audio,
.converter-preview-stage video {
    width: min(100%, 720px);
    max-height: 100%;
}

.converter-generic-preview {
    display: grid;
    max-width: 560px;
    justify-items: center;
    gap: 8px;
}

.converter-generic-preview-icon {
    font-size: 38px;
}

.converter-generic-preview pre {
    width: 100%;
    max-height: 190px;
    overflow: auto;
    margin: 8px 0 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-2);
    color: var(--text);
    padding: 10px;
    text-align: left;
    white-space: pre-wrap;
}

.converter-panel button:focus-visible,
.converter-panel select:focus-visible,
.converter-panel input:focus-visible,
.converter-file-card:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.32);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .converter-category-tab,
    .converter-drop-zone,
    .converter-file-card,
    .converter-progress-track span {
        transition: none;
    }
}

@media (max-width: 1180px) {
    .converter-category-tabs {
        grid-template-columns: repeat(8, 108px);
        justify-content: start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .converter-category-tab:last-child {
        border-right: 0;
    }

    .converter-main-grid {
        grid-template-columns: 1fr;
    }

    .converter-drop-zone {
        min-height: 300px;
    }

    .converter-preview-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .converter-preview-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .converter-panel button {
        min-height: 44px;
    }
}

@media (max-width: 760px) {
    .converter-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .converter-file-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .converter-file-thumbnail {
        width: 88px;
    }

    .converter-file-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .converter-file-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .converter-preview-grid {
        grid-template-columns: 1fr;
    }

    .converter-preview-stage {
        min-height: 270px;
    }
}

@media (max-width: 620px) {
    .converter-drop-zone,
    .converter-options,
    .converter-preview-section {
        padding: 14px;
    }

    .converter-drop-zone {
        min-height: 270px;
    }

    .converter-settings,
    .converter-file-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .converter-preview-controls,
    .converter-image-preview-controls,
    .converter-zoom-control {
        width: 100%;
    }

    .converter-view-modes {
        width: 100%;
    }

    .converter-fit-control {
        flex: 1 1 150px;
        width: auto;
    }

    .converter-zoom-control {
        grid-template-columns: auto minmax(0, 1fr) 42px;
    }

    .converter-preview-stage {
        min-height: 230px;
    }
}

@media (max-width: 420px) {
    .converter-upload-actions,
    .converter-batch-actions,
    .converter-file-actions,
    .converter-settings {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .converter-upload-actions {
        display: grid;
    }

    .converter-upload-actions button,
    .converter-batch-actions .converter-clear-button {
        grid-column: auto;
        width: 100%;
    }

    .converter-file-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .converter-file-thumbnail {
        width: 64px;
        font-size: 24px;
    }

    .converter-file-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .converter-file-meta {
        grid-template-columns: 1fr;
    }

    .converter-preview-controls {
        display: grid;
        grid-template-columns: 1fr 44px;
    }

    .converter-view-modes,
    .converter-image-preview-controls {
        grid-column: 1 / -1;
    }

    .converter-image-preview-controls {
        display: grid;
    }

    .converter-fit-control {
        width: 100%;
    }
}

/* Tabu */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tabu-panel-heading {
    align-items: flex-start;
}

.tabu-panel-actions,
.tabu-setup-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tabu-panel-actions {
    align-items: center;
}

.tabu-setup-header-actions[hidden] {
    display: none;
}

.tabu-sound-button {
    flex: 0 0 auto;
    gap: 8px;
}

.tabu-app {
    width: 100%;
    margin-inline: 0;
}

.tabu-panel.is-setup-screen {
    min-height: 0;
}

.tabu-screen[hidden],
.tabu-modal[hidden],
.tabu-pause-cover[hidden],
.tabu-custom-field[hidden] {
    display: none;
}

.tabu-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tabu-section-heading.compact {
    margin-bottom: 16px;
}

.tabu-section-heading h3,
.tabu-centered-screen h3,
.tabu-modal-card h3 {
    margin: 0 0 5px;
    font-size: 21px;
    letter-spacing: 0;
}

.tabu-section-heading p,
.tabu-centered-screen > p,
.tabu-modal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.tabu-team-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tabu-setup-team {
    min-width: 0;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 18px;
}

.tabu-setup-team.team-two {
    border-top-color: var(--accent-2);
}

.tabu-team-label,
.tabu-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tabu-team-label {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.tabu-team-label h4,
.tabu-player-stats-wrap h4 {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0;
}

.tabu-team-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent-strong);
    font-weight: 800;
}

.team-two .tabu-team-symbol {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.tabu-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.tabu-field input,
.tabu-field select,
.tabu-player-input input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    padding: 0 12px;
}

.tabu-field input:focus-visible,
.tabu-field select:focus-visible,
.tabu-player-input input:focus-visible,
.tabu-remove-player:focus-visible,
.tabu-primary-controls button:focus-visible,
.tabu-player-stats-table:focus-visible,
.tabu-modal button:focus-visible,
.tabu-panel button:focus-visible {
    outline: 3px solid rgba(24, 169, 153, 0.34);
    outline-offset: 2px;
}

.tabu-field input:disabled,
.tabu-field select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.tabu-player-heading {
    margin: 18px 0 10px;
}

.tabu-player-heading span {
    color: var(--muted);
    font-size: 13px;
}

.tabu-player-list {
    display: grid;
    gap: 8px;
    max-height: 224px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px;
}

.tabu-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.tabu-player-input {
    min-width: 0;
}

.tabu-remove-player {
    width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 22px;
}

.tabu-remove-player:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
}

.tabu-remove-player:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.tabu-add-player {
    width: 100%;
    gap: 8px;
    margin-top: 10px;
}

.tabu-settings {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.tabu-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tabu-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.tabu-toggle {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
    cursor: pointer;
}

.tabu-toggle input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.tabu-toggle span,
.tabu-toggle strong,
.tabu-toggle small {
    display: block;
    min-width: 0;
}

.tabu-toggle small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.35;
}

.tabu-form-message {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--danger);
    font-weight: 700;
}

.tabu-form-message:empty {
    display: none;
}

.tabu-form-message:not(:empty)::before {
    content: "!";
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    margin-right: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}

.tabu-summary-actions,
.tabu-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tabu-ready-facts > div,
.tabu-summary-grid > div,
.tabu-end-highlights > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.tabu-ready-facts span,
.tabu-summary-grid span,
.tabu-end-highlights span,
.tabu-game-meta span,
.tabu-round-counts span,
.tabu-final-scores span,
.tabu-current-scores span {
    color: var(--muted);
    font-size: 12px;
}

.tabu-centered-screen {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: clamp(22px, 5vw, 48px);
}

.tabu-eyebrow {
    margin-bottom: 7px !important;
    color: var(--accent) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tabu-ready-team {
    display: block;
    margin: 12px 0 7px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(24px, 5vw, 36px);
    letter-spacing: 0;
}

.tabu-ready-facts,
.tabu-summary-grid,
.tabu-end-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    text-align: left;
}

.tabu-wide-button {
    width: min(100%, 360px);
    margin-top: 22px;
}

.tabu-countdown-value {
    display: block;
    margin-top: 14px;
    color: var(--accent-strong);
    font-size: clamp(58px, 15vw, 110px);
    line-height: 1;
    letter-spacing: 0;
    animation: tabu-countdown-pop 600ms ease-out;
}

.tabu-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
}

.tabu-score-team,
.tabu-turn-clock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 10px 14px;
}

.tabu-score-team.team-two {
    border-left-color: var(--accent-2);
}

.tabu-score-team.is-active {
    background: rgba(24, 169, 153, 0.12);
}

.tabu-score-team.team-two.is-active {
    background: rgba(244, 211, 94, 0.09);
}

.tabu-score-team span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.tabu-score-team strong,
.tabu-turn-clock strong {
    font-size: 24px;
}

.tabu-turn-clock {
    grid-template-columns: 1fr;
    place-items: center;
    border-left-width: 1px;
    text-align: center;
}

.tabu-turn-clock span {
    color: var(--muted);
    font-size: 11px;
}

.tabu-turn-clock.is-warning {
    border-color: var(--danger);
    color: var(--danger);
    animation: tabu-timer-pulse 900ms ease-in-out infinite;
}

.tabu-play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
    align-items: start;
}

.tabu-play-main,
.tabu-round-side {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    padding: 16px;
}

.tabu-game-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.tabu-game-meta > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tabu-game-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tabu-card-wrap {
    position: relative;
    width: min(100%, 540px);
    margin-inline: auto;
}

.tabu-word-card {
    display: grid;
    grid-template-rows: auto minmax(140px, 1fr) auto;
    min-height: 440px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    text-align: center;
    transition: border-color 160ms ease, transform 160ms ease;
}

.tabu-word-card.is-correct {
    border-color: var(--success);
    transform: translateY(-3px);
}

.tabu-word-card.is-taboo {
    border-color: var(--danger);
    transform: translateX(3px);
}

.tabu-word-card.is-pass {
    border-color: var(--accent-2);
}

.tabu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    text-align: left;
}

.tabu-card-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tabu-card-category {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabu-main-word-block {
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px 16px 34px;
}

.tabu-main-word-block::after {
    content: "";
    position: absolute;
    bottom: 20px;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.tabu-word-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: 0;
}

.tabu-forbidden-block {
    border-top: 1px solid var(--line);
    background: var(--panel-2);
    padding: 15px 16px 16px;
    text-align: left;
}

.tabu-forbidden-title {
    color: var(--danger);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tabu-forbidden-block ul {
    counter-reset: tabu-forbidden;
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.tabu-forbidden-block li {
    counter-increment: tabu-forbidden;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 38px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
}

.tabu-forbidden-block li:last-child {
    border-bottom: 0;
}

.tabu-forbidden-block li::before {
    content: counter(tabu-forbidden, decimal-leading-zero);
    color: var(--danger);
    font-size: 11px;
    font-weight: 800;
}

.tabu-pause-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 20px;
    text-align: center;
}

.tabu-pause-cover p {
    margin: 0;
    color: var(--muted);
}

.tabu-feedback {
    min-height: 23px;
    margin: 11px 0 0;
    text-align: center;
    font-weight: 800;
}

.tabu-feedback[data-type="success"] {
    color: var(--success);
}

.tabu-feedback[data-type="danger"] {
    color: var(--danger);
}

.tabu-feedback[data-type="pass"] {
    color: var(--accent-2);
}

.tabu-round-side,
.tabu-round-counts,
.tabu-secondary-controls {
    display: grid;
    gap: 10px;
}

.tabu-round-counts > div {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.tabu-round-counts strong {
    font-size: 21px;
}

.tabu-secondary-controls {
    margin-top: 10px;
}

.tabu-secondary-controls button {
    gap: 8px;
}

.tabu-primary-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.tabu-primary-controls button {
    display: grid;
    grid-template-columns: 28px minmax(0, auto);
    place-content: center;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 62px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    background: var(--panel-2);
    color: var(--text);
}

.tabu-primary-controls button span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
}

.tabu-control-correct {
    color: var(--success) !important;
}

.tabu-control-taboo {
    color: var(--danger) !important;
}

.tabu-control-pass {
    color: var(--accent-2) !important;
}

.tabu-primary-controls button:hover:not(:disabled) {
    background: var(--surface);
}

.tabu-primary-controls button:disabled,
.tabu-secondary-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.tabu-summary-grid {
    width: 100%;
}

.tabu-summary-grid > div {
    text-align: center;
}

.tabu-summary-grid strong {
    font-size: 22px;
}

.tabu-summary-net.is-negative,
.is-negative {
    color: var(--danger);
}

.tabu-summary-net.is-positive,
.is-positive {
    color: var(--success);
}

.tabu-current-scores,
.tabu-final-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.tabu-current-scores > div,
.tabu-final-scores > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.tabu-current-scores > div:nth-child(2),
.tabu-final-scores > div:nth-child(2) {
    border-left-color: var(--accent-2);
}

.tabu-current-scores span,
.tabu-final-scores span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tabu-final-scores {
    margin-top: 22px;
}

.tabu-end-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.tabu-player-stats-wrap {
    width: 100%;
    margin-top: 22px;
    text-align: left;
}

.tabu-player-stats-wrap h4 {
    margin-bottom: 10px;
}

.tabu-player-stats-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tabu-player-stats-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    font-size: 14px;
}

.tabu-player-stats-table th,
.tabu-player-stats-table td {
    padding: 11px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.tabu-player-stats-table th {
    color: var(--muted);
    font-size: 12px;
}

.tabu-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 10, 0.78);
    padding: 20px;
}

.tabu-modal-card {
    width: min(100%, 460px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 24px;
    animation: tabu-modal-enter 170ms ease-out;
}

.tabu-modal-actions button {
    flex: 1 1 160px;
}

@keyframes tabu-countdown-pop {
    from {
        opacity: 0;
        transform: scale(0.82);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tabu-timer-pulse {
    50% {
        background: rgba(255, 95, 109, 0.1);
    }
}

@keyframes tabu-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tabu-countdown-value,
    .tabu-turn-clock.is-warning,
    .tabu-modal-card {
        animation: none;
    }

    .tabu-word-card {
        transition: none;
    }
}

@media (max-width: 1000px) {
    .tabu-settings-grid,
    .tabu-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tabu-play-layout {
        grid-template-columns: minmax(0, 1fr) 210px;
    }
}

@media (max-width: 760px) {
    .tabu-team-setup-grid,
    .tabu-play-layout {
        grid-template-columns: 1fr;
    }

    .tabu-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tabu-turn-clock {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 54px;
    }

    .tabu-round-side {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 0.5fr);
    }

    .tabu-round-counts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tabu-round-counts > div {
        display: grid;
        justify-items: center;
        border-bottom: 0;
    }

    .tabu-secondary-controls {
        margin-top: 0;
    }

}

@media (max-width: 620px) {
    .tabu-panel-heading {
        align-items: stretch;
    }

    .tabu-panel-actions {
        justify-content: flex-start;
    }

    .tabu-sound-button {
        align-self: flex-start;
    }

    .tabu-settings-grid,
    .tabu-toggle-grid,
    .tabu-ready-facts,
    .tabu-summary-grid,
    .tabu-end-highlights,
    .tabu-game-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tabu-game-screen {
        padding-bottom: 88px;
    }

    .tabu-primary-controls {
        position: sticky;
        z-index: 8;
        bottom: 8px;
        margin-inline: -4px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.22);
    }

    .tabu-word-card {
        min-height: 390px;
    }

    .tabu-summary-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tabu-panel-actions,
    .tabu-setup-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .tabu-panel-actions button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .tabu-panel-heading {
        gap: 10px;
    }

    .tabu-setup-team,
    .tabu-play-main,
    .tabu-round-side,
    .tabu-centered-screen,
    .tabu-modal-card {
        padding: 12px;
    }

    .tabu-settings-grid,
    .tabu-toggle-grid,
    .tabu-end-highlights {
        grid-template-columns: 1fr;
    }

    .tabu-scoreboard {
        gap: 6px;
    }

    .tabu-score-team,
    .tabu-turn-clock {
        padding: 8px;
    }

    .tabu-score-team {
        grid-template-columns: 1fr;
    }

    .tabu-score-team strong,
    .tabu-turn-clock strong {
        font-size: 20px;
    }

    .tabu-game-meta {
        gap: 6px;
    }

    .tabu-word-card {
        min-height: 360px;
    }

    .tabu-word-card h3 {
        margin-inline: 8px;
    }

    .tabu-round-side {
        grid-template-columns: 1fr;
    }

    .tabu-primary-controls {
        gap: 5px;
        padding: 5px;
    }

    .tabu-primary-controls button {
        grid-template-columns: 1fr;
        gap: 3px;
        min-height: 66px;
        padding: 5px;
        font-size: 13px;
    }

    .tabu-primary-controls button span {
        width: 24px;
        height: 24px;
        margin-inline: auto;
    }

    .tabu-current-scores,
    .tabu-final-scores {
        grid-template-columns: 1fr;
    }
}

/* Var Mısın Yok Musun */
body.deal-modal-open {
    overflow: hidden;
}

.deal-panel {
    overflow: hidden;
}

.deal-panel-heading {
    align-items: flex-start;
}

.deal-toolbar,
.deal-landing-actions,
.deal-result-actions,
.deal-final-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.deal-toolbar button {
    gap: 8px;
}

.deal-app {
    --deal-primary: var(--accent);
    --deal-highlight: var(--accent-2);
    --deal-deep: #0d1716;
    --deal-low: #2b9ed0;
    position: relative;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.deal-app[data-theme="stage"] {
    --deal-primary: var(--accent-2);
    --deal-highlight: var(--accent);
    --deal-deep: #17150d;
}

.deal-screen[hidden],
.deal-modal[hidden],
.deal-reveal[hidden],
.deal-owned-station[hidden],
.deal-info-content[hidden],
#deal-resume[hidden] {
    display: none;
}

.deal-home-screen {
    display: grid;
    min-height: min(660px, calc(100vh - 170px));
    align-content: center;
    justify-items: center;
    padding: 48px 20px;
    text-align: center;
}

.deal-landing-logo {
    position: relative;
    width: clamp(150px, 18vw, 210px);
    aspect-ratio: 1.45 / 1;
    margin-bottom: 34px;
    transform: perspective(700px) rotateX(5deg) rotateY(-5deg);
    transform-style: preserve-3d;
    animation: deal-logo-float 3s ease-in-out infinite;
}

.deal-logo-handle {
    position: absolute;
    z-index: 0;
    top: -22%;
    left: 31%;
    width: 38%;
    height: 34%;
    border: clamp(7px, 1vw, 11px) solid var(--deal-highlight);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.deal-logo-face {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    border: 2px solid color-mix(in srgb, var(--deal-primary) 72%, white 8%);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(155deg, var(--deal-primary), var(--deal-deep));
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34), inset 0 -10px 20px rgba(0, 0, 0, 0.28);
    color: var(--text);
    font-size: clamp(54px, 8vw, 86px);
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.deal-logo-face::before,
.deal-logo-face::after {
    content: "";
    position: absolute;
    top: 14%;
    bottom: 14%;
    width: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.deal-logo-face::before {
    left: 8%;
}

.deal-logo-face::after {
    right: 8%;
}

.deal-home-screen h3,
.deal-result-screen h3 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
}

.deal-home-screen > p,
.deal-result-screen > p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.deal-landing-actions {
    justify-content: center;
    margin-top: 28px;
}

.deal-start-button {
    min-width: 190px;
    min-height: 50px;
    gap: 10px;
    font-size: 16px;
}

.deal-round-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.deal-round-bar > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
}

.deal-round-bar span,
.deal-owned-station > span,
.deal-result-grid span,
.deal-offer-analysis span,
.deal-final-case span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.deal-round-bar strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-game-layout {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 132px;
    grid-template-areas: "low main right";
    align-items: start;
    gap: 12px;
    min-width: 0;
}

.deal-money-low {
    grid-area: low;
}

.deal-money-right {
    grid-area: right;
}

.deal-board-main {
    grid-area: main;
    min-width: 0;
}

.deal-money-board {
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 90%, black);
    padding: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.deal-money-list {
    display: grid;
    gap: 4px;
}

.deal-money-segment {
    display: contents;
}

.deal-money-value {
    display: grid;
    min-height: 28px;
    min-width: 0;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--deal-low) 68%, var(--line));
    border-radius: 3px;
    background: color-mix(in srgb, var(--deal-low) 28%, var(--panel-2));
    color: var(--text);
    padding: 4px 5px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
    box-shadow: inset 0 0 12px color-mix(in srgb, var(--deal-low) 15%, transparent);
    transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.deal-money-medium .deal-money-value {
    border-color: color-mix(in srgb, var(--accent-2) 62%, var(--line));
    background: color-mix(in srgb, var(--accent-2) 20%, var(--panel-2));
    box-shadow: inset 0 0 12px color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.deal-money-high .deal-money-value {
    border-color: color-mix(in srgb, var(--danger) 62%, var(--line));
    background: color-mix(in srgb, var(--danger) 18%, var(--panel-2));
    box-shadow: inset 0 0 12px color-mix(in srgb, var(--danger) 10%, transparent);
}

.deal-money-value.is-removed {
    border-color: var(--line);
    background: var(--surface);
    opacity: 0.32;
    filter: grayscale(1);
    text-decoration: line-through;
    transform: scale(0.97);
}

.deal-instruction-wrap {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding: 0 2px 10px;
}

.deal-instruction-wrap span {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--deal-primary) 52%, var(--line));
    border-radius: 6px;
    color: var(--deal-primary);
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
}

.deal-instruction-wrap h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
    text-align: right;
}

.deal-owned-station {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
    border: 1px solid color-mix(in srgb, var(--deal-highlight) 46%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--deal-highlight) 6%, var(--surface));
    padding: 10px 0;
}

.deal-final-case strong {
    display: grid;
    width: 52px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--deal-highlight);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--deal-highlight);
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.2);
}

.deal-owned-case {
    display: grid;
    width: calc((100% - 45px) / 6);
    aspect-ratio: 1.34 / 1;
    place-items: stretch;
    flex: 0 0 auto;
    perspective: 700px;
}

.deal-owned-case .deal-case-face {
    border-color: color-mix(in srgb, var(--deal-primary) 55%, #27344a);
    box-shadow:
        0 7px 15px rgba(0, 0, 0, 0.28),
        0 0 16px color-mix(in srgb, var(--deal-highlight) 13%, transparent),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 -10px 18px rgba(0, 0, 0, 0.3);
}

.deal-case-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    min-width: 0;
}

.deal-case {
    position: relative;
    display: grid;
    flex: 0 0 calc((100% - 45px) / 6);
    min-width: 0;
    aspect-ratio: 1.34 / 1;
    place-items: stretch;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    perspective: 700px;
    transition: filter 160ms ease, transform 160ms ease;
}

.deal-case-face {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    place-items: center;
    gap: 3px;
    overflow: hidden;
    border: 5px solid color-mix(in srgb, var(--deal-primary) 36%, #27344a);
    border-radius: 5px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 35%),
        linear-gradient(160deg, #24324a, #0e1522);
    padding: 6px;
    box-shadow:
        0 7px 15px rgba(0, 0, 0, 0.28),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 -10px 18px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 480ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 180ms ease, background 180ms ease;
}

.deal-case-face::before,
.deal-case-face::after {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.deal-case-face::before {
    left: 5px;
}

.deal-case-face::after {
    right: 5px;
}

.deal-case-meta {
    color: color-mix(in srgb, var(--deal-primary) 72%, white);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.deal-case-number {
    display: grid;
    width: 70%;
    height: 100%;
    min-height: 0;
    place-items: center;
    align-self: stretch;
    border: 2px solid color-mix(in srgb, var(--deal-primary) 28%, #5e6c82);
    border-radius: 2px;
    background: #f1f3f5;
    color: #10141b;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    padding: 0 2px 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.deal-case-value {
    max-width: 100%;
    color: #10141b;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
}

.deal-case-unit {
    color: #4c5664;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.deal-case-prize {
    display: grid;
    width: 100%;
    min-height: 0;
    align-self: stretch;
    place-content: center;
    gap: 2px;
    padding-bottom: 3px;
}

.deal-case:hover:not(:disabled) .deal-case-face {
    border-color: color-mix(in srgb, var(--deal-primary) 72%, #40516b);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34), 0 0 15px color-mix(in srgb, var(--deal-primary) 16%, transparent);
}

.deal-case:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-3px) scale(1.025);
}

.deal-case:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--deal-primary) 38%, transparent);
}

.deal-case.is-opening .deal-case-face {
    opacity: 0.35;
    transform: rotateY(92deg) scale(0.92);
}

.deal-case.is-opened {
    cursor: default;
    filter: none;
    opacity: 1;
}

.deal-case.is-opened .deal-case-face {
    grid-template-rows: auto minmax(0, 1fr);
    border-color: #667386;
    background: linear-gradient(145deg, #f7f7f3, #cdd3db);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24), inset 0 0 0 2px #9ba5b2;
}

.deal-case.is-opened .deal-case-face::before,
.deal-case.is-opened .deal-case-face::after {
    background: rgba(36, 44, 56, 0.16);
}

.deal-case.is-opened .deal-case-meta {
    color: #485260;
}

.deal-case.is-opened:hover {
    transform: none;
}

/* Keep case labels readable without allowing dynamic content to shift the grid. */
.deal-case-number,
.deal-case-prize,
.deal-case-value,
.deal-case-unit {
    min-width: 0;
    letter-spacing: 0;
    text-align: center;
}

/* Legacy strong rules from other panels must not override the case screen. */
.deal-case-face strong {
    color: var(--text);
    font-weight: 800;
}

.deal-case-face .deal-case-number,
.deal-case-face .deal-case-value {
    color: #10141b;
}

.deal-game-screen.is-bank-call .deal-game-layout,
.deal-game-screen.is-bank-call .deal-round-bar {
    filter: brightness(0.38) blur(1px);
    transition: filter 300ms ease;
}

.deal-reveal {
    position: fixed;
    z-index: 220;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(460px, calc(100vw - 32px));
    min-height: 210px;
    place-content: center;
    justify-items: center;
    gap: 13px;
    border: 1px solid var(--deal-primary);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 0 0 100vmax rgba(7, 8, 10, 0.82), 0 22px 70px rgba(0, 0, 0, 0.58);
    padding: 28px;
    text-align: center;
    transform: translate(-50%, -50%);
    animation: deal-reveal-in 280ms ease-out;
}

.deal-reveal span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.deal-reveal strong {
    color: var(--success);
    font-size: clamp(34px, 7vw, 54px);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.deal-reveal.is-high {
    border-color: var(--danger);
}

.deal-reveal.is-high strong {
    color: var(--danger);
}

.deal-reveal.is-final {
    animation: deal-final-reveal 900ms ease-out both;
}

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

.deal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 10, 0.86);
    backdrop-filter: blur(5px);
}

.deal-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(760px, calc(100dvh - 32px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
    padding: 26px;
    text-align: center;
    animation: deal-modal-in 220ms ease-out;
}

.deal-modal-card h3 {
    margin: 5px 0 8px;
    font-size: 25px;
    letter-spacing: 0;
}

.deal-modal-card > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.deal-offer-card {
    overflow: hidden;
    border-color: color-mix(in srgb, var(--deal-highlight) 52%, var(--line));
}

.deal-crt-scan {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255, 255, 255, 0.025) 4px);
    animation: deal-crt-flicker 2.8s steps(2, end) infinite;
}

.deal-bank-label {
    display: inline-block;
    color: var(--deal-highlight);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.deal-offer-amount {
    display: block;
    margin: 18px 0;
    color: var(--deal-highlight);
    font-size: clamp(38px, 8vw, 58px);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-shadow: 0 0 24px color-mix(in srgb, var(--deal-highlight) 26%, transparent);
}

.deal-offer-analysis,
.deal-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.deal-offer-analysis > div,
.deal-result-grid > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
}

.deal-offer-analysis strong,
.deal-result-grid strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.deal-offer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.deal-answer {
    min-height: 56px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.deal-answer-accept {
    background: var(--deal-primary);
    color: #07110f;
}

.deal-answer-reject {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.deal-answer-reject:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.deal-final-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.deal-final-case {
    display: grid;
    justify-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.deal-final-case.is-owned {
    border-color: var(--deal-highlight);
}

.deal-final-actions {
    justify-content: center;
}

.deal-info-card {
    text-align: left;
}

.deal-info-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.deal-info-heading h3 {
    margin: 0;
}

.deal-info-heading button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 22px;
}

.deal-rules {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
    color: var(--muted);
    line-height: 1.55;
}

.deal-result-screen {
    position: relative;
    display: grid;
    min-height: min(640px, calc(100vh - 170px));
    align-content: center;
    justify-items: center;
    overflow: hidden;
    padding: 48px 20px;
    text-align: center;
}

.deal-result-emblem {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--deal-highlight);
    border-radius: 50%;
    color: var(--deal-highlight);
    font-size: 44px;
    font-weight: 800;
    box-shadow: 0 0 34px color-mix(in srgb, var(--deal-highlight) 16%, transparent);
}

.deal-result-screen > span {
    margin-bottom: 8px;
    color: var(--deal-highlight);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.deal-result-grid {
    width: min(100%, 680px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 18px;
}

.deal-result-grid strong {
    font-size: 17px;
}

.deal-result-actions {
    justify-content: center;
}

.deal-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deal-confetti span {
    position: absolute;
    top: 12%;
    left: 50%;
    width: 8px;
    height: 15px;
    border-radius: 2px;
    opacity: 0;
    animation: deal-confetti-fall 1.9s var(--deal-delay) ease-out forwards;
}

.deal-panel button:focus-visible,
.deal-panel input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--deal-primary) 35%, transparent);
    outline-offset: 2px;
}

@keyframes deal-logo-float {
    0%, 100% { transform: perspective(700px) rotateX(5deg) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(700px) rotateX(3deg) rotateY(4deg) translateY(-8px); }
}

@keyframes deal-reveal-in {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes deal-final-reveal {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); filter: brightness(2); }
    65% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); filter: brightness(1.35); }
    100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
}

@keyframes deal-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes deal-crt-flicker {
    0%, 92%, 100% { opacity: 0.72; }
    94% { opacity: 0.28; }
    97% { opacity: 0.9; }
}

@keyframes deal-confetti-fall {
    0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--deal-x), 560px, 0) rotate(var(--deal-rotate)); }
}

@media (prefers-reduced-motion: reduce) {
    .deal-app *,
    .deal-app *::before,
    .deal-app *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1200px) {
    .deal-game-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "main main"
            "low right";
    }

    .deal-money-board {
        margin-top: 2px;
    }

    .deal-money-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .deal-panel {
        min-height: calc(100dvh - 74px);
    }

    .deal-panel-heading {
        align-items: stretch;
    }

    .deal-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .deal-toolbar button {
        min-width: 0;
        padding-inline: 8px;
        font-size: 12px;
    }

    .deal-case-grid {
        gap: 9px;
    }

    .deal-case {
        flex-basis: calc((100% - 27px) / 4);
    }

    .deal-owned-case {
        width: calc((100% - 27px) / 4);
    }
}

@media (max-width: 620px) {
    .deal-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-game-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "low"
            "right";
    }

    .deal-home-screen,
    .deal-result-screen {
        min-height: 560px;
        padding: 34px 10px;
    }

    .deal-round-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-instruction-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .deal-instruction-wrap h3 {
        font-size: 16px;
        text-align: left;
    }

    .deal-case-grid {
        gap: 7px;
    }

    .deal-case {
        flex-basis: calc((100% - 14px) / 3);
    }

    .deal-owned-case {
        width: calc((100% - 14px) / 3);
    }

    .deal-money-board {
        padding: 8px;
    }

    .deal-money-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-money-value {
        font-size: 10px;
    }

    .deal-case-number {
        font-size: 18px;
    }

    .deal-case-value {
        font-size: 11px;
    }

    .deal-offer-analysis,
    .deal-result-grid {
        grid-template-columns: 1fr;
    }

    .deal-modal-card {
        padding: 18px;
    }

    .deal-result-grid {
        max-width: 360px;
    }
}

@media (max-width: 380px) {
    .deal-panel-heading {
        gap: 14px;
    }

    .deal-toolbar button {
        font-size: 11px;
    }

    .deal-case-number {
        width: 72%;
        font-size: 16px;
    }

    .deal-case-value {
        font-size: 10px;
    }

    .deal-final-actions,
    .deal-result-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .deal-final-actions button,
    .deal-result-actions button {
        width: 100%;
    }
}

/* Milyoner Bilgi Yarışması */
body.millionaire-modal-open {
    overflow: hidden;
}

.millionaire-panel {
    overflow: hidden;
}

.millionaire-panel-heading {
    align-items: flex-start;
}

.millionaire-toolbar,
.millionaire-home-actions,
.millionaire-resume-actions,
.millionaire-result-actions,
.millionaire-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.millionaire-toolbar button {
    gap: 8px;
}

.millionaire-app {
    --millionaire-gold: #d5b85a;
    --millionaire-gold-soft: #887538;
    --millionaire-blue: #527ad5;
    --millionaire-purple: #7455bc;
    --millionaire-deep: #10131c;
    position: relative;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    color: var(--text);
}

.millionaire-screen[hidden],
.millionaire-modal[hidden],
.millionaire-resume-card[hidden],
.millionaire-feedback[hidden],
.millionaire-decision[hidden],
.millionaire-ladder-backdrop[hidden],
#millionaire-timer-card[hidden] {
    display: none;
}

.millionaire-home {
    display: grid;
    min-height: min(680px, calc(100dvh - 180px));
    align-content: center;
    justify-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--millionaire-purple) 34%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(82, 122, 213, 0.08), transparent 42%),
        linear-gradient(225deg, rgba(213, 184, 90, 0.06), transparent 38%),
        linear-gradient(160deg, #171923, #11131a 68%, #14191a);
    padding: 44px 20px;
    text-align: center;
}

.millionaire-emblem {
    position: relative;
    display: grid;
    width: 126px;
    aspect-ratio: 1;
    place-items: center;
    margin-bottom: 26px;
    border: 1px solid color-mix(in srgb, var(--millionaire-gold) 75%, white 8%);
    border-radius: 50%;
    background:
        linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, 0.11) 48% 52%, transparent 54%),
        linear-gradient(135deg, var(--millionaire-purple), #202b4a 58%, #18201f);
    box-shadow: 0 0 0 8px rgba(116, 85, 188, 0.1), 0 18px 44px rgba(0, 0, 0, 0.34);
    transform: rotate(45deg);
}

.millionaire-emblem::before,
.millionaire-emblem::after {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(213, 184, 90, 0.46);
    border-radius: 50%;
}

.millionaire-emblem::after {
    inset: 28px;
    border-color: rgba(255, 255, 255, 0.17);
}

.millionaire-emblem span {
    color: #fff7d4;
    font-size: 38px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(213, 184, 90, 0.38);
    transform: rotate(-45deg);
}

.millionaire-kicker,
.millionaire-result > span {
    color: var(--millionaire-gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.millionaire-home h3,
.millionaire-result h3 {
    max-width: 760px;
    margin: 8px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
}

.millionaire-home > p,
.millionaire-result > p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.millionaire-resume-card {
    display: flex;
    width: min(100%, 740px);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
    border-radius: 8px;
    background: rgba(17, 20, 28, 0.8);
    padding: 14px;
    text-align: left;
}

.millionaire-resume-card > div:first-child {
    display: grid;
    gap: 4px;
}

.millionaire-resume-card span {
    color: var(--muted);
    font-size: 12px;
}

.millionaire-home-actions {
    justify-content: center;
    margin-top: 18px;
}

.millionaire-start {
    min-width: 160px;
}

.millionaire-result-grid span,
.millionaire-stats-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.millionaire-actionsbar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
}

.millionaire-lifeline {
    display: grid;
    min-width: 118px;
    min-height: 52px;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--millionaire-blue) 54%, var(--line));
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(82, 122, 213, 0.15), rgba(20, 22, 31, 0.88));
    color: var(--text);
    padding: 6px 10px;
    cursor: pointer;
    text-align: left;
}

.millionaire-lifeline > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--millionaire-gold) 52%, var(--line));
    border-radius: 50%;
    color: var(--millionaire-gold);
    font-size: 11px;
    font-weight: 800;
}

.millionaire-lifeline strong {
    font-size: 12px;
}

.millionaire-lifeline:hover:not(:disabled) {
    border-color: var(--millionaire-gold);
    background: color-mix(in srgb, var(--millionaire-purple) 17%, var(--surface));
}

.millionaire-lifeline.is-used {
    opacity: 0.38;
    filter: grayscale(1);
    text-decoration: line-through;
}

.millionaire-ladder-toggle {
    display: none;
}

.millionaire-withdraw {
    margin-left: auto;
}

.millionaire-game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: start;
    gap: 14px;
    min-width: 0;
}

.millionaire-question-area {
    min-width: 0;
}

.millionaire-question-card {
    position: relative;
    display: grid;
    min-height: 190px;
    align-content: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--millionaire-blue) 58%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(82, 122, 213, 0.15), transparent 44%),
        linear-gradient(225deg, rgba(116, 85, 188, 0.1), transparent 42%),
        #151821;
    padding: 28px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.millionaire-question-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 210px;
    height: 150px;
    border: 1px solid rgba(213, 184, 90, 0.15);
    transform: rotate(-28deg);
    pointer-events: none;
}

.millionaire-question-card.is-final {
    border-color: var(--millionaire-gold);
    box-shadow: 0 0 24px rgba(213, 184, 90, 0.12), inset 0 0 38px rgba(116, 85, 188, 0.08);
}

.millionaire-question-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.millionaire-question-timer {
    --millionaire-timer-color: var(--accent);
    --millionaire-timer-progress: 360deg;
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--millionaire-timer-color) var(--millionaire-timer-progress),
        rgba(255, 255, 255, 0.08) 0
    );
    box-shadow: 0 0 22px color-mix(in srgb, var(--millionaire-timer-color) 30%, transparent);
    transition: background 240ms linear, box-shadow 220ms ease, transform 220ms ease;
}

.millionaire-question-timer::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid color-mix(in srgb, var(--millionaire-timer-color) 28%, var(--line));
    border-radius: 50%;
    background: radial-gradient(circle at 50% 36%, rgba(38, 44, 61, 0.96), #10131b 72%);
}

.millionaire-question-timer strong {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 25px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

#millionaire-timer-card.is-warning {
    --millionaire-timer-color: var(--millionaire-gold);
}

#millionaire-timer-card.is-urgent {
    --millionaire-timer-color: var(--danger);
    transform: scale(1.04);
}

#millionaire-timer-card.is-urgent strong {
    color: var(--danger);
    animation: millionaire-timer-pulse 900ms ease-in-out infinite;
}

#millionaire-timer-card.is-untimed {
    --millionaire-timer-color: var(--accent);
    transform: none;
}

#millionaire-timer-card.is-untimed strong {
    color: var(--text);
    font-size: 30px;
    animation: none;
}

.millionaire-question-card h3 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;
    font-size: clamp(19px, 2.2vw, 27px);
    line-height: 1.38;
    letter-spacing: 0;
}

.millionaire-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.millionaire-answer {
    display: grid;
    min-width: 0;
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
    color: var(--text);
    padding: 10px 13px;
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.millionaire-answer:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--millionaire-blue) 74%, var(--line));
    transform: translateY(-2px);
}

.millionaire-answer-letter {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--millionaire-gold) 60%, var(--line));
    border-radius: 50%;
    color: var(--millionaire-gold);
    font-size: 13px;
    font-weight: 800;
}

.millionaire-answer-text {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.millionaire-answer.is-selected {
    border-color: var(--millionaire-gold);
    background: color-mix(in srgb, var(--millionaire-gold) 14%, var(--surface));
    box-shadow: inset 0 0 22px rgba(213, 184, 90, 0.05);
}

.millionaire-answer.is-selected .millionaire-answer-letter {
    background: var(--millionaire-gold);
    color: #17140a;
}

.millionaire-answer.is-correct {
    border-color: var(--success);
    background: color-mix(in srgb, var(--success) 15%, var(--surface));
}

.millionaire-answer.is-wrong {
    border-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

.millionaire-answer.is-correct .millionaire-answer-letter {
    border-color: var(--success);
    background: var(--success);
    color: #07120c;
}

.millionaire-answer.is-wrong .millionaire-answer-letter {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.millionaire-answer.is-eliminated {
    opacity: 0.2;
    filter: grayscale(1);
}

.millionaire-decision {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    border: 1px solid color-mix(in srgb, var(--millionaire-gold) 42%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--millionaire-gold) 7%, var(--surface));
    padding: 10px;
}

.millionaire-decision p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.millionaire-decision > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.millionaire-feedback {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.millionaire-feedback.is-correct {
    border-left-color: var(--success);
}

.millionaire-feedback.is-wrong {
    border-left-color: var(--danger);
}

.millionaire-feedback p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.millionaire-feedback button {
    justify-self: start;
    margin-top: 4px;
}

.millionaire-ladder {
    position: sticky;
    top: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--millionaire-purple) 38%, var(--line));
    border-radius: 8px;
    background: linear-gradient(155deg, rgba(116, 85, 188, 0.09), transparent 42%), var(--surface);
    padding: 10px;
}

.millionaire-ladder-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.millionaire-ladder-heading button {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--muted);
    cursor: pointer;
    font-size: 22px;
}

.millionaire-ladder ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.millionaire-ladder li {
    display: grid;
    min-height: 29px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--muted);
    padding: 3px 7px;
    font-size: 10px;
}

.millionaire-ladder li span {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.millionaire-ladder li strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.millionaire-ladder li.is-guarantee {
    color: var(--millionaire-gold);
}

.millionaire-ladder li.is-current {
    border-color: var(--millionaire-gold);
    background: color-mix(in srgb, var(--millionaire-gold) 18%, var(--panel-2));
    color: var(--text);
}

.millionaire-ladder li.is-reached {
    color: var(--success);
}

.millionaire-ladder li.is-outside-mode {
    opacity: 0.28;
}

.millionaire-result {
    position: relative;
    display: grid;
    min-height: min(680px, calc(100dvh - 180px));
    align-content: center;
    justify-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(116, 85, 188, 0.12), transparent 44%),
        linear-gradient(225deg, rgba(213, 184, 90, 0.08), transparent 38%),
        #14171f;
    padding: 44px 20px;
    text-align: center;
}

.millionaire-result-emblem {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--millionaire-gold);
    border-radius: 50%;
    color: var(--millionaire-gold);
    font-size: 37px;
    font-weight: 800;
    box-shadow: 0 0 28px rgba(213, 184, 90, 0.13);
}

.millionaire-result-grid,
.millionaire-stats-grid {
    display: grid;
    width: min(100%, 760px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 23px 0 17px;
}

.millionaire-result-grid > div,
.millionaire-stats-grid > div {
    display: grid;
    min-width: 0;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 20, 27, 0.75);
    padding: 11px;
}

.millionaire-result-grid strong,
.millionaire-stats-grid strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.millionaire-result-actions {
    justify-content: center;
}

.millionaire-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.millionaire-confetti span {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 7px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: millionaire-confetti-fall 1.8s var(--millionaire-delay) ease-out forwards;
}

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

.millionaire-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 8, 12, 0.86);
    backdrop-filter: blur(5px);
}

.millionaire-modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(780px, calc(100dvh - 32px));
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--millionaire-purple) 42%, var(--line));
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
    padding: 20px;
    animation: millionaire-modal-in 180ms ease-out;
}

.millionaire-modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.millionaire-modal-heading h3 {
    margin: 0;
    font-size: 21px;
    letter-spacing: 0;
}

.millionaire-modal-heading button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 22px;
}

.millionaire-modal-body {
    color: var(--muted);
    line-height: 1.55;
}

.millionaire-modal-intro {
    margin: 0 0 14px;
}

.millionaire-modal-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.millionaire-rules-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.millionaire-audience-chart {
    display: grid;
    gap: 9px;
}

.millionaire-audience-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.millionaire-audience-item > span,
.millionaire-audience-item > strong {
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.millionaire-audience-track {
    height: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.millionaire-audience-bar {
    display: block;
    width: var(--millionaire-poll);
    height: 100%;
    background: linear-gradient(90deg, var(--millionaire-blue), var(--millionaire-purple));
    transition: width 600ms ease;
}

.millionaire-audience-item.is-eliminated {
    opacity: 0.25;
}

.millionaire-adviser-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.millionaire-adviser {
    display: grid;
    min-height: 64px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.millionaire-adviser:hover {
    border-color: var(--millionaire-gold);
}

.millionaire-adviser span {
    color: var(--muted);
    font-size: 10px;
}

.millionaire-phone-name {
    display: block;
    margin-bottom: 8px;
    color: var(--millionaire-gold);
}

.millionaire-phone-message {
    margin: 0;
    border-left: 3px solid var(--millionaire-purple);
    background: var(--surface);
    color: var(--text);
    padding: 13px;
    font-style: normal;
}

.millionaire-settings-list,
.millionaire-review-list {
    display: grid;
    gap: 8px;
}

.millionaire-setting-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 9px 11px;
}

.millionaire-setting-row > span {
    display: grid;
    gap: 2px;
}

.millionaire-setting-row small {
    color: var(--muted);
    font-size: 10px;
}

.millionaire-setting-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.millionaire-setting-row select {
    min-width: 120px;
}

.millionaire-review-item {
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 8px;
    background: var(--surface);
    padding: 11px;
}

.millionaire-review-item.is-correct {
    border-left-color: var(--success);
}

.millionaire-review-item.is-wrong {
    border-left-color: var(--danger);
}

.millionaire-review-item > span {
    color: var(--muted);
    font-size: 10px;
}

.millionaire-review-item > strong {
    color: var(--text);
    font-size: 13px;
}

.millionaire-review-item p {
    margin: 0;
    font-size: 11px;
}

.millionaire-review-correct {
    color: var(--success);
}

.millionaire-panel button:focus-visible,
.millionaire-panel input:focus-visible,
.millionaire-panel select:focus-visible,
.millionaire-modal button:focus-visible,
.millionaire-modal input:focus-visible,
.millionaire-modal select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--millionaire-blue) 40%, transparent);
    outline-offset: 2px;
}

.millionaire-high-contrast {
    --millionaire-gold: #ffe177;
    --millionaire-blue: #78a2ff;
    --muted: #d3d8e5;
}

.millionaire-font-small .millionaire-question-card h3 {
    font-size: 18px;
}

.millionaire-font-small .millionaire-answer-text {
    font-size: 12px;
}

.millionaire-font-large .millionaire-question-card h3 {
    font-size: clamp(23px, 2.5vw, 31px);
}

.millionaire-font-large .millionaire-answer-text {
    font-size: 16px;
}

.millionaire-no-motion *,
.millionaire-no-motion *::before,
.millionaire-no-motion *::after {
    animation: none !important;
    transition: none !important;
}

.is-answer-locking .millionaire-answer.is-selected {
    animation: millionaire-answer-lock 520ms ease-in-out infinite alternate;
}

.is-final-question .millionaire-question-card {
    animation: millionaire-final-glow 2.4s ease-in-out infinite alternate;
}

@keyframes millionaire-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes millionaire-answer-lock {
    from { filter: brightness(1); }
    to { filter: brightness(1.22); }
}

@keyframes millionaire-final-glow {
    from { box-shadow: 0 0 16px rgba(213, 184, 90, 0.08); }
    to { box-shadow: 0 0 30px rgba(213, 184, 90, 0.17); }
}

@keyframes millionaire-timer-pulse {
    50% { opacity: 0.55; }
}

@keyframes millionaire-confetti-fall {
    0% { opacity: 0; transform: translate3d(0, -18px, 0) rotate(0); }
    14% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--millionaire-x), 560px, 0) rotate(var(--millionaire-rotate)); }
}

@media (prefers-reduced-motion: reduce) {
    .millionaire-app *,
    .millionaire-app *::before,
    .millionaire-app *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1040px) {
    .millionaire-game-layout {
        grid-template-columns: minmax(0, 1fr) 170px;
    }

    .millionaire-actionsbar {
        flex-wrap: wrap;
    }

    .millionaire-withdraw {
        margin-left: 0;
    }
}

@media (max-width: 820px) {
    .millionaire-panel-heading {
        align-items: stretch;
    }

    .millionaire-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .millionaire-toolbar button {
        min-width: 0;
    }

    .millionaire-game-layout {
        grid-template-columns: 1fr;
    }

    .millionaire-ladder-toggle {
        display: inline-flex;
    }

    .millionaire-ladder {
        position: fixed;
        z-index: 242;
        top: 0;
        right: 0;
        width: min(340px, calc(100vw - 34px));
        height: 100dvh;
        overflow: auto;
        border-radius: 0;
        padding: 14px;
        transform: translateX(105%);
        transition: transform 200ms ease;
    }

    .millionaire-ladder.is-open {
        transform: translateX(0);
    }

    .millionaire-ladder-heading button {
        display: grid;
    }

    .millionaire-ladder-heading {
        margin-bottom: 10px;
    }

    .millionaire-ladder-backdrop {
        position: fixed;
        z-index: 241;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(6, 8, 11, 0.72);
    }

    .millionaire-ladder li {
        min-height: 39px;
    }
}

@media (max-width: 620px) {
    .millionaire-home,
    .millionaire-result {
        min-height: 580px;
        padding: 32px 12px;
    }

    .millionaire-emblem {
        width: 98px;
        margin-bottom: 20px;
    }

    .millionaire-emblem span {
        font-size: 30px;
    }

    .millionaire-resume-card {
        align-items: stretch;
        flex-direction: column;
    }

    .millionaire-resume-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .millionaire-home-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 420px);
    }

    .millionaire-actionsbar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .millionaire-lifeline {
        min-width: 0;
        min-height: 66px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 3px;
        padding: 6px 3px;
        text-align: center;
    }

    .millionaire-lifeline > span {
        width: 32px;
        height: 32px;
    }

    .millionaire-lifeline strong {
        font-size: 10px;
    }

    .millionaire-ladder-toggle,
    .millionaire-withdraw {
        min-width: 0;
        grid-column: span 1;
        padding-inline: 7px;
        font-size: 11px;
    }

    .millionaire-question-card {
        min-height: 170px;
        padding: 20px 16px;
    }

    .millionaire-question-meta {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .millionaire-question-timer {
        width: 68px;
        height: 68px;
        align-self: auto;
    }

    .millionaire-question-timer strong {
        font-size: 22px;
    }

    .millionaire-answers {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .millionaire-answer {
        min-height: 60px;
    }

    .millionaire-decision {
        align-items: stretch;
        flex-direction: column;
    }

    .millionaire-decision > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .millionaire-result-grid,
    .millionaire-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .millionaire-result-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .millionaire-adviser-list {
        grid-template-columns: 1fr;
    }

    .millionaire-modal-card {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .millionaire-actionsbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #millionaire-phone {
        grid-column: span 2;
    }

    .millionaire-answer {
        grid-template-columns: 36px minmax(0, 1fr);
        padding-inline: 8px;
    }

    .millionaire-answer-letter {
        width: 34px;
        height: 34px;
    }

    .millionaire-result-grid,
    .millionaire-result-actions,
    .millionaire-decision > div {
        grid-template-columns: 1fr;
    }

}

.vc-code-preview { display:block; width:100%; height:100%; }

/* Home collection */
.app-home { --home-tint: #62d5c1; }
.app-home-header { display:flex; flex-direction:column; align-items:stretch; gap:26px; width:100%; }
.app-home-welcome { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:16px 0 4px; }
.app-home-eyebrow { color:#79baaF; font-size:10px; font-weight:750; letter-spacing:2px; }
.app-home-welcome h1 { margin:14px 0; font-size:clamp(30px,3.6vw,48px); line-height:1.12; letter-spacing:-1.8px; }
.app-home-welcome h1 span { color:#74d8c5; }
.app-home-welcome p { margin:0; color:var(--muted); font-size:14px; line-height:1.6; }
.app-home-overview { display:flex; flex-direction:column; gap:6px; border-left:1px solid var(--line); padding:12px 0 12px 30px; min-width:175px; }
.app-home-overview strong { font-size:48px; line-height:1; font-weight:650; letter-spacing:-2px; }
.app-home-overview span { color:var(--text); font-size:13px; }
.app-home-overview small { color:var(--muted); margin-top:8px; font-size:11px; }
.app-home-search { width:100%; max-width:none; min-height:56px; border-radius:14px; background:#181d23; box-shadow:0 8px 28px #00000018; }
.app-home-category-bar { padding:4px 0 22px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.app-home-category-bar > span { display:none; }
.app-home-category-filters { display:flex; flex-wrap:wrap; gap:8px; }
.app-home-category-filter { flex:0 0 auto; min-height:38px; padding:8px 13px; border-radius:10px; background:transparent; gap:8px; }
.app-home-category-filter[aria-pressed="true"] { background:#163630; border-color:#286e61; color:#abf1df; box-shadow:none; }
.app-home-grid { gap:36px; }
.app-home-category-section { --home-tint:#62d5c1; }
.app-home-category-section[data-category="yapay-zeka"] { --home-tint:#bda1ff; }
.app-home-category-section[data-category="uretimlilik"] { --home-tint:#f2cb85; }
.app-home-category-section[data-category="gelistirici"] { --home-tint:#8bb8f9; }
.app-home-category-section[data-category="medya"] { --home-tint:#e8a5c9; }
.app-home-category-section[data-category="guvenlik"] { --home-tint:#97caac; }
.app-home-category-heading { margin-bottom:16px; }
.app-home-category-symbol { color:var(--home-tint); border:0; background:color-mix(in srgb,var(--home-tint) 10%,transparent); }
.app-home-category-count { border:1px solid var(--line); padding:5px 9px; border-radius:7px; }
.app-home-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.app-home-card, .app-home-card.has-icon { position:relative; grid-template-columns:1fr 28px; grid-template-rows:40px 1fr; align-items:start; min-height:174px; gap:17px 10px; padding:20px; border-color:#2a3039; border-radius:16px; background:linear-gradient(130deg,#191e25,#14181e); box-shadow:none; }
.app-home-card-icon { grid-column:1; grid-row:1; width:40px; height:40px; border:0; border-radius:11px; color:var(--home-tint); background:color-mix(in srgb,var(--home-tint) 10%,transparent); }
.app-home-card-copy { grid-row:2; grid-column:1 / -1; gap:8px; }
.app-home-card-name { font-size:15px; }
.app-home-card-description { font-size:12px; line-height:1.6; color:#9faebf; }
.app-home-card-arrow { grid-row:1; grid-column:2; align-self:center; border:0; background:none; color:#758596; }
.app-home-card:hover { border-color:color-mix(in srgb,var(--home-tint) 50%,#2a3039); background:linear-gradient(130deg,#202832,#171e25); box-shadow:0 10px 24px #00000020; }
.app-home-card:hover .app-home-card-arrow { color:var(--home-tint); background:transparent; }
@media(max-width:1100px) { .app-home-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .app-home-welcome { padding-top:4px; } .app-home-overview { display:none; }
 .app-home-header { gap:20px; } .app-home-welcome h1 { letter-spacing:-1px; }
 .app-home-eyebrow { font-size:9px; letter-spacing:1.4px; }
 .app-home-category-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
 .app-home-category-filter { min-height:44px; }
 .app-home-category-grid { grid-template-columns:1fr; gap:10px; }
 .app-home-card,.app-home-card.has-icon { grid-template-columns:40px minmax(0,1fr) 24px; grid-template-rows:auto; min-height:108px; padding:16px; gap:14px; align-items:center; }
 .app-home-card-icon { grid-column:1;grid-row:1; } .app-home-card-copy { grid-column:2;grid-row:1; } .app-home-card-arrow { grid-column:3;grid-row:1; }
}

.app-home-category-filter { width:auto; }

/* Compact home cards without application icons. */
.app-home-card { grid-template-columns:minmax(0,1fr) 28px; grid-template-rows:auto; min-height:132px; align-items:center; gap:14px; }
.app-home-card-copy { grid-column:1; grid-row:1; }
.app-home-card-arrow { grid-column:2; grid-row:1; }
@media(max-width:600px) {
 .app-home-card { grid-template-columns:minmax(0,1fr) 24px; min-height:108px; }
 .app-home-card-copy { grid-column:1; }
 .app-home-card-arrow { grid-column:2; }
}

/* Balanced category navigation. */
.app-home-category-filters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.app-home-category-filter { width:100%; min-height:42px; padding:9px 10px; border-color:transparent; background:#171c22; border-radius:10px; }
.app-home-category-filter:first-child { grid-row:span 2; flex-direction:column; gap:7px; }
.app-home-category-filter small { background:transparent; }
.app-home-category-filter:hover { background:#202831; border-color:#36434b; }
.app-home-category-filter[aria-pressed="true"] { background:#17352f; border-color:#2b7567; }
@media(max-width:1100px) {
 .app-home-category-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .app-home-category-filter:first-child { grid-row:auto; flex-direction:row; }
}
@media(max-width:600px) {
 .app-home-category-filters { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:7px; padding-bottom:8px; }
 .app-home-category-filter { width:auto; flex:0 0 auto; min-height:42px; padding:10px 13px; }
}

/* Eight independent category toggles. Empty selection shows all apps. */
.app-home-category-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
.app-home-category-filter:first-child { grid-row:auto; flex-direction:row; gap:8px; }
@media(min-width:601px) and (max-width:900px) { .app-home-category-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }



/* Sidebar identity */
.brand { width:100%; padding:4px 0 22px; margin-bottom:16px; gap:12px; border:0; border-bottom:1px solid #ffffff0c; border-radius:0; background:transparent; text-align:left; color:var(--text); }
.brand-mark { position:relative; flex:0 0 44px; width:44px; height:44px; border-radius:14px; background:linear-gradient(145deg,#243e3c,#192825); border:1px solid #40645b; color:#99ebd7; font-size:24px; font-weight:750; box-shadow:inset 0 1px 0 #ffffff12; }
.brand-mark-dot { position:absolute; right:7px; bottom:7px; width:4px; height:4px; border-radius:50%; background:#99ebd7; }
.brand-copy { min-width:0; }
.brand strong { font-size:17px; font-weight:750; letter-spacing:-.4px; }
.brand strong span { color:#80cfbd; font-weight:500; }
.brand small { margin-top:5px; color:#8596a5; font-size:11px; line-height:1.4; }
.brand:hover .brand-mark { border-color:#80cfbd; background:#243e37; }
.brand:focus-visible { outline:2px solid #80cfbd; outline-offset:5px; }
@media(max-width:900px) { .brand { padding:0; border-bottom:0; margin-bottom:0; } .brand-mark { flex-basis:38px; width:38px; height:38px; border-radius:12px; font-size:22px; } }
