:root {
    --paper: #F2EDE3;
    --paper-2: #E8E1D3;
    --paper-3: #FBF8F2;
    --ink: #121212;
    --ink-soft: #57524A;
    --ink-faint: #9B9486;
    --blue: #2B59FF;
    --green: #18B866;
    --yellow: #FFC21A;
    --red: #FF5B2E;
    --pink: #FF5AA8;
    --stroke: 2.5px;
    --line: var(--stroke) solid var(--ink);
    --shadow: 4px 4px 0 var(--ink);
    --shadow-lg: 7px 7px 0 var(--ink);
    --radius: 10px;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--display);
    -webkit-font-smoothing: antialiased;
}

body {
    background-image: radial-gradient(rgba(18, 18, 18, 0.06) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

a {
    color: inherit;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

h1:focus {
    outline: none;
}

.gg-mono {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gg-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--ink-soft);
    text-decoration: none;
}

a.gg-kicker:hover {
    color: var(--blue);
}

.gg-logo {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--logo-size) * 0.3);
    padding: calc(var(--logo-size) * 0.14) calc(var(--logo-size) * 0.5) calc(var(--logo-size) * 0.14) calc(var(--logo-size) * 0.14);
    border-radius: 999px;
    background: var(--ink);
    text-decoration: none;
}

.gg-logo-icon {
    width: var(--logo-size);
    height: var(--logo-size);
    transition: transform 0.6s ease;
}

.gg-home-link:hover .gg-logo-icon {
    transform: rotate(360deg);
}

.gg-logo-text {
    font-weight: 800;
    font-size: calc(var(--logo-size) * 0.66);
    letter-spacing: -0.03em;
    line-height: 1;
}

.gg-logo-guezz {
    color: #4C74FF;
}

.gg-logo-games {
    color: #FFFFFF;
}

.gg-boot {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--paper);
}

.gg-boot-icon {
    width: 96px;
    height: 96px;
    animation: gg-spin 1.6s linear infinite;
}

.gg-boot-label {
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.gg-boot-bar {
    width: 200px;
    height: 14px;
    border: var(--line);
    border-radius: 999px;
    background: var(--paper-3);
    overflow: hidden;
}

.gg-boot-bar-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: var(--blue);
    transition: width 0.15s ease;
}

.gg-boot-icon.is-still {
    animation: none;
}

.gg-boot-error {
    margin: 0;
    font-weight: 700;
}

@keyframes gg-spin {
    to { transform: rotate(360deg); }
}

.gg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper-3);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.gg-btn:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.gg-btn:active:not(:disabled) {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

.gg-btn:disabled {
    cursor: not-allowed;
    background: var(--paper-2);
    color: var(--ink-faint);
    border-color: var(--ink-faint);
    box-shadow: none;
}

.gg-btn-blue {
    background: var(--blue);
    color: #fff;
}

.gg-btn-lg {
    min-height: 56px;
    padding: 0 26px;
    font-size: 1.1rem;
}

.gg-btn-sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0 var(--ink);
}

.gg-btn-block {
    width: 100%;
}

.gg-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: var(--line);
    border-radius: 50%;
    background: var(--paper-3);
    color: var(--ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 0.1s ease, background 0.15s ease;
}

.gg-icon-btn:hover {
    background: var(--yellow);
    transform: rotate(-8deg);
}

.gg-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.gg-input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper-3);
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
}

.gg-input:focus {
    outline: none;
    box-shadow: var(--shadow);
}

.gg-field {
    display: block;
    margin: 18px 0;
}

.gg-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
}

.gg-segmented {
    display: inline-flex;
    border: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.gg-segmented button {
    min-width: 52px;
    height: 40px;
    border: none;
    border-left: var(--line);
    background: var(--paper-3);
    font-family: var(--mono);
    font-weight: 700;
    cursor: pointer;
}

.gg-segmented button:first-child {
    border-left: none;
}

.gg-segmented button.is-active {
    background: var(--ink);
    color: var(--paper);
}

.gg-sticker {
    display: inline-block;
    padding: 8px 14px;
    border: var(--line);
    border-radius: 999px;
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.gg-stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 6px 14px;
    border: 3px solid currentColor;
    border-radius: 6px;
    color: var(--ink);
    background: rgba(242, 237, 227, 0.85);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-12deg);
    white-space: nowrap;
}

.gg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--paper);
    border-bottom: var(--line);
}

