:root {
    --bg: #080b16;
    --bg-2: #111827;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-dark: #121826;
    --text: #111827;
    --text-inverse: #f8fafc;
    --muted: #64748b;
    --muted-inverse: #aeb9d1;
    --line: #e2e8f0;
    --line-dark: rgba(255, 255, 255, .12);
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --accent: #38bdf8;
    --accent-2: #a855f7;
    --warning: #facc15;
    --danger: #ef4444;
    --shadow: 0 18px 50px rgba(15, 23, 42, .13);
    --shadow-strong: 0 24px 70px rgba(0, 0, 0, .38);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .18), transparent 34rem),
        linear-gradient(180deg, #eef3fb 0%, #f8fafc 38%, #eef2f7 100%);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

body::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(8, 11, 22, .92);
    border-bottom: 1px solid var(--line-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.header-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 900;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    box-shadow: 0 0 22px rgba(34, 197, 94, .38);
    color: #06101f;
    display: inline-flex;
    font-size: .82rem;
    height: 36px;
    justify-content: center;
    width: 42px;
}

.main-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #dbeafe;
    font-weight: 800;
    padding: 9px 12px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.main-nav .nav-admin {
    background: var(--primary);
    color: #06101f;
    margin-left: 4px;
}

.main-nav .nav-admin:hover,
.main-nav .nav-admin.is-active {
    background: #4ade80;
    color: #06101f;
}

.menu-toggle {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    cursor: pointer;
    display: none;
    height: 42px;
    padding: 9px;
    width: 46px;
}

.menu-toggle span {
    background: #fff;
    border-radius: 99px;
    display: block;
    height: 2px;
    margin: 5px 0;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(168, 85, 247, .38), transparent 25rem),
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, .25), transparent 28rem),
        linear-gradient(135deg, #080b16 0%, #10172a 58%, #06101f 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero::after {
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .18), transparent);
    content: "";
    height: 1px;
    inset: auto 0 0;
    position: absolute;
}

.hero-content {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    min-height: 500px;
    padding: 62px 0;
}

.hero-copy h1 {
    font-size: clamp(2.25rem, 5.5vw, 4.65rem);
    line-height: 1.02;
    margin: 8px 0 18px;
    max-width: 850px;
}

.hero-copy p {
    color: #d8e2f3;
    font-size: 1.08rem;
    max-width: 700px;
}

.hero-actions,
.admin-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-panel {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    padding: 26px;
    position: relative;
}

.hero-panel::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, .45), rgba(56, 189, 248, .45));
    border-radius: inherit;
    content: "";
    inset: -1px;
    opacity: .26;
    position: absolute;
    z-index: -1;
}

.controller-visual {
    background:
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, .22), transparent 5rem),
        radial-gradient(circle at 82% 48%, rgba(56, 189, 248, .2), transparent 5rem),
        #0b1220;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 38px;
    height: 210px;
    position: relative;
}

.stick,
.button,
.dpad {
    position: absolute;
}

.stick {
    background: #1f2937;
    border: 9px solid #030712;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08), 0 0 18px rgba(34, 197, 94, .25);
    height: 58px;
    width: 58px;
}

.stick-left {
    left: 25%;
    top: 36%;
}

.stick-right {
    right: 25%;
    top: 48%;
}

.dpad {
    background: linear-gradient(#e5e7eb, #94a3b8);
    height: 74px;
    left: 11%;
    top: 35%;
    width: 22px;
}

.dpad::after {
    background: inherit;
    content: "";
    height: 22px;
    left: -26px;
    position: absolute;
    top: 26px;
    width: 74px;
}

.button {
    border-radius: 50%;
    height: 28px;
    right: 12%;
    width: 28px;
}

.button-a { background: var(--primary); top: 34%; }
.button-b { background: var(--accent); top: 50%; right: 20%; }
.button-x { background: var(--accent-2); top: 18%; right: 20%; }
.button-y { background: var(--warning); top: 34%; right: 28%; }

.hero-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
}

.hero-stats div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 16px;
}

.hero-stats strong {
    color: #fff;
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.hero-stats span {
    color: var(--muted-inverse);
    font-size: .9rem;
    font-weight: 700;
}

.btn {
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7dd3fc);
    box-shadow: 0 12px 30px rgba(34, 197, 94, .26);
    color: #06101f;
}

.btn-secondary {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}

.form-actions .btn-secondary,
.admin-header .btn-secondary {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.section {
    padding: 48px 0;
}

.section-tight {
    padding-top: 18px;
}

.section-title,
.admin-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title h2,
.page-heading h1,
.admin-header h1 {
    margin-bottom: 4px;
}

.section-link,
.card-action,
.stat-card a {
    color: #0f766e;
    font-weight: 900;
}

.page-heading {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
    margin: 0 auto 26px;
    max-width: 820px;
    padding: 24px;
}

.eyebrow {
    color: #0f766e;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

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

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.related-games-grid {
    gap: 10px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.related-games-grid .item-card {
    border-radius: 10px;
}

.related-game-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.related-games-grid .item-card img.game-cover {
    aspect-ratio: 3 / 4;
    padding: 6px;
}

.related-games-grid .item-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
}

.related-games-grid .item-card-body span {
    font-size: .68rem;
    line-height: 1.2;
}

.related-games-grid .item-card-body h3 {
    font-size: .86rem;
    line-height: 1.18;
    margin-bottom: 8px;
}

.related-game-action {
    color: var(--brand-navy);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    margin-top: auto;
    padding-top: 8px;
}

.games-card-grid {
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.games-card-grid .item-card {
    display: flex;
    flex-direction: column;
}

.games-card-grid .item-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.game-card-title-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-card-title-row h2 {
    flex: 1;
    margin: 0;
}

.game-rating-badge {
    align-items: center;
    color: var(--brand-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .92rem;
    font-weight: 950;
    gap: 4px;
    height: auto;
    justify-content: center;
    line-height: 1;
    min-width: auto;
    padding: 2px 0;
    text-align: center;
}

.game-rating-badge::before {
    color: #facc15;
    content: "\2605";
    font-size: 1rem;
    line-height: 1;
}

.game-card-publisher,
.game-card-year {
    margin: 0;
}

.game-card-publisher {
    font-weight: 800;
}

.game-card-year {
    color: var(--muted);
    font-size: .95rem;
    margin-top: 4px;
}

.games-card-grid .card-action {
    margin-top: auto;
    padding-top: 18px;
}

.item-card,
.stat-card,
.form-card,
.empty-state,
.table-wrapper,
.detail-content {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.item-card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.item-card:hover {
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
    transform: translateY(-4px);
}

.item-card img,
.card-media-placeholder {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    width: 100%;
}

img.game-cover,
.item-card img.game-cover,
.detail-media img.game-cover,
.profile-game-media img.game-cover,
.dg-daily-media img.game-cover,
.dg-item-card img.game-cover,
.current-image img.game-cover {
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 100, 35, .08), transparent 8rem),
        linear-gradient(135deg, #f8fafc, #edf4fb);
    object-fit: contain;
    object-position: center;
}

.item-card img.game-cover {
    aspect-ratio: 3 / 4;
    padding: 10px;
}

.profile-game-media img.game-cover,
.dg-item-card img.game-cover {
    padding: 12px;
}

.detail-media img.game-cover {
    padding: 12px;
}

.dg-item-card:hover img.game-cover {
    transform: none;
}

.card-media-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 22% 25%, rgba(34, 197, 94, .35), transparent 5rem),
        radial-gradient(circle at 80% 55%, rgba(168, 85, 247, .28), transparent 6rem),
        linear-gradient(135deg, #111827, #0f172a);
    color: #dbeafe;
    display: flex;
    font-weight: 900;
    justify-content: center;
    text-transform: uppercase;
}

.card-media-placeholder span {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 8px 12px;
}

.item-card-body {
    padding: 18px;
}

.item-card-body span,
.stat-card span {
    color: var(--muted);
    display: block;
    font-size: .86rem;
    font-weight: 850;
    margin-bottom: 6px;
}

.item-card-body h2,
.item-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.item-card-body p {
    color: #475569;
}

.game-search {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(9, 34, 71, .1);
    margin: 0 auto 28px;
    max-width: 760px;
    padding: 18px;
}

.game-search label {
    color: var(--brand-navy);
    font-size: .9rem;
    font-weight: 950;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-search-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto auto;
}

.game-search input[type="search"] {
    min-height: 48px;
}

.game-table-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 12px;
    position: relative;
    z-index: 40;
}

.game-table-toolbar {
    align-items: center;
    background: #1f2937;
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
}

.game-table-dropdown {
    position: relative;
}

.game-table-dropdown summary,
.game-table-export {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #e5edf7;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 850;
    min-height: 38px;
    padding: 8px 12px;
}

.game-table-dropdown summary::-webkit-details-marker {
    display: none;
}

.game-table-dropdown summary::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    content: "";
    height: 0;
    margin-left: 8px;
    width: 0;
}

.game-table-dropdown[open] summary,
.game-table-export:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.game-table-dropdown-menu {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .14);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(9, 34, 71, .2);
    color: var(--brand-navy);
    left: 0;
    min-width: 270px;
    padding: 10px;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 80;
}