.gg-header-spacer {
    flex: 1;
}

.gg-home-link {
    display: inline-flex;
    text-decoration: none;
}

.gg-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.gg-burger span {
    display: block;
    width: 16px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
}

.gg-sfx-toggle.is-muted {
    background: var(--paper-2);
    color: var(--ink-faint);
}

.gg-menu {
    border-right: var(--line);
    background: var(--paper) !important;
}

.gg-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: var(--line);
}

.gg-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 14px 12px 28px;
}

.gg-menu-link {
    padding: 10px 12px;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
}

.gg-menu-link:hover,
.gg-menu-game:hover,
.gg-menu-mode:hover {
    background: var(--paper-2);
}

.gg-menu-label {
    margin: 22px 12px 8px;
    color: var(--ink-soft);
}

.gg-menu-game {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
}

.gg-menu-swatch {
    display: inline-flex;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: var(--line);
    border-radius: 8px;
    background: var(--sleeve);
    color: var(--ink);
}

.gg-menu-swatch svg {
    width: 100%;
    height: 100%;
    stroke-width: 5;
}

.gg-menu-game.is-soon {
    color: var(--ink-soft);
}

.gg-menu-game-name {
    flex: 1;
}

.gg-menu-soon {
    padding: 2px 8px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 999px;
    font-size: 0.68rem;
}

.gg-menu-mode {
    padding: 6px 12px 6px 60px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
}

.gg-menu-mode .gg-mono {
    margin-right: 6px;
    color: var(--blue);
}

.gg-main {
    min-height: calc(100vh - 68px);
    overflow-x: clip;
}

.gg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 72px;
}

.gg-footer {
    background: var(--ink);
    color: var(--paper);
    border-top: var(--line);
}

.gg-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}

.gg-footer-word {
    display: block;
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 5rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.gg-footer-word .gg-logo-guezz {
    color: #4C74FF;
}

.gg-footer-brand p {
    margin: 14px 0 0;
    max-width: 320px;
    color: var(--ink-faint);
}

.gg-footer-cols {
    display: flex;
    gap: 56px;
}

.gg-footer-cols div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gg-footer-cols a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
}

.gg-footer-cols a:hover {
    color: var(--yellow);
}

.gg-footer-label {
    color: var(--ink-faint);
    margin-bottom: 6px;
}

.gg-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.gg-page-title {
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0;
}

.gg-page-sub {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.gg-page-sub.gg-mono {
    font-size: 0.85rem;
}

.gg-countdown {
    font-family: var(--mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gg-card {
    position: relative;
    padding: 24px;
    border: var(--line);
    border-radius: 16px;
    background: var(--paper-3);
    box-shadow: var(--shadow-lg);
}

.gg-card-title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.gg-card-hint {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

.gg-section {
    margin-top: 80px;
}

.gg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.gg-section-title {
    margin: 0 0 24px;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.gg-section-head .gg-section-title {
    margin: 0;
}

.gg-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin-left: 6px;
    padding: 0 10px;
    border: var(--line);
    border-radius: 999px;
    background: var(--yellow);
    font-family: var(--mono);
    font-size: 1rem;
    vertical-align: middle;
}

.gg-narrow {
    max-width: 780px;
    margin: 0 auto;
}

.gg-stack {
    display: grid;
    gap: 28px;
}

.gg-back {
    display: inline-block;
    margin-bottom: 24px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
}

.gg-back:hover {
    color: var(--blue);
}

.gg-error-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: var(--line);
    border-radius: var(--radius);
    background: #FFD9CC;
    font-weight: 600;
}

.gg-error-box.is-warning {
    background: #FFEDB3;
}

.gg-error {
    color: var(--red);
    font-weight: 700;
}

.gg-loading-card {
    display: grid;
    gap: 10px;
}

.gg-skeleton {
    height: 46px;
    border: 2px dashed var(--ink-faint);
    border-radius: var(--radius);
    animation: gg-blink 1.2s ease-in-out infinite;
}

@keyframes gg-blink {
    50% { opacity: 0.4; }
}

.gg-connecting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px;
}

.gg-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 20px 0 48px;
}

.gg-hero-title {
    margin: 0 0 22px;
    font-weight: 800;
    font-size: clamp(3.6rem, 12vw, 9.5rem);
    letter-spacing: -0.06em;
    line-height: 0.82;
}

.gg-scribble {
    position: relative;
    display: inline-block;
    color: var(--blue);
}

.gg-scribble svg {
    position: absolute;
    left: -2%;
    bottom: -0.12em;
    width: 104%;
    height: 0.22em;
    overflow: visible;
}

.gg-scribble path {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: gg-draw 0.9s 0.3s ease-out forwards;
}

@keyframes gg-draw {
    to { stroke-dashoffset: 0; }
}

.gg-hero-sub {
    max-width: 560px;
    margin: 0 0 30px;
    color: var(--ink-soft);
    font-size: 1.2rem;
    line-height: 1.55;
}

.gg-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.gg-hero-stickers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 12px;
}

.gg-sticker-a {
    transform: rotate(6deg);
}

.gg-sticker-b {
    background: var(--pink);
    transform: rotate(-5deg) translateX(-24px);
}

.gg-sticker-c {
    background: var(--green);
    transform: rotate(3deg);
}

.gg-ticker {
    margin: 0 -24px 64px;
    padding: 14px 0;
    border-top: var(--line);
    border-bottom: var(--line);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    transform: rotate(-1.2deg);
}

.gg-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    animation: gg-marquee 32s linear infinite;
}

.gg-ticker-item {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.gg-ticker-star {
    width: 10px;
    height: 10px;
    align-self: center;
    flex-shrink: 0;
    background: var(--yellow);
    transform: rotate(45deg);
}

@keyframes gg-marquee {
    to { transform: translateX(-50%); }
}

.gg-tracklist {
    position: relative;
    max-width: 880px;
    padding: 28px 30px 26px;
    border: var(--line);
    border-radius: 18px;
    background: var(--paper-3);
    box-shadow: 10px 10px 0 var(--blue), 10px 10px 0 var(--stroke) var(--ink);
}

.gg-tracklist::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 104px;
    border-top: 2.5px dashed var(--ink);
    opacity: 0.25;
}

.gg-tracklist-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.gg-tracklist-kicker {
    color: var(--blue);
    font-weight: 700;
}

.gg-tracklist-title {
    margin: 4px 0 0;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.gg-date-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border: var(--line);
    border-radius: 50%;
    background: var(--yellow);
    transform: rotate(10deg);
}

.gg-date-stamp span {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.gg-date-stamp strong {
    font-size: 2rem;
    font-weight: 800;
    line-height: 0.9;
}

.gg-tracks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.gg-track {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s ease;
}

a.gg-track:hover {
    background: var(--paper-2);
}

a.gg-track:hover .gg-track-name {
    color: var(--blue);
}

.gg-track-dot {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--level);
}

.gg-track-name {
    font-weight: 800;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.gg-track-dots {
    flex: 1;
    min-width: 20px;
    border-bottom: 3px dotted var(--ink-faint);
    transform: translateY(-5px);
}

.gg-track-state {
    padding: 3px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.gg-track.is-started .gg-track-state {
    background: var(--blue);
    color: #fff;
}

.gg-track.is-solved .gg-track-state {
    background: var(--green);
}

.gg-track.is-failed .gg-track-state {
    background: var(--red);
}

.gg-track.is-loading {
    opacity: 0.5;
}

.gg-tracklist-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.gg-dividers {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 4px 6px;
}

.gg-divider {
    padding: 9px 16px 7px;
    border: var(--line);
    border-radius: 10px 10px 0 0;
    border-bottom-width: 5px;
    background: var(--paper-3);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.gg-divider:hover {
    transform: translateY(-3px);
}

.gg-divider.is-active {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-3px);
}

.gg-crate {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 44px 32px;
}

.gg-crate-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: gg-pop 0.35s ease backwards;
}

.gg-crate-item:nth-child(2) { animation-delay: 0.04s; }
.gg-crate-item:nth-child(3) { animation-delay: 0.08s; }
.gg-crate-item:nth-child(4) { animation-delay: 0.12s; }
.gg-crate-item:nth-child(5) { animation-delay: 0.16s; }
.gg-crate-item:nth-child(6) { animation-delay: 0.2s; }

@keyframes gg-pop {
    from { opacity: 0; transform: translateY(14px) rotate(-1deg); }
}

.gg-crate-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    text-decoration: none;
}