.game-table-dropdown-menu a,
.game-column-menu label {
    align-items: center;
    border-radius: 6px;
    color: var(--brand-navy);
    display: flex;
    font-weight: 850;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 12px;
}

.game-table-dropdown-menu a:hover,
.game-table-dropdown-menu a.is-active,
.game-column-menu label:hover {
    background: #f4f8fc;
}

.game-column-menu label {
    cursor: pointer;
    justify-content: flex-start;
    margin: 0;
}

.game-column-menu input {
    min-height: auto;
    width: auto;
}

.game-table-export {
    text-decoration: none;
}

.game-search-inline {
    align-items: end;
    box-shadow: 0 14px 34px rgba(9, 34, 71, .08);
    display: grid;
    flex: 0 1 460px;
    margin: 0;
    max-width: 460px;
    padding: 10px 12px;
}

.game-search-inline label {
    font-size: .74rem;
    margin-bottom: 5px;
}

.game-search-inline .game-search-row {
    grid-template-columns: minmax(180px, 1fr) auto auto;
}

.game-search-inline input[type="search"] {
    min-height: 40px;
}

.game-search-inline .btn {
    min-height: 40px;
    padding: 8px 13px;
}

.game-table-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

.game-table-pagination span,
.game-table-pagination a {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(9, 34, 71, .12);
    border-radius: 6px;
    color: var(--brand-navy);
    font-size: .9rem;
    font-weight: 850;
    min-height: 36px;
    padding: 7px 10px;
}

.game-table-pagination a.is-active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.game-table-pagination a.is-disabled {
    opacity: .48;
    pointer-events: none;
}

.games-list-wrapper {
    margin-top: 8px;
    overflow: visible;
    position: relative;
    z-index: 20;
}

.games-list-table {
    min-width: 680px;
}

.games-list-table thead {
    position: relative;
    z-index: 1;
}

.games-list-table tbody tr {
    position: relative;
}

.games-list-table tbody tr:hover {
    z-index: 50;
}

.games-list-table td {
    position: relative;
}

.game-list-title {
    color: var(--brand-navy);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    position: relative;
}

.videogame-list-title {
    color: var(--brand-navy);
    font-weight: 900;
}

.game-list-title:hover .game-list-tooltip,
.game-list-title:focus-within .game-list-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.game-list-tooltip {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .14);
    border-radius: var(--radius);
    bottom: calc(100% + 10px);
    box-shadow: 0 18px 44px rgba(9, 34, 71, .22);
    display: block;
    left: 0;
    opacity: 0;
    padding: 14px;
    pointer-events: none;
    position: absolute;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    visibility: hidden;
    width: 300px;
    z-index: 200;
}

.game-list-tooltip::after {
    background: #fff;
    border-bottom: 1px solid rgba(9, 34, 71, .14);
    border-right: 1px solid rgba(9, 34, 71, .14);
    bottom: -6px;
    content: "";
    height: 10px;
    left: 18px;
    position: absolute;
    transform: rotate(45deg);
    width: 10px;
}

.game-list-title.tooltip-opens-down .game-list-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
}

.game-list-title.tooltip-opens-down .game-list-tooltip::after {
    border-bottom: 0;
    border-left: 1px solid rgba(9, 34, 71, .14);
    border-right: 0;
    border-top: 1px solid rgba(9, 34, 71, .14);
    bottom: auto;
    top: -6px;
}

.game-list-tooltip img {
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 100, 35, .08), transparent 8rem),
        linear-gradient(135deg, #f8fafc, #edf4fb);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    max-width: none;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.games-list-table th:last-child,
.games-list-table td:last-child {
    text-align: right;
    width: 140px;
}

.game-list-action {
    min-height: 38px;
    padding: 8px 14px;
}

.detail-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(260px, 420px) 1fr;
}

.detail-media img,
.image-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.image-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #111827, #1e293b);
    color: #dbeafe;
    display: flex;
    font-weight: 900;
    justify-content: center;
}

.detail-content {
    padding: 28px;
}

.meta-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 24px 0 0;
}

.meta-list div {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

.meta-list dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.meta-list dd {
    margin: 4px 0 0;
}

.meta-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-platforms a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-navy);
    display: inline-flex;
    font-size: .88rem;
    font-weight: 850;
    padding: 5px 9px;
}

.detail-source {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 750;
    margin: 16px 0 0;
}

.detail-source a {
    color: var(--brand-navy);
    font-weight: 900;
}

.detail-subtitle {
    color: var(--muted);
    font-weight: 750;
    margin-top: -8px;
}

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

.platform-list a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-weight: 850;
    padding: 10px 14px;
}

.platform-detail-list a {
    align-items: flex-start;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.platform-detail-list span,
.platform-detail-list small {
    color: var(--muted);
    font-weight: 700;
}

.platform-game-thumb {
    aspect-ratio: 3 / 4;
    background: #f4f8fc;
    border-radius: 10px;
    height: 96px;
    object-fit: contain;
    padding: 6px;
    width: 72px;
}

.admin-actions {
    margin-bottom: 22px;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.stat-card::after {
    background: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(56, 189, 248, .12));
    content: "";
    height: 100px;
    position: absolute;
    right: -28px;
    top: -35px;
    transform: rotate(18deg);
    width: 140px;
}

.stat-card strong {
    color: #0f172a;
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
}

.table-wrapper {
    overflow-x: auto;
}

.games-list-wrapper {
    overflow: visible;
}

.admin-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 15px 14px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #0f172a;
    color: #dbeafe;
    font-size: .78rem;
    text-transform: uppercase;
}

.sort-link {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 8px;
    min-height: 24px;
}

.sort-link:hover,
.sort-link.is-active {
    color: #86efac;
}

.sort-icon {
    display: inline-block;
    height: 14px;
    position: relative;
    width: 10px;
}

.sort-icon::before,
.sort-icon::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    content: "";
    left: 1px;
    opacity: .38;
    position: absolute;
}

.sort-icon::before {
    border-bottom: 5px solid currentColor;
    top: 1px;
}

.sort-icon::after {
    border-top: 5px solid currentColor;
    bottom: 1px;
}

.sort-link.sort-asc .sort-icon::before,
.sort-link.sort-desc .sort-icon::after {
    opacity: 1;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.table-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.table-actions form {
    margin: 0;
}

.table-actions button {
    background: none;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    padding: 0;
}

.admin-games-table-wrapper {
    overflow: visible;
    position: relative;
    z-index: 20;
}

.admin-games-table {
    min-width: 900px;
}

.admin-games-table thead {
    position: relative;
    z-index: 1;
}

.admin-games-table tbody tr {
    position: relative;
}

.admin-games-table tbody tr:hover {
    z-index: 50;
}

.admin-games-table td {
    position: relative;
}

.admin-game-title {
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    font-weight: 650;
    position: relative;
}

.admin-game-title:hover .admin-game-tooltip,
.admin-game-title:focus-within .admin-game-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.admin-game-tooltip {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .14);
    border-radius: var(--radius);
    bottom: calc(100% + 10px);
    box-shadow: 0 18px 44px rgba(9, 34, 71, .22);
    color: var(--brand-navy);
    display: grid;
    gap: 8px;
    left: 0;
    min-width: 300px;
    opacity: 0;
    padding: 14px;
    pointer-events: none;
    position: absolute;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    visibility: hidden;
    z-index: 200;
}