.gg-crate-caption strong {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.gg-crate-caption span {
    color: var(--ink-soft);
}

.gg-crate-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gg-crate-tags span {
    padding: 2px 8px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.gg-sleeve {
    position: relative;
    display: block;
    aspect-ratio: 1;
    text-decoration: none;
    color: var(--ink);
}

.gg-sleeve-disc {
    position: absolute;
    top: 4%;
    left: 4%;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 22%, rgba(255, 255, 255, 0.07) 22.5% 23.5%, transparent 24% 34%, rgba(255, 255, 255, 0.07) 34.5% 35.5%, transparent 36% 46%, rgba(255, 255, 255, 0.07) 46.5% 47.5%, transparent 48%),
        #161616;
    box-shadow: inset 0 0 0 3px var(--ink);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.gg-sleeve-disc-label {
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    border: 3px solid var(--ink);
    background: var(--sleeve);
}

.gg-sleeve-disc-label::after {
    content: "";
    position: absolute;
    inset: 42%;
    border-radius: 50%;
    background: var(--paper);
}

.gg-sleeve.is-live:hover .gg-sleeve-disc,
.gg-sleeve.is-large .gg-sleeve-disc {
    transform: translateX(34%) rotate(200deg);
}

.gg-sleeve-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px 16px;
    border: var(--line);
    border-radius: 6px;
    background: var(--sleeve);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gg-sleeve-face::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    pointer-events: none;
}

a.gg-sleeve:hover .gg-sleeve-face {
    transform: translate(-3px, -3px) rotate(-1.5deg);
    box-shadow: 10px 10px 0 var(--ink);
}

.gg-sleeve-title {
    position: relative;
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    letter-spacing: -0.05em;
    line-height: 0.86;
    text-transform: uppercase;
}

.gg-sleeve-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 30%;
    height: 30%;
    color: var(--ink);
    opacity: 0.9;
}

.gg-sleeve-sticker {
    position: absolute;
    right: -6px;
    top: 38%;
    background: var(--paper-3);
    transform: rotate(-8deg);
    font-size: 0.72rem;
    padding: 6px 12px;
}

.gg-sleeve.is-soon .gg-sleeve-face {
    filter: saturate(0.85);
}

.gg-sleeve.is-soon .gg-sleeve-disc {
    display: none;
}

.gg-sleeve.is-large {
    width: 100%;
    max-width: 380px;
}

.gg-sleeve.is-large .gg-sleeve-title {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
}

.gg-sleeve.is-large .gg-sleeve-disc {
    animation: gg-spin-out 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1) backwards;
}

@keyframes gg-spin-out {
    from { transform: translateX(0) rotate(0); }
}

.gg-how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--stroke);
    border: var(--line);
    border-radius: 16px;
    background: var(--ink);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.gg-how-step {
    padding: 26px 26px 30px;
    background: var(--paper-3);
}

.gg-how-number {
    display: block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--sleeve, var(--blue));
    -webkit-text-stroke: 2px var(--ink);
}

.gg-how-step h3 {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.gg-how-step p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.5;
}

.gg-game-hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 72px;
    align-items: start;
}

.gg-game-name {
    margin: 0;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.gg-game-tagline {
    display: inline-block;
    margin: 18px 0 0;
    padding: 4px 10px;
    background: var(--sleeve);
    border: var(--line);
    font-weight: 800;
    font-size: 1.2rem;
    transform: rotate(-1deg);
}

.gg-game-desc {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.55;
}

.gg-modes-label {
    margin: 34px 0 12px;
    color: var(--ink-soft);
}

.gg-modes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 600px;
}

.gg-mode {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: var(--line);
    border-radius: 14px;
    background: var(--paper-3);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.gg-mode:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
    background: var(--sleeve);
}

.gg-mode-side {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: var(--line);
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.2rem;
}

.gg-mode-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gg-mode-text strong {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.gg-mode-text span {
    color: var(--ink-soft);
}

.gg-mode:hover .gg-mode-text span {
    color: var(--ink);
}

.gg-mode-go {
    font-size: 1.1rem;
}

.gg-soon-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 34px;
    padding: 22px;
    border: 2.5px dashed var(--ink);
    border-radius: 14px;
    max-width: 560px;
}

.gg-soon-note strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.gg-soon-note span {
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.gg-notfound {
    max-width: 560px;
    margin: 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.gg-notfound-code {
    font-weight: 800;
    font-size: 8rem;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--blue);
    -webkit-text-stroke: 3px var(--ink);
}

.gg-level-badge {
    display: inline-block;
    padding: 1px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--level);
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.gg-setup-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.gg-setup-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
}