.admin-game-tooltip::after {
    background: #fff;
    border-bottom: 1px solid rgba(9, 34, 71, .14);
    border-right: 1px solid rgba(9, 34, 71, .14);
    bottom: -6px;
    content: "";
    height: 10px;
    left: 18px;
    position: absolute;
    transform: rotate(45deg);
    width: 10px;
}

.admin-game-tooltip img,
.admin-game-tooltip-cover {
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 100, 35, .08), transparent 8rem),
        linear-gradient(135deg, #f8fafc, #edf4fb);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    max-width: none;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.admin-game-tooltip-cover {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 900;
    justify-content: center;
}

.admin-game-tooltip strong {
    font-size: .84rem;
}

.admin-game-actions-cell {
    justify-content: flex-end;
    position: relative;
}

.admin-game-actions {
    margin-left: auto;
    position: relative;
}

.admin-game-actions summary {
    align-items: center;
    background: linear-gradient(135deg, var(--brand-orange), #ff985c);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(240, 100, 35, .22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    list-style: none;
    min-height: 38px;
    padding: 8px 14px;
    user-select: none;
}

.admin-game-actions summary::-webkit-details-marker {
    display: none;
}

.admin-game-actions summary::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    content: "";
    height: 0;
    margin-left: 8px;
    width: 0;
}

.admin-game-actions[open] summary::after {
    transform: rotate(180deg);
}

.admin-game-actions-menu {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .12);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(9, 34, 71, .18);
    min-width: 150px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 25;
}

.admin-game-actions-menu a,
.admin-game-actions-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--brand-navy);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 850;
    min-height: 36px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.admin-game-actions-menu a:hover,
.admin-game-actions-menu button:hover {
    background: #f4f8fc;
}

.admin-game-actions-menu form {
    margin: 0;
}

.admin-game-actions-menu button {
    color: var(--danger);
}

.record-media-icon,
.record-media-missing {
    border-radius: 6px;
    flex: 0 0 auto;
    height: 28px;
    width: 28px;
}

.record-media-icon {
    background: #f8fafc;
    border: 1px solid var(--line);
    object-fit: contain;
    padding: 3px;
}

.record-media-missing {
    align-items: center;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 950;
    justify-content: center;
}

.form-card {
    padding: 24px;
}

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

label,
fieldset {
    color: var(--text);
    display: grid;
    font-weight: 850;
    gap: 7px;
    margin-bottom: 16px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
    outline: none;
}

input[type="file"] {
    background: #f8fafc;
}

textarea {
    resize: vertical;
}

.news-meta {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.news-content {
    color: #1f2937;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.news-source {
    margin-top: 24px;
}

.status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 900;
    padding: 6px 10px;
    text-transform: uppercase;
}

.status-publicada {
    background: #dcfce7;
    color: #166534;
}

.status-rascunho {
    background: #fef3c7;
    color: #92400e;
}

.checkbox-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 9px;
    padding: 16px;
}

.checkbox-group legend {
    font-weight: 950;
    padding: 0 6px;
}

.checkbox-group label {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    display: flex;
    font-weight: 700;
    gap: 9px;
    margin: 0;
    padding: 10px;
}

.checkbox-group input {
    min-height: auto;
    width: auto;
}

.current-image {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px;
}

.current-image img {
    border-radius: var(--radius);
    height: 84px;
    object-fit: cover;
    width: 120px;
}

.alert {
    border-radius: var(--radius);
    font-weight: 800;
    max-height: 160px;
    margin-top: 18px;
    overflow: hidden;
    padding: 14px 16px;
    transition: opacity .25s ease, transform .25s ease, max-height .35s ease, margin .35s ease, padding .35s ease;
}

.alert.is-dismissing {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    transform: translateY(-8px);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert p {
    margin: 0;
}

.empty-state {
    color: var(--muted);
    padding: 24px;
}

.small-text {
    font-size: .9rem;
}

.auth-layout {
    display: grid;
    min-height: 58vh;
    place-items: center;
}

.auth-panel {
    max-width: 620px;
    width: 100%;
}

.auth-panel > p:not(.eyebrow) {
    color: var(--muted);
}

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

.profile-page {
    padding-top: 38px;
}

.profile-header {
    margin-bottom: 26px;
}

.profile-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.profile-main {
    display: grid;
    gap: 34px;
    min-width: 0;
}

.profile-section .section-title {
    margin-bottom: 16px;
}

.profile-sidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 94px;
}

.profile-add-card {
    padding: 18px;
}

.profile-add-card h2 {
    color: var(--brand-navy);
    font-size: 1.2rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.profile-add-card label {
    font-size: .92rem;
    margin-bottom: 12px;
}

.profile-add-card select {
    min-height: 42px;
    padding: 9px 10px;
}

.profile-add-card .btn {
    min-height: 40px;
    padding: 9px 14px;
    width: 100%;
}

.library-grid,
.profile-games,
.comments-list {
    display: grid;
    gap: 16px;
}

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

.library-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.library-card,
.profile-game-card,
.comment-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.library-card {
    align-items: center;
    display: block;
    min-height: 128px;
    padding: 12px;
    position: relative;
}

.library-filter-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 76px 1fr;
    min-height: 104px;
    padding: 0 28px 0 0;
    text-align: left;
    width: 100%;
}

.library-filter-button:hover,
.library-filter-button.is-active {
    border-color: rgba(240, 100, 35, .32);
    background: rgba(240, 100, 35, .06);
}

.library-filter-button.is-active {
    box-shadow: inset 0 0 0 2px rgba(240, 100, 35, .24);
}

.library-filter-button img,
.library-card-placeholder {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    width: 76px;
}

.library-filter-button img {
    background: #f8fafc;
    object-fit: contain;
    padding: 6px;
}

.library-card-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 20% 25%, rgba(240, 100, 35, .14), transparent 4rem),
        linear-gradient(135deg, #f8fafc, #eaf1f7);
    color: var(--muted);
    display: flex;
    font-size: .72rem;
    font-weight: 900;
    justify-content: center;
    text-transform: uppercase;
}

.library-card strong {
    color: var(--brand-navy);
    display: inline;
    font-size: 1.05rem;
}

.library-card small {
    color: var(--muted);
    font-size: .92rem;
    margin-left: 5px;
}

.danger-action {
    color: var(--danger);
}

.library-remove-form {
    margin: 0;
    position: absolute;
    right: 8px;
    top: 8px;
}

.library-remove-form button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--danger);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .82rem;
    font-weight: 950;
    height: 26px;
    justify-content: center;
    padding: 0;
    width: 26px;
}

.library-remove-form button:hover {
    background: #fee2e2;
}