.gg-card .gg-setup-label {
    margin-top: 18px;
}

.gg-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.gg-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border: var(--line);
    border-radius: 12px;
    background: var(--paper-3);
    box-shadow: var(--shadow);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.gg-category-card:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
    background: var(--yellow);
}

.gg-category-card.is-selected {
    background: var(--blue);
    color: #fff;
}

.gg-category-card.is-selected .gg-category-card-desc {
    color: rgba(255, 255, 255, 0.85);
}

.gg-category-card:disabled {
    cursor: default;
    opacity: 0.7;
}

.gg-category-card-emoji {
    font-size: 1.6rem;
}

.gg-category-card-name {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.gg-category-card-desc {
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}

.gg-category-card-loading {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
}

.gg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: -2.5px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 4px 0;
    position: relative;
    z-index: 1;
}

.gg-tab {
    flex: 1 1 0;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: var(--line);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: var(--paper-2);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease;
}

.gg-tab:hover {
    transform: translateY(-3px);
}

.gg-tab.is-active {
    background: var(--paper-3);
    padding-bottom: 13px;
}

.gg-tab-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--level);
}

.gg-tab-name {
    font-weight: 800;
}

.gg-tab-state {
    padding: 1px 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.72rem;
}

.gg-tab.is-solved .gg-tab-state {
    background: var(--green);
}

.gg-tab.is-failed .gg-tab-state {
    background: var(--red);
}

.gg-tabs + .gg-stack > .gg-card:first-child {
    border-top-left-radius: 0;
}

.gg-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gg-slots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.gg-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px 0 6px;
    border: 2px dashed var(--ink-faint);
    border-radius: var(--radius);
    color: var(--ink-faint);
    font-weight: 600;
}

.gg-slot-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 7px;
    font-family: var(--mono);
    font-weight: 700;
}

.gg-slot-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-slot-hint {
    padding: 2px 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.gg-slot.is-current {
    border: var(--line);
    border-style: solid;
    color: var(--ink);
    background: var(--paper-3);
    box-shadow: 3px 3px 0 var(--blue);
}

.gg-slot.is-current .gg-slot-no {
    background: var(--blue);
    color: #fff;
}

.gg-slot.is-skip,
.gg-slot.is-wrong,
.gg-slot.is-artist,
.gg-slot.is-correct {
    border: var(--line);
    color: var(--ink);
    animation: gg-slam 0.25s ease;
}

.gg-slot.is-skip {
    background: var(--paper-2);
    color: var(--ink-soft);
}

.gg-slot.is-wrong {
    background: #FFC9B8;
}

.gg-slot.is-wrong .gg-slot-no {
    background: var(--red);
}

.gg-slot.is-artist {
    background: #FFE7A3;
}

.gg-slot.is-artist .gg-slot-no {
    background: var(--yellow);
}

.gg-slot.is-correct {
    background: #B5EDCD;
}

.gg-slot.is-correct .gg-slot-no {
    background: var(--green);
}

.gg-slot.is-skip .gg-slot-no {
    background: var(--ink-faint);
    color: var(--paper);
}

@keyframes gg-slam {
    from { transform: scale(1.04) rotate(-0.6deg); }
}

.gg-timeline {
    position: relative;
    height: 26px;
    margin-top: 8px;
    border: var(--line);
    border-radius: 6px;
    background: repeating-linear-gradient(90deg, var(--paper-2) 0 6px, var(--paper-3) 6px 12px);
    overflow: hidden;
}

.gg-timeline-unlocked {
    position: absolute;
    inset: 0 auto 0 0;
    background: #C9D5FF;
    border-right: var(--line);
    transition: width 0.35s ease;
}

.gg-timeline-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--blue);
}

.gg-timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5px;
    margin-left: -1px;
    background: var(--ink);
}

.gg-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.gg-timeline-now {
    color: var(--blue);
    font-weight: 700;
}

.gg-play-row {
    display: flex;
    justify-content: center;
    margin: 6px 0;
}

.gg-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 5px 5px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.gg-play .mud-icon-root {
    font-size: 2.6rem;
}

.gg-play:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}

.gg-play:active:not(:disabled) {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--ink);
}

.gg-play.is-playing {
    background: var(--yellow);
    color: var(--ink);
    animation: gg-wobble 0.6s ease-in-out infinite alternate;
}

.gg-play:disabled {
    cursor: wait;
}

@keyframes gg-wobble {
    from { transform: rotate(-4deg); }
    to { transform: rotate(4deg); }
}

.gg-search {
    width: 100%;
}

.gg-hit {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gg-hit img {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.gg-hit-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gg-hit-title {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-hit-artist {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.gg-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.gg-reveal {
    position: relative;
    margin-bottom: 22px;
    border: var(--line);
    border-radius: 14px;
    background: var(--paper-3);
    box-shadow: 6px 6px 0 var(--ink);
    overflow: hidden;
    animation: gg-slam 0.3s ease;
}

.gg-reveal.is-solved {
    box-shadow: 6px 6px 0 var(--green), 6px 6px 0 var(--stroke) var(--ink);
}

.gg-reveal.is-failed {
    box-shadow: 6px 6px 0 var(--red), 6px 6px 0 var(--stroke) var(--ink);
}

.gg-reveal-bg {
    display: none;
}

.gg-reveal-body {
    display: flex;
    gap: 22px;
    padding: 20px;
    align-items: center;
}

.gg-reveal-cover {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border: var(--line);
    border-radius: 4px;
    background: var(--paper-2);
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-2deg);
}

.gg-reveal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gg-reveal-play {
    position: absolute;
    right: -12px;
    bottom: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: var(--line);
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
}

.gg-reveal-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.gg-reveal-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.is-solved .gg-reveal-badge {
    background: var(--green);
}

.is-failed .gg-reveal-badge {
    background: var(--red);
}

.gg-reveal-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.gg-reveal-artist {
    margin: 4px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.gg-reveal-album {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.gg-reveal-progress {
    height: 8px;
    margin: 14px 0 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-2);
    overflow: hidden;
}

.gg-reveal-progress-fill {
    height: 100%;
    width: 0;
    background: var(--blue);
}

.gg-reveal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gg-points {
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    font-family: var(--mono);
    font-weight: 700;
}

.gg-reveal-footer {
    padding: 14px 20px;
    border-top: var(--line);
    background: var(--paper-2);
}

.gg-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gg-share-squares {
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.gg-summary h3 {
    margin: 0 0 14px;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.gg-summary-rows {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.gg-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.gg-summary-points {
    display: inline-block;
    margin: 0 0 18px;
    padding: 4px 12px;
    border: var(--line);
    background: var(--yellow);
    font-family: var(--mono);
    font-weight: 700;
    transform: rotate(-1deg);
}

.gg-summary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.gg-result-list {
    display: grid;
    gap: 8px;
}

.gg-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    text-decoration: none;
}

.gg-result-item img {
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    object-fit: cover;
}

.gg-result-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.gg-result-title {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-result-artist {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.gg-result-squares {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.gg-result-points {
    min-width: 52px;
    font-family: var(--mono);
    font-weight: 700;
    text-align: right;
    color: var(--ink-faint);
}

.gg-result-points.is-solved {
    color: var(--green);
}

.gg-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border: var(--line);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: var(--shadow);
    transform: rotate(-6deg);
}

.gg-score-value {
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
}

.gg-round-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.gg-round-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--level) 22%, var(--paper-3));
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.gg-round-dot.is-current {
    background: var(--level);
    box-shadow: 3px 3px 0 var(--ink);
    transform: translate(-1px, -1px);
}

.gg-round-dot.is-solved {
    background: var(--green);
}

.gg-round-dot.is-failed {
    background: var(--red);
}

.gg-scorecard + .gg-scorecard {
    margin-top: 22px;
}

.gg-scorecard-title {
    margin: 0 0 10px;
    color: var(--ink-soft);
}

.gg-scorecard-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.gg-scorecard-row {
    display: grid;
    grid-template-columns: 112px 1fr auto 64px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1.5px solid var(--ink);
    background: var(--paper-3);
}

.gg-scorecard-row:first-child {
    border-top: none;
}

.gg-scorecard-row .gg-level-badge {
    justify-self: start;
}

.gg-scorecard-row.is-solved {
    background: #DDF5E6;
}

.gg-scorecard-row.is-failed {
    background: #FFE3DA;
}

.gg-scorecard-song {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gg-scorecard-song strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-scorecard-song span {
    color: var(--ink-soft);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-scorecard-open {
    font-style: italic;
}

.gg-scorecard-try {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.gg-scorecard-points {
    font-family: var(--mono);
    font-weight: 700;
    text-align: right;
}

.gg-scorecard-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.gg-scorecard-total strong {
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 1rem;
}

.gg-table-wrap {
    overflow-x: auto;
    margin-bottom: 22px;
}

.gg-games-table {
    width: 100%;
    border-collapse: collapse;
    border: var(--line);
    font-family: var(--mono);
    font-size: 0.9rem;
}

.gg-games-table th,
.gg-games-table td {
    padding: 10px 12px;
    border: 1.5px solid var(--ink);
    text-align: right;
    white-space: nowrap;
}

.gg-games-table th {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.gg-games-table th:first-child,
.gg-games-table .gg-games-player {
    text-align: left;
    font-family: var(--display);
    font-weight: 700;
}

.gg-games-table tr.is-me td {
    background: #DCE4FF;
}

.gg-games-total {
    font-weight: 700;
    background: var(--paper-2);
}

.gg-head-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gg-stats-heading {
    margin: 22px 0 10px;
    color: var(--ink-soft);
}

.gg-duel-start {
    display: grid;
    gap: 24px;
}

.gg-name-card {
    display: block;
    max-width: 480px;
}

.gg-duel-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.gg-rounds {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.gg-code-input {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    text-transform: uppercase;
    min-height: 64px;
}

.gg-join-card {
    max-width: 480px;
    margin: 0 auto;
}

.gg-duel-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.gg-scoreboard {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.gg-scoreboard-title {
    margin: 0 0 10px;
    color: var(--ink-soft);
}

.gg-player {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    grid-template-areas: "rank name score" "rank progress progress";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
}

.gg-player.is-me {
    background: #DCE4FF;
    box-shadow: 3px 3px 0 var(--ink);
}

.gg-player.is-offline {
    opacity: 0.45;
}

.gg-player-rank {
    grid-area: rank;
    font-family: var(--mono);
    font-weight: 700;
    text-align: center;
}

.gg-player-name {
    grid-area: name;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-host-badge {
    padding: 0 6px;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    background: var(--yellow);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.gg-player-score {
    grid-area: score;
    font-family: var(--mono);
    font-weight: 700;
}

.gg-player-gain {
    margin-left: 4px;
    color: var(--green);
    font-size: 0.8rem;
}

.gg-player-progress {
    grid-area: progress;
    display: flex;
    gap: 4px;
}

.gg-pip {
    flex: 1;
    height: 8px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: var(--paper-3);
}

.gg-pip.is-used {
    background: var(--red);
}

.gg-pip.is-solved {
    background: var(--green);
}

.gg-lobby {
    padding: 40px 24px;
    text-align: center;
}

.gg-room-code {
    margin: 6px 0 16px;
    padding: 14px 28px 14px 38px;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background: var(--yellow);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 0.3em;
    cursor: copy;
    transform: rotate(-2deg);
    transition: transform 0.12s ease;
}

.gg-room-code:hover {
    transform: rotate(0);
}

.gg-lobby-meta {
    margin: 0 0 24px;
    color: var(--ink-soft);
}

.gg-waiting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
}

.gg-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: var(--line);
    border-radius: 999px;
    background: var(--yellow);
    box-shadow: var(--shadow);
    font-size: 1.4rem;
}

.gg-wait-result {
    margin-bottom: 18px;
    padding: 14px;
    border: var(--line);
    border-radius: var(--radius);
    text-align: center;
}

.gg-wait-result.is-solved {
    background: #B5EDCD;
}

.gg-wait-result.is-failed {
    background: #FFC9B8;
}

.gg-wait-result h3 {
    margin: 0 0 6px;
    font-weight: 800;
}

.gg-wait-result p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.gg-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.gg-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px 10px;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.gg-podium-place.place-1 {
    background: var(--yellow);
    box-shadow: var(--shadow);
}

.gg-podium-medal {
    font-size: 2rem;
}

.gg-podium-name {
    font-weight: 800;
}

.gg-player-time {
    margin-left: 6px;
    padding: 0 6px;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    background: var(--paper-3);
    font-size: 0.72rem;
}

.gg-podium-time {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.gg-podium-score {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.4rem;
}

.gg-search .mud-input-outlined-border {
    border: var(--line) !important;
    border-radius: var(--radius) !important;
}

.gg-search .mud-input.mud-input-outlined {
    background: var(--paper-3);
    border-radius: var(--radius);
    font-weight: 600;
}

.gg-search .mud-input.mud-input-outlined.mud-input-adorned-end {
    min-height: 52px;
}

.gg-search .mud-input.mud-input-outlined:focus-within {
    box-shadow: var(--shadow);
}

.mud-popover {
    border: var(--line) !important;
    border-radius: var(--radius) !important;
    background: var(--paper-3) !important;
    box-shadow: var(--shadow-lg) !important;
}

.mud-list-item:hover,
.mud-selected-item {
    background: var(--yellow) !important;
}

.mud-snackbar {
    border: var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    font-family: var(--display) !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
}

.mud-snackbar.mud-alert-filled-normal,
.mud-snackbar.mud-alert-filled-info {
    background: var(--paper-3) !important;
}

.mud-snackbar.mud-alert-filled-success {
    background: var(--green) !important;
}

.mud-snackbar.mud-alert-filled-warning {
    background: var(--yellow) !important;
}

.mud-snackbar.mud-alert-filled-error {
    background: var(--red) !important;
}

.mud-snackbar .mud-snackbar-icon,
.mud-snackbar .mud-icon-root {
    color: var(--ink) !important;
}

.mud-dialog {
    border: var(--line) !important;
    border-radius: 16px !important;
    background: var(--paper-3) !important;
    box-shadow: var(--shadow-lg) !important;
}

.mud-dialog .mud-dialog-title {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.mud-drawer {
    background: var(--paper) !important;
}

#blazor-error-ui {
    background: var(--red);
    border-top: var(--line);
    color: var(--ink);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--red);
    padding: 1rem;
    color: var(--ink);
    border: var(--line);
}

.blazor-error-boundary::after {
    content: "Something went wrong.";
}

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

@media (max-width: 900px) {
    .gg-how {
        grid-template-columns: 1fr;
    }

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

    .gg-hero-stickers {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }

    .gg-sticker-b {
        transform: rotate(-5deg);
    }

    .gg-game-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gg-sleeve.is-large {
        max-width: 280px;
    }

    .gg-duel-layout,
    .gg-duel-columns {
        grid-template-columns: 1fr;
    }

    .gg-scoreboard {
        position: static;
    }
}

@media (max-width: 640px) {
    .gg-header {
        padding: 10px 14px;
        gap: 8px;
    }

    .gg-header .gg-logo {
        --logo-size: 24px !important;
    }

    .gg-container {
        padding: 24px 16px 56px;
    }

    .gg-ticker {
        margin: 0 -16px 48px;
    }

    .gg-ticker-item {
        font-size: 1.05rem;
    }

    .gg-tracklist {
        padding: 22px 18px;
        box-shadow: 6px 6px 0 var(--blue), 6px 6px 0 var(--stroke) var(--ink);
    }

    .gg-tracklist::after {
        display: none;
    }

    .gg-date-stamp {
        width: 64px;
        height: 64px;
    }

    .gg-date-stamp strong {
        font-size: 1.5rem;
    }

    .gg-track {
        gap: 8px;
        padding: 10px 4px;
    }

    .gg-track-name {
        white-space: normal;
    }

    .gg-tracklist-foot .gg-btn {
        width: 100%;
    }

    .gg-crate {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 18px;
    }

    .gg-sleeve-title {
        font-size: 1.45rem;
    }

    .gg-sleeve-sticker {
        display: none;
    }

    .gg-sleeve:not(.is-large) .gg-sleeve-icon {
        display: none;
    }

    .gg-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gg-category-card-desc {
        display: none;
    }

    .gg-sleeve:not(.is-large) .gg-stamp {
        top: 34%;
        padding: 3px 8px;
        border-width: 2px;
        font-size: 0.62rem;
    }

    .gg-section {
        margin-top: 64px;
    }

    .gg-card {
        padding: 18px;
        box-shadow: var(--shadow);
    }

    .gg-reveal-body {
        flex-direction: column;
        text-align: center;
    }

    .gg-reveal-badge {
        align-self: center;
    }

    .gg-reveal-actions {
        justify-content: center;
    }

    .gg-scorecard-row {
        grid-template-columns: 1fr auto;
        row-gap: 4px;
    }

    .gg-scorecard-song {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .gg-score {
        width: 84px;
        height: 84px;
    }

    .gg-score-value {
        font-size: 1.7rem;
    }

    .gg-room-code {
        font-size: 2rem;
    }

    .gg-result-squares {
        display: none;
    }

    .gg-footer-cols {
        gap: 32px;
    }
}