.profile-game-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.profile-game-media img,
.profile-game-media .card-media-placeholder {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

.profile-game-content {
    padding: 18px;
}

.profile-game-content > span,
.comment-card span {
    color: var(--muted);
    display: block;
    font-size: .86rem;
    font-weight: 850;
}

.profile-game-content h3 {
    color: var(--brand-navy);
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.field-label {
    color: var(--text);
    font-weight: 850;
    margin: 10px 0 8px;
}

.rating-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.rating-large {
    margin-bottom: 18px;
}

.rating-summary strong {
    color: var(--brand-navy);
    font-weight: 950;
}

.rating-summary span:not(.stars):not(.star) {
    color: var(--muted);
    font-size: .9rem;
}

.rating-summary .stars {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
}

.rating-summary .star {
    color: #cbd5e1;
    display: inline-flex;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
}

.star.is-filled {
    color: #facc15;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
}

.rating-input label {
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.35rem;
    line-height: 1;
    margin: 0;
    padding: 0 2px;
    transition: color .15s ease, transform .15s ease;
    width: auto;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #facc15;
}

.rating-input label:hover {
    transform: translateY(-1px);
}

.review-form {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

.review-detail-form {
    margin-bottom: 18px;
}

.compact-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
}

.compact-actions .btn {
    min-height: 40px;
    padding: 9px 10px;
}

.profile-game-card .compact-actions {
    grid-template-columns: 1fr;
}

.modal-card .compact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    align-items: center;
    background: rgba(8, 11, 22, .62);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 80;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(8, 11, 22, .35);
    max-height: calc(100vh - 36px);
    max-width: 560px;
    overflow-y: auto;
    padding: 22px;
    width: min(100%, 560px);
}

.modal-header {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-header h2 {
    color: var(--brand-navy);
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
}

.modal-close {
    align-items: center;
    background: #eef2f7;
    border: 1px solid #d7e0ea;
    border-radius: var(--radius);
    color: var(--brand-navy);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    line-height: 1;
    width: 38px;
}

.comment-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.comment-card strong {
    color: var(--brand-navy);
}

.comment-card p {
    color: #334155;
    margin: 0;
}

.status-ativo {
    background: #dcfce7;
    color: #166534;
}

.status-inativo {
    background: #fef3c7;
    color: #92400e;
}

.status-bloqueado {
    background: #fee2e2;
    color: #991b1b;
}

.site-footer {
    background: #080b16;
    color: #cbd5e1;
    margin-top: 40px;
    padding: 26px 0;
}

.footer-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: #86efac;
    font-weight: 850;
}

@media (max-width: 860px) {
    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panel {
        max-width: 540px;
    }

    .detail-layout,
    .form-grid,
    .profile-grid,
    .profile-layout,
    .profile-game-card {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

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

    .profile-game-media img,
    .profile-game-media .card-media-placeholder {
        min-height: 0;
    }
}

@media (max-width: 1180px) {
    .games-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .related-games-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .games-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .games-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .header-content,
    .section-title,
    .admin-header,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 16px;
        top: 15px;
    }

    .header-content {
        min-height: 72px;
        padding: 16px 0;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
    }

    .main-nav .nav-admin {
        margin-left: 0;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 34px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

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

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

    .profile-games {
        grid-template-columns: 1fr;
    }

    .compact-actions {
        grid-template-columns: 1fr;
    }

    .game-search-row {
        grid-template-columns: 1fr;
    }

    .game-search-row .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .games-card-grid {
        grid-template-columns: 1fr;
    }

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

/* Home redesenhada - escopo isolado para preservar a arte da pagina inicial */
.dicigames-home {
    --dg-primary: #6366f1;
    --dg-primary-glow: rgba(99, 102, 241, .5);
    --dg-secondary: #06b6d4;
    --dg-accent: #f43f5e;
    --dg-bg-dark: #eaf3fb;
    --dg-bg-card: #ffffff;
    --dg-text-main: #092247;
    --dg-text-muted: #5f7186;
    --dg-glass: rgba(255, 255, 255, .78);
    --dg-border-glass: rgba(9, 34, 71, .12);
    --dg-transition: all .3s cubic-bezier(.4, 0, .2, 1);
    background:
        radial-gradient(circle at 12% 0%, rgba(240, 100, 35, .16), transparent 22rem),
        radial-gradient(circle at 88% 8%, rgba(6, 182, 212, .18), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, #edf6fd 46%, #e7f0f8 100%);
    color: var(--dg-text-main);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin-bottom: -40px;
    overflow-x: hidden;
}

.dicigames-home h1,
.dicigames-home h2,
.dicigames-home h3,
.dicigames-home .dg-eyebrow {
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dg-eyebrow {
    color: var(--dg-secondary);
    display: block;
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.dg-home-hero {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .13), transparent 28rem),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, .16), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, #f1f8ff 52%, #e8f2fb 100%);
    padding: 80px 0;
    position: relative;
}

.dg-hero-content {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: 1.2fr .8fr;
}

.dg-hero-copy h1 {
    background: linear-gradient(to right, #092247, #0f4f8f 58%, var(--dg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.dg-hero-copy p {
    color: #425a75;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.dg-hero-logo {
    filter: drop-shadow(0 0 10px var(--dg-primary-glow));
    margin-bottom: 2rem;
    max-width: 200px;
}

.dg-hero-actions {
    display: flex;
    gap: 15px;
}

.dg-btn {
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    padding: 12px 28px;
    text-align: center;
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-btn-primary {
    background: var(--dg-primary);
    box-shadow: 0 4px 15px var(--dg-primary-glow);
    color: #fff;
}

.dg-btn-primary:hover {
    box-shadow: 0 6px 20px var(--dg-primary-glow);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.dg-btn-secondary {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--dg-border-glass);
    color: #092247;
}

.dg-btn-secondary:hover {
    background: #fff;
    border-color: var(--dg-secondary);
}

.dg-hero-panel {
    backdrop-filter: blur(12px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(236, 247, 255, .76));
    border: 1px solid var(--dg-border-glass);
    border-radius: 24px;
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.dg-hero-panel::before {
    animation: dg-rotate 10s linear infinite;
    background: conic-gradient(from 0deg, transparent, var(--dg-primary), transparent 30%);
    content: "";
    height: 200%;
    left: -50%;
    opacity: .1;
    position: absolute;
    top: -50%;
    width: 200%;
    z-index: -1;
}

@keyframes dg-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dg-brand-score {
    margin-bottom: 30px;
    text-align: center;
}

.dg-brand-score span {
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
}

.dg-brand-score strong {
    color: var(--dg-primary);
    font-size: 1.9rem;
}

.dg-hero-stats {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
}

.dg-hero-stats strong {
    color: #0f4f8f;
    display: block;
    font-size: 2.35rem;
    margin-bottom: 8px;
}

.dg-hero-stats span {
    color: #5f7186;
    font-size: .92rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dg-home-quick-nav {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.dg-home-quick-nav a {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--dg-border-glass);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 22px 26px;
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-home-quick-nav a:hover {
    background: #fff;
    border-color: var(--dg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transform: translateY(-5px);
}

.dg-home-quick-nav span {
    color: var(--dg-secondary);
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    font-size: .875rem;
    margin-bottom: 10px;
}

.dg-home-quick-nav strong {
    color: #092247;
    font-size: 1.12rem;
    margin-bottom: 5px;
}

.dg-home-quick-nav small {
    color: var(--dg-text-muted);
    font-size: .88rem;
}

.dg-section {
    padding: 80px 0;
}

.dg-section-tight {
    padding-top: 40px;
}

.dg-section-header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.dg-section-header h2 {
    color: #092247;
    font-size: 2rem;
    margin: 0;
}

.dg-section-link {
    align-items: center;
    color: var(--dg-secondary);
    display: flex;
    font-size: .875rem;
    font-weight: 600;
    gap: 8px;
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-section-link:hover {
    color: var(--dg-primary);
    gap: 12px;
}

.dg-card-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.dg-news-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.dg-news-featured,
.dg-news-side-card,
.dg-daily-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--dg-border-glass);
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(9, 34, 71, .1);
    overflow: hidden;
}

.dg-news-featured {
    display: grid;
    grid-template-rows: 260px auto;
}

.dg-news-featured img,
.dg-news-featured .dg-card-media-placeholder {
    height: 260px;
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

.dg-news-featured-body {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
}

.dg-news-featured-body > span,
.dg-news-side-card span {
    color: var(--dg-secondary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dg-news-featured-body h3 {
    color: #092247;
    display: -webkit-box;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.08;
    margin: 10px 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dg-news-featured-body p {
    color: var(--dg-text-muted);
    display: -webkit-box;
    margin-bottom: 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dg-news-side-list {
    align-content: start;
    display: grid;
    gap: 12px;
    grid-auto-rows: max-content;
}

.dg-news-side-card {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: 138px 1fr;
    height: auto;
    min-height: 0;
    padding: 10px 12px;
}

.dg-news-side-card > div {
    align-content: start;
    display: grid;
}

.dg-news-side-card img,
.dg-news-side-placeholder {
    border-radius: 12px;
    height: 88px;
    object-fit: cover;
    width: 118px;
}

.dg-news-side-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, .16), transparent 5rem),
        linear-gradient(135deg, #eef6fd, #dfeaf5);
    color: #5f7186;
    display: flex;
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    font-weight: 700;
    justify-content: center;
    text-transform: uppercase;
}

.dg-news-side-card h3 {
    color: #092247;
    font-size: .9rem;
    line-height: 1.15;
    margin: 4px 0 6px;
}

.dg-news-side-card a {
    color: var(--dg-primary);
    font-size: .82rem;
    font-weight: 800;
}

.dg-daily-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-daily-card {
    display: grid;
    grid-template-columns: minmax(190px, .44fr) 1fr;
}

.dg-daily-media img,
.dg-daily-media .dg-card-media-placeholder {
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    width: 100%;
}

.dg-daily-content {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.dg-daily-content h2 {
    color: #092247;
    font-size: 1.9rem;
    margin: 0 0 18px;
}

.dg-daily-content h3 {
    color: #092247;
    font-size: 1.4rem;
    line-height: 1.15;
    margin: 0 0 10px;
}

.dg-daily-content p {
    color: var(--dg-text-muted);
}

.dg-item-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--dg-border-glass);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: var(--dg-transition);
}

.dg-item-card:hover {
    border-color: rgba(99, 102, 241, .28);
    box-shadow: 0 16px 42px rgba(9, 34, 71, .14);
    transform: translateY(-8px);
}

.dg-item-card img {
    height: 200px;
    object-fit: cover;
    transition: var(--dg-transition);
    width: 100%;
}

.dg-item-card:hover img {
    transform: scale(1.05);
}

.dg-card-media-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 20% 25%, rgba(99, 102, 241, .16), transparent 7rem),
        radial-gradient(circle at 78% 70%, rgba(6, 182, 212, .18), transparent 7rem),
        linear-gradient(45deg, #f1f7fd, #dfeaf5);
    color: #5f7186;
    display: flex;
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    font-weight: 700;
    height: 200px;
    justify-content: center;
    text-transform: uppercase;
}

.dg-item-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.dg-item-card-body > span {
    color: var(--dg-secondary);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dg-item-card-body h3 {
    color: #092247;
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.dg-item-card-body p {
    color: var(--dg-text-muted);
    display: -webkit-box;
    font-size: .9rem;
    margin-bottom: 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dg-card-action {
    align-items: center;
    border-top: 1px solid var(--dg-border-glass);
    color: #092247;
    display: flex;
    font-size: .875rem;
    font-weight: 600;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    text-decoration: none;
    transition: var(--dg-transition);
}

.dg-card-action::after {
    content: "->";
    transition: var(--dg-transition);
}

.dg-card-action:hover {
    color: var(--dg-secondary);
}

.dg-card-action:hover::after {
    transform: translateX(5px);
}

.dg-empty-state {
    background: rgba(255, 255, 255, .68);
    border: 2px dashed var(--dg-border-glass);
    border-radius: 16px;
    color: var(--dg-text-muted);
    padding: 40px;
    text-align: center;
}

.dg-plans-placeholder {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--dg-border-glass);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(9, 34, 71, .08);
    padding: 36px;
}

.dg-plans-placeholder h3 {
    color: #092247;
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.dg-plans-placeholder p {
    color: var(--dg-text-muted);
    margin: 0;
}

.dg-plans-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dg-plan-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--dg-border-glass);
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(9, 34, 71, .1);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.dg-plan-card.is-featured {
    border-color: rgba(240, 100, 35, .42);
    box-shadow: 0 20px 50px rgba(240, 100, 35, .16);
}

.dg-plan-card > span {
    color: var(--dg-secondary);
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dg-plan-card h3 {
    color: #092247;
    font-size: 2.2rem;
    margin: 8px 0 4px;
}

.dg-plan-card h3 small {
    color: var(--dg-text-muted);
    font-size: .95rem;
}

.dg-plan-card p,
.dg-plan-card li {
    color: var(--dg-text-muted);
}

.dg-plan-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding-left: 18px;
}

.dg-plan-card .dg-btn {
    margin-top: auto;
}

.plan-choice-fieldset {
    border: 0;
    display: block;
    margin: 0 0 18px;
    padding: 0;
}

.plan-choice-fieldset legend {
    color: var(--brand-navy);
    font-weight: 950;
    margin-bottom: 10px;
}

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

.register-plan-option {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .14);
    border-radius: var(--radius);
    cursor: pointer;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 14px;
}

.register-plan-option:has(input:checked) {
    border-color: var(--brand-orange);
    box-shadow: 0 12px 28px rgba(240, 100, 35, .16);
}

.register-plan-option input {
    min-height: auto;
    width: auto;
}

.register-plan-option span,
.register-plan-option em,
.register-plan-option small {
    display: block;
}

.register-plan-option strong {
    color: var(--brand-navy);
}

.register-plan-option em {
    color: var(--brand-orange);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 950;
}

.register-plan-option small {
    color: var(--muted);
    font-weight: 750;
}

.social-auth-box {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(9, 34, 71, .12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
}

.social-auth-box-form {
    box-shadow: none;
    margin: 0 0 18px;
}

.social-auth-box > span {
    color: var(--brand-navy);
    font-size: .9rem;
    font-weight: 950;
    text-transform: uppercase;
}

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

.social-auth-btn {
    align-items: center;
    border: 1px solid rgba(9, 34, 71, .16);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 950;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-auth-btn:hover {
    border-color: rgba(240, 100, 35, .42);
    box-shadow: 0 14px 28px rgba(9, 34, 71, .1);
    transform: translateY(-2px);
}

.social-auth-btn strong {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: .85rem;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.social-auth-google {
    background: #fff;
    color: var(--brand-navy);
}

.social-auth-google strong {
    background: #f8fafc;
    border: 1px solid rgba(9, 34, 71, .14);
    color: #ea4335;
}

.social-auth-twitch {
    background: #6441a5;
    border-color: #6441a5;
    color: #fff;
}

.social-auth-twitch strong {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

@media (max-width: 992px) {
    .dg-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dg-hero-copy p {
        margin: 0 auto 2rem;
    }

    .dg-hero-actions {
        justify-content: center;
    }

    .dg-home-quick-nav {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .dg-plans-grid,
    .register-plan-grid {
        grid-template-columns: 1fr;
    }

    .social-auth-actions {
        grid-template-columns: 1fr;
    }

    .dg-news-layout,
    .dg-daily-grid {
        grid-template-columns: 1fr;
    }

    .dg-news-side-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .dg-news-side-card {
        grid-template-columns: 1fr;
    }

    .dg-news-side-card img,
    .dg-news-side-placeholder {
        height: 160px;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .dg-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dg-hero-actions {
        flex-direction: column;
    }

    .dg-hero-stats {
        grid-template-columns: 1fr;
    }

    .dg-news-side-list,
    .dg-daily-card {
        grid-template-columns: 1fr;
    }

    .dg-news-featured img,
    .dg-news-featured .dg-card-media-placeholder,
    .dg-daily-media img,
    .dg-daily-media .dg-card-media-placeholder {
        min-height: 220px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-content {
        padding: 42px 0;
    }

    .controller-visual {
        height: 170px;
    }

    .hero-actions .btn,
    .form-actions .btn,
    .admin-actions .btn,
    .admin-header-actions .btn {
        width: 100%;
    }
}

/* DiciGames brand refresh */
:root {
    --brand-orange: #f06423;
    --brand-orange-dark: #d94f13;
    --brand-navy: #092247;
    --brand-navy-2: #07162c;
    --brand-blue: #123a6f;
    --brand-ice: #f4f8fc;
    --primary: var(--brand-orange);
    --primary-dark: var(--brand-orange-dark);
    --accent: var(--brand-blue);
    --accent-2: var(--brand-orange);
}

body {
    background:
        radial-gradient(circle at 12% 4%, rgba(240, 100, 35, .16), transparent 20rem),
        radial-gradient(circle at 92% 8%, rgba(9, 34, 71, .13), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, var(--brand-ice) 46%, #eaf1f7 100%);
}

body::before {
    background-image:
        linear-gradient(rgba(9, 34, 71, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 34, 71, .045) 1px, transparent 1px);
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(9, 34, 71, .12);
    box-shadow: 0 12px 30px rgba(9, 34, 71, .08);
    color: var(--brand-navy);
}

.brand {
    min-width: 210px;
}

.brand img {
    height: 44px;
    max-width: 230px;
    object-fit: contain;
    width: auto;
}

.main-nav a {
    color: var(--brand-navy);
}

.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(240, 100, 35, .1);
    border-color: rgba(240, 100, 35, .2);
    color: var(--brand-orange-dark);
}

.main-nav .nav-admin {
    background: var(--brand-navy);
    color: #fff;
}

.main-nav .nav-admin:hover,
.main-nav .nav-admin.is-active {
    background: var(--brand-orange);
    color: #fff;
}

.menu-toggle {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
}

.home-hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 100, 35, .22), transparent 20rem),
        radial-gradient(circle at 86% 26%, rgba(18, 58, 111, .26), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, #eef5fb 46%, #dfeaf5 100%);
    color: var(--brand-navy);
}

.home-hero::after {
    background: linear-gradient(90deg, transparent, rgba(240, 100, 35, .45), transparent);
}

.home-hero .hero-copy p {
    color: #36516f;
}

.hero-logo {
    margin-bottom: 22px;
    max-width: min(410px, 100%);
    width: 100%;
}

.home-hero .hero-copy h1 {
    color: var(--brand-navy);
    letter-spacing: 0;
}

.home-hero .eyebrow,
.eyebrow {
    color: var(--brand-orange-dark);
}

.brand-panel {
    background: linear-gradient(145deg, var(--brand-navy) 0%, #0b315d 72%, #0a2448 100%);
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}

.brand-panel::before {
    background:
        linear-gradient(135deg, rgba(240, 100, 35, .55), rgba(255, 255, 255, .12));
    opacity: .42;
}

.brand-score {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(240, 100, 35, .18)),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .05) 18px 19px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    min-height: 210px;
    padding: 24px;
}

.brand-score span {
    color: #dce9f7;
    font-weight: 900;
    text-transform: uppercase;
}

.brand-score strong {
    color: var(--brand-orange);
    font-size: clamp(5rem, 14vw, 8rem);
    line-height: .8;
}

.home-hero .hero-stats {
    grid-template-columns: repeat(3, 1fr);
}

.home-hero .hero-stats div {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .15);
}

.home-hero .hero-stats strong {
    color: #fff;
}

.home-hero .hero-stats span {
    color: #d7e5f4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), #ff985c);
    box-shadow: 0 16px 36px rgba(240, 100, 35, .26);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .16);
    color: var(--brand-navy);
}

.home-quick-nav {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -38px;
    position: relative;
    z-index: 3;
}

.home-quick-nav a {
    background: #fff;
    border: 1px solid rgba(9, 34, 71, .1);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(9, 34, 71, .12);
    color: var(--brand-navy);
    display: grid;
    gap: 4px;
    padding: 20px;
    transition: transform .18s ease, border-color .18s ease;
}

.home-quick-nav a:hover {
    border-color: rgba(240, 100, 35, .42);
    transform: translateY(-3px);
}

.home-quick-nav span {
    color: var(--brand-orange);
    font-size: .8rem;
    font-weight: 950;
}

.home-quick-nav strong {
    font-size: 1.15rem;
}

.home-quick-nav small {
    color: #5f7186;
    font-weight: 700;
}

.section-title h2,
.page-heading h1,
.admin-header h1 {
    color: var(--brand-navy);
}

.section-link,
.card-action,
.stat-card a {
    color: var(--brand-orange-dark);
}

.item-card:hover {
    border-color: rgba(240, 100, 35, .45);
}

.card-media-placeholder {
    background:
        radial-gradient(circle at 22% 25%, rgba(240, 100, 35, .32), transparent 5rem),
        radial-gradient(circle at 80% 55%, rgba(18, 58, 111, .26), transparent 6rem),
        linear-gradient(135deg, var(--brand-navy), #113c70);
}

.admin-table th,
.site-footer {
    background: var(--brand-navy);
}

.sort-link:hover,
.sort-link.is-active,
.footer-content a {
    color: #ffb184;
}

@media (max-width: 860px) {
    .home-quick-nav {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .home-hero .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .brand {
        min-width: 0;
    }

    .brand img {
        height: 36px;
        max-width: 190px;
    }

    .main-nav {
        background: #fff;
        border-top: 1px solid rgba(9, 34, 71, .12);
        padding-top: 12px;
    }

    .game-table-controls,
    .game-table-toolbar,
    .game-search-inline {
        width: 100%;
    }

    .game-search-inline {
        flex-basis: 100%;
        max-width: none;
    }

    .game-search-inline .game-search-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    .site-header,
    .site-footer,
    .page-heading,
    .game-search,
    .game-table-controls,
    .game-list-tooltip,
    .admin-game-tooltip {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .section,
    .container {
        padding: 0;
        width: 100%;
    }

    .table-wrapper {
        box-shadow: none;
        overflow: visible;
    }
}

/* DiciGames UI 2026 - identidade visual oficial */
:root {
    --dg-blue: #147de3;
    --dg-blue-dark: #0864c8;
    --dg-blue-soft: #eaf4ff;
    --dg-cyan: #08a9ce;
    --dg-ink: #121823;
    --dg-ink-2: #222b39;
    --dg-bg: #f3f6fa;
    --dg-panel: #ffffff;
    --dg-border: #d8e2ee;
    --dg-muted: #627086;
    --dg-yellow: #f5c542;
    --dg-danger: #d9364f;
    --primary: var(--dg-blue);
    --primary-dark: var(--dg-blue-dark);
    --accent: var(--dg-cyan);
    --accent-2: var(--dg-blue);
    --text: var(--dg-ink);
    --muted: var(--dg-muted);
    --line: var(--dg-border);
    --surface: var(--dg-panel);
    --surface-soft: #f7f9fc;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(18, 24, 35, .08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    color: var(--dg-ink);
    background: var(--dg-bg);
    font-family: "Manrope", Arial, sans-serif;
    overflow-x: clip;
}

body::before {
    background-image:
        linear-gradient(rgba(20, 125, 227, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 125, 227, .045) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 1;
}

h1,
h2,
h3,
h4,
.brand,
.btn,
.main-nav a,
.admin-table th,
.dg-news-title {
    font-family: "Oxanium", "Manrope", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--dg-blue-dark);
}

a:hover {
    color: var(--dg-blue);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    isolation: isolate;
    min-height: 70px;
    background: rgba(255, 255, 255, .97);
    border-top: 3px solid var(--dg-blue);
    border-bottom: 1px solid var(--dg-border);
    box-shadow: 0 8px 24px rgba(18, 24, 35, .07);
    backdrop-filter: blur(14px);
}

.header-content {
    min-height: 67px;
    gap: 24px;
}

.brand {
    color: var(--dg-ink);
}

.brand img {
    width: auto;
    height: 43px;
    max-width: 235px;
    object-fit: contain;
}

.main-nav {
    gap: 4px;
}

.main-nav a {
    color: #344054;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
    color: var(--dg-blue-dark);
    background: var(--dg-blue-soft);
    border-color: #c7e1fb;
}

.main-nav .nav-admin {
    color: #fff;
    background: var(--dg-ink);
    border-color: var(--dg-ink);
}

.main-nav .nav-admin:hover,
.main-nav .nav-admin:focus-visible {
    color: #fff;
    background: var(--dg-blue-dark);
    border-color: var(--dg-blue-dark);
}

.menu-toggle {
    color: var(--dg-ink);
    background: var(--dg-blue-soft);
    border-color: #c7e1fb;
}

.menu-toggle span {
    background: var(--dg-ink);
}

.site-main {
    min-height: calc(100vh - 144px);
}

.page-heading,
.form-card,
.auth-card,
.table-wrapper,
.detail-content,
.item-card,
.empty-state,
.profile-panel,
.profile-game-card,
.profile-console-card,
.admin-stat,
.game-search,
.game-search-card {
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--dg-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-heading {
    border-left: 4px solid var(--dg-blue);
}

.eyebrow,
.page-heading .eyebrow,
.card-kicker,
.dg-eyebrow,
.dg-section-kicker {
    color: var(--dg-blue-dark);
}

.btn,
button,
input,
select,
textarea {
    border-radius: 6px;
}

.btn-primary,
button.btn-primary,
.game-search button,
.game-search-card button {
    color: #fff;
    background: var(--dg-blue);
    border-color: var(--dg-blue);
    box-shadow: 0 8px 18px rgba(20, 125, 227, .2);
}

.btn-primary:hover,
button.btn-primary:hover,
.game-search button:hover,
.game-search-card button:hover {
    color: #fff;
    background: var(--dg-blue-dark);
    border-color: var(--dg-blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--dg-ink);
    background: #fff;
    border-color: var(--dg-border);
    box-shadow: none;
}

.btn-secondary:hover {
    color: var(--dg-blue-dark);
    background: var(--dg-blue-soft);
    border-color: #bcd9f6;
}

.btn-danger,
.remove-link,
.delete-link {
    color: var(--dg-danger);
}

input,
select,
textarea {
    color: var(--dg-ink);
    background: #fff;
    border-color: #cbd7e5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--dg-blue);
    outline: 3px solid rgba(20, 125, 227, .14);
    box-shadow: none;
}

.item-card {
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.item-card:hover,
.profile-game-card:hover,
.profile-console-card:hover {
    border-color: #a8cff4;
    box-shadow: 0 14px 30px rgba(18, 24, 35, .12);
    transform: translateY(-2px);
}

.card-media,
.card-media-placeholder,
.profile-game-cover-placeholder,
.profile-console-placeholder {
    background: #eaf0f7;
}

.card-media-placeholder,
.profile-game-cover-placeholder {
    color: #fff;
    background: var(--dg-ink-2);
}

.card-link,
.details-link {
    color: var(--dg-blue-dark);
}

.card-link:hover,
.details-link:hover {
    color: var(--dg-blue);
}

.rating-star,
.game-rating-star,
.stars,
.star-rating label,
.rating-display .star {
    color: var(--dg-yellow);
}

.platform-chip,
.tag,
.status-badge {
    color: var(--dg-blue-dark);
    background: var(--dg-blue-soft);
    border-color: #c7e1fb;
}

.detail-meta-item,
.info-box {
    background: #f7f9fc;
    border-color: var(--dg-border);
}

.detail-meta-item:hover,
.info-box:hover {
    background: var(--dg-blue-soft);
    border-color: #c7e1fb;
}

.admin-table thead,
.admin-table th {
    color: #f8fbff;
    background: var(--dg-ink);
}

.admin-table tbody tr:hover {
    background: #f2f8ff;
}

.sort-link {
    color: #dbe8f7;
}

.sort-link:hover,
.sort-link.is-active {
    color: #75c7ff;
}

.alert-success {
    color: #12613d;
    background: #e9f8f0;
    border-color: #b9e7cf;
}

.alert-error,
.alert-danger {
    color: #9d2437;
    background: #fff0f2;
    border-color: #f3c6ce;
}

/* Home */
.dicigames-home {
    --dg-primary: var(--dg-blue);
    --dg-secondary: var(--dg-cyan);
    --dg-dark: var(--dg-ink);
    --dg-light: var(--dg-bg);
    color: var(--dg-ink);
}

.dg-home-hero {
    background: #eaf4ff;
    border-bottom: 1px solid #cce2f8;
}

.dg-home-hero::before,
.dg-home-hero::after,
.dg-hero-panel::before {
    display: none;
}

.dg-hero-content {
    min-height: 510px;
    gap: clamp(30px, 6vw, 88px);
}

.dg-hero-logo {
    width: min(100%, 520px);
    max-width: 520px;
    max-height: 110px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 10px 22px rgba(20, 125, 227, .12));
}

.dg-hero-copy h1 {
    color: var(--dg-ink);
    max-width: 780px;
    font-size: clamp(2.45rem, 5.2vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.dg-hero-copy h1 span,
.dg-section-title span {
    color: var(--dg-blue);
}

.dg-hero-copy p {
    color: #4a5b70;
    max-width: 690px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
}

.dg-hero-panel {
    color: var(--dg-ink);
    background: #dceeff;
    border: 1px solid #a9cff3;
    border-top: 4px solid var(--dg-blue);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(20, 78, 135, .14);
}

.dg-hero-panel .dg-panel-title,
.dg-hero-panel strong,
.dg-hero-panel span {
    color: var(--dg-ink);
}

.dg-hero-panel .dg-stat-number {
    color: #65b8ff;
}

.dg-hero-panel .dg-stat-label {
    color: #44546a;
}

.dg-brand-score span {
    color: var(--dg-ink);
    font-family: "Oxanium", "Manrope", Arial, sans-serif;
}

.dg-brand-score strong,
.dg-hero-stats strong {
    color: var(--dg-ink);
}

.dg-hero-stats span {
    color: #44546a;
}

.dg-quick-link,
.dg-news-featured,
.dg-news-item,
.dg-daily-card,
.dg-plan-card {
    background: #fff;
    border: 1px solid var(--dg-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(18, 24, 35, .07);
}

.dg-quick-link {
    border-top: 3px solid var(--dg-blue);
}

.dg-quick-link:hover,
.dg-news-item:hover,
.dg-daily-card:hover,
.dg-plan-card:hover {
    border-color: #a8cff4;
    box-shadow: 0 14px 30px rgba(18, 24, 35, .11);
    transform: translateY(-2px);
}

.dg-quick-link::after {
    color: var(--dg-blue);
}

.dg-home-quick-nav a {
    position: relative;
    min-height: 104px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--dg-border);
    border-top: 3px solid var(--dg-blue);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(18, 24, 35, .08);
}

.dg-home-quick-nav a::after {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--dg-blue);
    content: "\2192";
    font-size: 1.15rem;
    font-weight: 800;
}

.dg-home-quick-nav a:hover {
    background: #f8fbff;
    border-color: #a8cff4;
    box-shadow: 0 14px 30px rgba(18, 24, 35, .11);
    transform: translateY(-2px);
}

.dg-home-quick-nav strong {
    color: var(--dg-ink);
    padding-right: 32px;
}

.dg-home-quick-nav small {
    color: var(--dg-muted);
}

.dg-home-section {
    background: transparent;
}

.dg-home-section:nth-of-type(even) {
    background: #edf3f9;
    border-top: 1px solid #dce7f2;
    border-bottom: 1px solid #dce7f2;
}

.dg-section-title {
    color: var(--dg-ink);
}

.dg-section-header h2 {
    color: var(--dg-ink);
}

.dg-section-link,
.dg-card-action,
.dg-news-side-card a {
    color: var(--dg-blue-dark);
}

.dg-section-link:hover,
.dg-card-action:hover,
.dg-news-side-card a:hover {
    color: var(--dg-blue);
}

.dg-news-featured {
    overflow: hidden;
}

.dg-news-side-card {
    background: #fff;
    border: 1px solid var(--dg-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(18, 24, 35, .06);
}

.dg-news-side-card:hover {
    border-color: #a8cff4;
    box-shadow: 0 12px 26px rgba(18, 24, 35, .1);
}

.dg-news-side-card img,
.dg-news-side-placeholder {
    border-radius: 6px;
}

.dg-news-side-placeholder,
.dg-card-media-placeholder {
    color: #e6eef8;
    background: var(--dg-ink-2);
    font-family: "Oxanium", "Manrope", Arial, sans-serif;
}

.dg-news-featured-body > span,
.dg-news-side-card span {
    color: var(--dg-blue-dark);
}

.dg-news-category,
.dg-daily-kicker,
.dg-plan-kicker {
    color: var(--dg-blue-dark);
}

.dg-news-title,
.dg-news-featured h3,
.dg-news-item h3,
.dg-news-side-card h3,
.dg-daily-card h3,
.dg-plan-card h3 {
    color: var(--dg-ink);
}

.dg-news-featured-body p,
.dg-daily-content p,
.dg-plan-card p,
.dg-plan-card li {
    color: var(--dg-muted);
}

.dg-daily-content h2 {
    color: var(--dg-ink);
}

.dg-card-action {
    border-top-color: var(--dg-border);
}

.dg-news-link,
.dg-daily-link,
.dg-plan-link {
    color: var(--dg-blue-dark);
}

.dg-news-link:hover,
.dg-daily-link:hover,
.dg-plan-link:hover {
    color: var(--dg-blue);
}

.dg-plan-card.is-featured {
    border-color: var(--dg-blue);
    border-top: 4px solid var(--dg-blue);
    background: #f7fbff;
    box-shadow: 0 16px 34px rgba(20, 125, 227, .12);
}

.dg-plan-badge {
    color: #fff;
    background: var(--dg-blue);
}

.dg-plan-card > span {
    color: var(--dg-blue-dark);
}

.dg-btn-primary {
    color: #fff;
    background: var(--dg-blue);
    box-shadow: 0 8px 18px rgba(20, 125, 227, .2);
}

.dg-btn-primary:hover {
    color: #fff;
    background: var(--dg-blue-dark);
    box-shadow: 0 10px 22px rgba(20, 125, 227, .24);
    filter: none;
    transform: translateY(-1px);
}

.dg-btn-secondary {
    color: var(--dg-ink);
    background: #fff;
    border-color: var(--dg-border);
    backdrop-filter: none;
}

.dg-btn-secondary:hover {
    color: var(--dg-blue-dark);
    background: var(--dg-blue-soft);
    border-color: #bcd9f6;
}

.dg-plan-card .dg-btn,
.dg-plan-card .dg-btn-primary,
.dg-plan-card .dg-btn-secondary {
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: #fff;
    background: var(--dg-blue);
    border: 1px solid var(--dg-blue);
    box-shadow: 0 8px 18px rgba(20, 125, 227, .2);
    backdrop-filter: none;
}

.dg-plan-card .dg-btn:hover,
.dg-plan-card .dg-btn-primary:hover,
.dg-plan-card .dg-btn-secondary:hover {
    color: #fff;
    background: var(--dg-blue-dark);
    border-color: var(--dg-blue-dark);
    box-shadow: 0 10px 22px rgba(20, 125, 227, .24);
    filter: none;
    transform: translateY(-1px);
}

/* Login */
.login-auth-layout {
    min-height: calc(100vh - 145px);
    padding-top: 48px;
    padding-bottom: 48px;
}

.login-auth-panel {
    max-width: 520px;
}

.login-card {
    background: #fff;
    border: 1px solid var(--dg-border);
    border-top: 4px solid var(--dg-blue);
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(18, 24, 35, .13);
    padding: 30px;
}

.login-card-header {
    display: grid;
    justify-items: center;
    margin-bottom: 26px;
    text-align: center;
}

.login-brand-logo {
    height: auto;
    margin-bottom: 18px;
    width: 210px;
}

.login-kicker {
    color: var(--dg-blue-dark);
    font-size: .78rem;
    font-weight: 800;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.login-card-header h1 {
    color: var(--dg-ink);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    line-height: 1.1;
    margin: 0;
}

.login-card-header > p:last-child {
    color: var(--dg-muted);
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 420px;
}

.login-card .alert {
    margin-bottom: 20px;
}

.login-form label {
    color: var(--dg-ink);
    font-size: .92rem;
    margin-bottom: 16px;
}

.login-form input {
    min-height: 48px;
}

.login-submit {
    min-height: 48px;
    width: 100%;
}

.login-divider {
    align-items: center;
    color: var(--dg-muted);
    display: grid;
    font-size: .85rem;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    margin: 22px 0 18px;
}

.login-divider::before,
.login-divider::after {
    background: var(--dg-border);
    content: "";
    height: 1px;
}

.login-social-actions {
    display: grid;
    gap: 10px;
}

.login-social-btn {
    align-items: center;
    background: #eef1f5;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--dg-ink);
    display: grid;
    font-weight: 700;
    gap: 10px;
    grid-template-columns: 28px 1fr 28px;
    min-height: 46px;
    padding: 8px 14px;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.login-social-btn::after {
    content: "";
    width: 28px;
}

.login-social-btn:hover,
.login-social-btn:focus-visible {
    color: var(--dg-ink);
    background: var(--dg-blue-soft);
    border-color: #bcd9f6;
    transform: translateY(-1px);
}

.login-social-btn strong {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 50%;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.login-social-google strong {
    color: #db4437;
}

.login-social-twitch strong {
    color: #fff;
    background: #6441a5;
    border-color: #6441a5;
}

.login-register {
    color: var(--dg-muted);
    font-size: .9rem;
    margin: 22px 0 0;
    text-align: center;
}

.login-register a {
    color: var(--dg-blue-dark);
    font-weight: 800;
}

.login-register a:hover {
    color: var(--dg-blue);
}

/* Perfil e administracao */
.profile-header,
.admin-header {
    border-bottom-color: var(--dg-border);
}

.profile-console-card.is-selected,
.profile-console-card[aria-pressed="true"] {
    background: var(--dg-blue-soft);
    border-color: var(--dg-blue);
    box-shadow: 0 0 0 2px rgba(20, 125, 227, .14);
}

.profile-console-card.is-selected::after,
.profile-console-card[aria-pressed="true"]::after {
    color: #fff;
    background: var(--dg-blue);
}

.modal-backdrop {
    background: rgba(18, 24, 35, .72);
    backdrop-filter: blur(5px);
}

.modal-content {
    border: 1px solid var(--dg-border);
    border-top: 4px solid var(--dg-blue);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.site-footer {
    color: #d7e0ec;
    background: var(--dg-ink);
    border-top: 3px solid var(--dg-blue);
}

.footer-content a {
    color: #75c7ff;
}

@media (max-width: 760px) {
    .site-header {
        min-height: 62px;
    }

    .header-content {
        min-height: 59px;
        padding: 10px 0;
    }

    .brand img {
        height: 34px;
        max-width: 178px;
    }

    .main-nav {
        background: #fff;
        border-top: 1px solid var(--dg-border);
        box-shadow: 0 16px 28px rgba(18, 24, 35, .1);
    }

    .main-nav a {
        width: 100%;
    }

    .menu-toggle {
        top: 10px;
    }

    .dg-hero-content {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .dg-hero-copy {
        min-width: 0;
        text-align: center;
    }

    .dg-hero-logo {
        width: min(100%, 320px);
        max-width: 320px;
        max-height: 68px;
    }

    .dg-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10.5vw, 2.65rem);
        overflow-wrap: anywhere;
    }

    .dg-hero-copy p {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }

    .dg-hero-panel {
        width: 100%;
        padding: 28px 20px;
    }

    .dg-home-quick-nav {
        width: 100%;
    }

    .login-auth-layout {
        padding-top: 26px;
        padding-bottom: 32px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .login-brand-logo {
        margin-bottom: 14px;
        width: 180px;
    }

    .login-card-header {
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .page-heading,
    .game-search,
    .game-table-controls,
    .game-list-tooltip,
    .admin-game-tooltip {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
