: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;
    --on-color: #121212;
    --shadow-color: var(--ink);
    --tint-red: #FFC9B8;
    --tint-red-soft: #FFE3DA;
    --tint-yellow: #FFE7A3;
    --tint-green: #B5EDCD;
    --tint-green-soft: #DDF5E6;
    --tint-blue: #C9D5FF;
    --tint-blue-soft: #DCE4FF;
    --error-bg: #FFD9CC;
    --warning-bg: #FFEDB3;
    --dots: rgba(18, 18, 18, 0.06);
    --stamp-bg: rgba(242, 237, 227, 0.85);
    --stroke: 2.5px;
    --line: var(--stroke) solid var(--ink);
    --shadow: 4px 4px 0 var(--shadow-color);
    --shadow-lg: 7px 7px 0 var(--shadow-color);
    --radius: 10px;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --mono: "Space Mono", ui-monospace, monospace;
    --vinyl: #161616;
    --vinyl-edge: var(--ink);
    --groove: rgba(255, 255, 255, 0.07);
    --absent: #57524A;
    --absent-ink: #FBF8F2;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --paper: #1C1B18;
    --paper-2: #14130F;
    --paper-3: #26241F;
    --ink: #EDE6D8;
    --ink-soft: #B3AB9C;
    --ink-faint: #6F695E;
    --blue: #4C74FF;
    --shadow-color: #000000;
    --tint-red: #FF9F82;
    --tint-red-soft: #3A2620;
    --tint-yellow: #FFD766;
    --tint-green: #7FDDA8;
    --tint-green-soft: #1F3328;
    --tint-blue: #2E3D73;
    --tint-blue-soft: #232B47;
    --error-bg: #4A2A20;
    --warning-bg: #45391A;
    --dots: rgba(237, 230, 216, 0.05);
    --stamp-bg: rgba(28, 27, 24, 0.85);
    --vinyl: #2B2A26;
    --vinyl-edge: var(--ink-faint);
    --groove: rgba(255, 255, 255, 0.12);
    --absent: #3E3B34;
    --absent-ink: #EDE6D8;
    color-scheme: dark;
}

*, *::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(var(--dots) 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: #121212;
    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: #121212;
    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(--shadow-color);
}

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

.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(--shadow-color);
}

.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(--shadow-color);
    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: var(--stamp-bg);
    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 {
    --ink: #121212;
    --paper: #F2EDE3;
    --ink-faint: #9B9486;
    background: var(--ink);
    color: var(--paper);
    border-top: var(--stroke) solid #121212;
}

.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-crumbs {
    margin-bottom: 12px;
}

.gg-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-crumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.gg-crumbs li + li::before {
    content: "/";
    padding: 0 8px;
    color: var(--ink-faint);
}

.gg-crumb {
    padding: 2px 4px;
    margin: 0 -4px;
    border-radius: 4px;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s ease, color 0.12s ease;
}

.gg-crumb:hover {
    background: var(--paper-2);
    color: var(--blue);
}

.gg-crumb.is-current {
    color: var(--ink);
    font-weight: 700;
}

.gg-game-crumbs {
    margin-bottom: 24px;
}

.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: var(--error-bg);
    font-weight: 600;
}

.gg-error-box.is-warning {
    background: var(--warning-bg);
}

.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 48px;
}

.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%, var(--groove) 22.5% 23.5%, transparent 24% 34%, var(--groove) 34.5% 35.5%, transparent 36% 46%, var(--groove) 46.5% 47.5%, transparent 48%),
        var(--vinyl);
    box-shadow: inset 0 0 0 3px var(--vinyl-edge);
    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-color .gg-sleeve-disc {
    background:
        radial-gradient(circle, #FFFFFF 0 18%, rgba(255, 255, 255, 0) 70%),
        conic-gradient(#FF0000, #FFFF00, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000);
    box-shadow: inset 0 0 0 3px var(--ink);
}

.gg-sleeve-color .gg-sleeve-disc-label {
    display: none;
}

.gg-sleeve-word .gg-sleeve-disc {
    border-radius: 14%;
    background:
        linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 3px no-repeat,
        linear-gradient(var(--ink), var(--ink)) 50% 50% / 3px 100% no-repeat,
        conic-gradient(#18B866 0 25%, #FFC21A 0 50%, #18B866 0 75%, #57524A 0);
}

.gg-sleeve-word .gg-sleeve-disc-label {
    display: none;
}

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

.gg-sleeve.is-large .gg-sleeve-disc {
    transform: translateX(30%) 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(--shadow-color);
}

.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: 12px;
    top: 14px;
    background: var(--yellow);
    color: #121212;
    transform: rotate(-6deg);
    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: 110px;
    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(--shadow-color);
    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(--shadow-color);
    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: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    margin-bottom: calc(var(--stroke) * -1);
    padding: 6px 0 0;
    position: relative;
    z-index: 1;
}

.gg-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    border: var(--line);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: var(--paper-2);
    box-shadow: inset 0 calc(var(--stroke) * -1) 0 var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease, height 0.12s ease;
}

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

.gg-tab.is-active {
    height: 52px;
    background: var(--paper-3);
    box-shadow: none;
}

.gg-tab.is-active:hover {
    transform: none;
}

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

.gg-tab-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

.gg-tab-dot {
    flex-shrink: 0;
}

.gg-tab-state {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 1px 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.72rem;
}

.gg-tab-icon {
    font-size: 0.95rem !important;
}

.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;
    border-top-right-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-width: 0;
    min-height: 48px;
    padding: 6px 14px 6px 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;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.gg-slot-hint {
    flex-shrink: 0;
    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: var(--tint-red);
}

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

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

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

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

.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: var(--tint-blue);
    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: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 6px 0;
}

.gg-play-row .gg-play {
    justify-self: center;
}

.gg-play-row .gg-volume {
    justify-self: end;
}

.gg-volume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gg-volume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-3);
    color: var(--ink);
    cursor: pointer;
}

.gg-volume-btn:hover {
    background: var(--yellow);
    color: #121212;
}

.gg-volume-slider {
    width: 96px;
    height: 10px;
    margin: 0;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) 0 var(--fill), var(--paper-2) var(--fill) 100%);
    appearance: none;
    cursor: pointer;
}

.gg-volume-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    appearance: none;
}

.gg-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
}

.gg-reveal-volume {
    margin-left: auto;
}

.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(--shadow-color);
    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(--shadow-color);
}

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

.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 {
    position: relative;
    width: 100%;
}

.gg-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 8px 0 14px;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper-3);
    transition: box-shadow 0.1s ease;
}

.gg-search-field:focus-within {
    box-shadow: var(--shadow);
}

.gg-search.is-disabled .gg-search-field {
    background: var(--paper-2);
    border-color: var(--ink-faint);
}

.gg-search-icon {
    flex-shrink: 0;
    color: var(--ink-soft);
}

.gg-search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 600;
}

.gg-search-input::placeholder {
    color: var(--ink-faint);
    font-weight: 500;
}

.gg-search-spinner {
    flex-shrink: 0;
    color: var(--ink-soft) !important;
}

.gg-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
}

.gg-search-clear:hover {
    background: var(--yellow);
    color: #121212;
}

.gg-search-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 50;
    max-height: min(420px, 60vh);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper-3);
    box-shadow: var(--shadow-lg);
    animation: gg-pop-in 0.12s ease;
}

@keyframes gg-pop-in {
    from { opacity: 0; transform: translateY(6px); }
}

.gg-search-item {
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.gg-search-item.is-active {
    background: var(--yellow);
    color: #121212;
}

.gg-search-item.is-active .gg-hit-artist {
    color: #3B3731;
}

.gg-search-empty {
    padding: 12px;
    color: var(--ink-soft);
    font-weight: 600;
}

.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(--shadow-color);
    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(--shadow-color);
    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(--shadow-color);
    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(--shadow-color);
    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: var(--tint-green-soft);
}

.gg-scorecard-row.is-failed {
    background: var(--tint-red-soft);
}

.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: var(--tint-blue-soft);
}

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

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

.gg-review-round {
    border: var(--line);
    border-radius: var(--radius);
    background: var(--paper-3);
    overflow: hidden;
}

.gg-review-round + .gg-review-round {
    margin-top: 12px;
}

.gg-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--ink);
    background: var(--paper-2);
    min-width: 0;
}

.gg-review-song {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-review-song span {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.gg-review-player {
    display: grid;
    grid-template-columns: minmax(80px, 140px) 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 10px 12px;
}

.gg-review-player + .gg-review-player {
    border-top: 1.5px dashed var(--ink-faint);
}

.gg-review-player.is-me {
    background: var(--tint-blue-soft);
}

.gg-review-name {
    padding-top: 3px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-review-guesses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: guess;
    min-width: 0;
}

.gg-review-guess {
    max-width: 100%;
    padding: 3px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: #121212;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-review-guess::before {
    counter-increment: guess;
    content: counter(guess) ". ";
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.gg-review-guess.is-correct {
    background: var(--tint-green);
}

.gg-review-guess.is-artist {
    background: var(--tint-yellow);
}

.gg-review-guess.is-wrong {
    background: var(--tint-red);
}

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

.gg-review-points {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 3px;
    font-family: var(--mono);
    font-weight: 700;
    white-space: nowrap;
}

.gg-review-points span {
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 400;
}

.gg-enter {
    animation: gg-enter 0.35s ease both;
}

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

.gg-round-board {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.gg-round-card.is-intro .gg-round-board {
    filter: blur(3px);
    opacity: 0.45;
}

.gg-round-intro {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: gg-enter 0.3s ease both;
}

.gg-round-intro .gg-level-badge {
    font-size: 0.9rem;
    padding: 3px 14px;
}

.gg-round-intro-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 6px 6px 0 var(--shadow-color);
    font-size: 3.4rem;
    animation: gg-pulse 1s ease-in-out infinite;
}

@keyframes gg-pulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.gg-round-intro-label {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.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: var(--tint-blue-soft);
    box-shadow: 3px 3px 0 var(--shadow-color);
}

.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-bid-status {
    grid-area: progress;
    justify-self: start;
    padding: 1px 8px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-3);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gg-bid-status.is-holder {
    background: var(--yellow);
    color: #121212;
}

.gg-lobby-rules {
    max-width: 460px;
    margin: 0 auto 20px;
    padding-left: 20px;
    color: var(--ink-soft);
    text-align: left;
    line-height: 1.45;
}

.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: var(--tint-green);
}

.gg-wait-result.is-failed {
    background: var(--tint-red);
}

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border: var(--line);
    border-radius: 50%;
    background: var(--paper-3);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.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;
}

.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.";
}

:root[data-theme="dark"] :is(
    .gg-icon-btn:hover, .gg-sticker, .gg-menu-swatch, .gg-count, .gg-ticker-star, .gg-date-stamp,
    .gg-track.is-solved .gg-track-state, .gg-track.is-failed .gg-track-state,
    .gg-sleeve, .gg-sleeve-face, .gg-game-tagline, .gg-mode:hover, .gg-mode:hover .gg-mode-text span,
    .gg-level-badge, .gg-category-card:hover:not(:disabled), .gg-category-card:hover .gg-category-card-desc,
    .gg-tab.is-solved .gg-tab-state, .gg-tab.is-failed .gg-tab-state,
    .gg-slot.is-wrong, .gg-slot.is-artist, .gg-slot.is-correct,
    .gg-play.is-playing, .gg-reveal-play, .gg-reveal-badge, .gg-points, .gg-summary-points, .gg-score,
    .gg-round-dot.is-current, .gg-round-dot.is-solved, .gg-round-dot.is-failed,
    .gg-scorecard-total strong, .gg-host-badge, .gg-room-code, .gg-timer, .gg-wait-result, .gg-podium-place.place-1
) {
    color: var(--on-color);
}

:root[data-theme="dark"] ::selection {
    color: var(--on-color);
}

:root[data-theme="dark"] .gg-slot-hint {
    color: var(--ink);
}

:root[data-theme="dark"] .gg-wait-result.is-solved,
:root[data-theme="dark"] .gg-wait-result.is-failed {
    border-color: var(--ink);
}

:root[data-theme="dark"] .mud-snackbar:is(.mud-alert-filled-success, .mud-alert-filled-warning, .mud-alert-filled-error),
:root[data-theme="dark"] .mud-snackbar:is(.mud-alert-filled-success, .mud-alert-filled-warning, .mud-alert-filled-error) .mud-icon-root {
    color: var(--on-color) !important;
}

:root[data-theme="dark"] .gg-logo {
    box-shadow: inset 0 0 0 2px var(--ink-faint);
}

.gg-color-ready {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.gg-color-ready p {
    margin: 0;
    font-size: 1.1rem;
}

.gg-flash {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 320px;
    padding: 14px;
    overflow: hidden;
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gg-flash.is-waiting {
    align-items: center;
    justify-content: center;
    background: var(--paper-2);
    color: var(--ink-soft);
}

.gg-flash-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 2px solid #121212;
    border-radius: 999px;
    background: #FBF8F2;
    color: #121212;
    font-size: 0.9rem;
}

.gg-flash-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    border-top: 2px solid #121212;
    background: #FBF8F2;
    transform-origin: left center;
    animation: gg-drain var(--drain, 1s) linear forwards;
}

@keyframes gg-drain {
    from { transform: scaleX(var(--start, 1)); }
    to { transform: scaleX(0); }
}

.gg-mixer {
    display: grid;
    gap: 18px;
}

.gg-mixer-preview {
    min-height: 200px;
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: background 0.05s linear;
}

.gg-mixer-sliders {
    display: grid;
    gap: 14px;
}

.gg-mixer-row {
    display: grid;
    grid-template-columns: 96px 1fr 40px;
    align-items: center;
    gap: 12px;
}

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

.gg-mixer-value {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gg-mixer-slider {
    width: 100%;
    height: 22px;
    margin: 0;
    border: var(--line);
    border-radius: 999px;
    background: var(--track, var(--paper-2));
    appearance: none;
    cursor: pointer;
    touch-action: pan-y;
}

.gg-mixer-slider.is-hue {
    background: linear-gradient(90deg, #FF0000, #FFFF00 17%, #00FF00 33%, #00FFFF 50%, #0000FF 67%, #FF00FF 83%, #FF0000);
}

.gg-mixer-slider::-webkit-slider-thumb {
    width: 30px;
    height: 30px;
    border: 3px solid #121212;
    border-radius: 50%;
    background: #FBF8F2;
    box-shadow: 2px 2px 0 #121212;
    appearance: none;
}

.gg-mixer-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid #121212;
    border-radius: 50%;
    background: #FBF8F2;
    box-shadow: 2px 2px 0 #121212;
}

.gg-mixer-slider:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.gg-color-result {
    display: grid;
    gap: 16px;
}

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

.gg-color-result-head h3 {
    margin: 0;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.gg-color-result-head .gg-summary-points {
    margin: 0;
}

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

.gg-swatch {
    display: grid;
    gap: 6px;
}

.gg-swatch-chip {
    display: block;
    min-height: 140px;
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.gg-swatch-chip.is-empty,
.gg-color-dot.is-empty {
    background: repeating-linear-gradient(45deg, var(--paper-2) 0 6px, var(--paper-3) 6px 12px);
}

.gg-swatch-label {
    font-weight: 700;
}

.gg-swatch-values,
.gg-color-distance {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.gg-color-dot {
    display: inline-block;
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    vertical-align: middle;
}

.gg-color-dot.is-large {
    width: 56px;
    height: 56px;
    margin: 6px 0 10px;
    border-width: var(--stroke);
}

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

.gg-color-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.gg-color-card-pair {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}

.gg-color-card-points {
    min-width: 36px;
    text-align: right;
}

.gg-color-ranking {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-color-ranking li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
}

.gg-color-ranking li.is-me {
    background: var(--tint-blue-soft);
}

.gg-color-ranking li .gg-mono {
    margin-left: auto;
    font-weight: 700;
}

.gg-color-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gg-scoreboard .gg-color-dot {
    grid-area: progress;
    justify-self: start;
}

@media (max-width: 640px) {
    .gg-flash {
        min-height: 240px;
    }

    .gg-mixer-preview {
        min-height: 150px;
    }

    .gg-mixer-row {
        grid-template-columns: 1fr 40px;
        gap: 4px 12px;
    }

    .gg-mixer-label {
        grid-column: 1 / -1;
    }

    .gg-mixer-slider {
        grid-column: 1;
    }

    .gg-swatch-chip {
        min-height: 100px;
    }
}

@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 24px;
    }

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

    .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-play-row {
        gap: 8px;
    }

    .gg-tabs {
        gap: 4px;
    }

    .gg-tab {
        flex-wrap: wrap;
        align-content: center;
        column-gap: 4px;
        row-gap: 3px;
        height: 54px;
        padding: 0 3px;
        border-radius: 10px 10px 0 0;
    }

    .gg-tab.is-active {
        height: 60px;
    }

    .gg-tab-name {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        font-size: 0.64rem;
        letter-spacing: -0.02em;
    }

    .gg-tab-dot {
        width: 10px;
        height: 10px;
    }

    .gg-tab-state {
        padding: 0 5px;
        font-size: 0.62rem;
    }

    .gg-tab-icon {
        font-size: 0.8rem !important;
    }

    .gg-review-player {
        grid-template-columns: 1fr auto;
        row-gap: 6px;
    }

    .gg-review-guesses {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .gg-volume {
        gap: 4px;
    }

    .gg-volume-slider {
        display: none;
    }

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

.gg-word {
    display: grid;
    justify-items: center;
    gap: 22px;
}

.gg-word-board {
    position: relative;
    display: grid;
    gap: 7px;
    width: min(100%, 330px);
}

.gg-word-row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
    gap: 7px;
}

.gg-word-row.is-shaking {
    animation: gg-shake 0.4s ease;
}

.gg-tile {
    --tile: var(--paper-3);
    --tile-ink: var(--ink);
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    border: var(--line);
    border-radius: 8px;
    background: var(--paper-3);
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(1.2rem, 7vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.gg-tile:empty {
    border-color: var(--ink-faint);
}

.gg-tile.is-filled {
    box-shadow: 3px 3px 0 var(--shadow-color);
    animation: gg-pop 0.12s ease;
}

.gg-tile.is-correct {
    --tile: var(--green);
    --tile-ink: #121212;
}

.gg-tile.is-present {
    --tile: var(--yellow);
    --tile-ink: #121212;
}

.gg-tile.is-absent {
    --tile: var(--absent);
    --tile-ink: var(--absent-ink);
}

.gg-tile.is-answer {
    --tile: var(--red);
    --tile-ink: #121212;
}

.gg-tile:is(.is-correct, .is-present, .is-absent, .is-answer) {
    border-color: var(--ink);
    background: var(--tile);
    color: var(--tile-ink);
}

.gg-tile.is-revealed {
    animation: gg-flip 0.5s ease both;
    animation-delay: calc(var(--i, 0) * 0.12s);
}

.gg-tile.is-small {
    width: clamp(32px, 10vw, 44px);
    font-size: clamp(1rem, 5vw, 1.4rem);
    box-shadow: 3px 3px 0 var(--shadow-color);
}

@keyframes gg-flip {
    0% { transform: rotateX(0); background: var(--paper-3); color: var(--ink); }
    49% { transform: rotateX(90deg); background: var(--paper-3); color: var(--ink); }
    50% { transform: rotateX(90deg); background: var(--tile); color: var(--tile-ink); }
    100% { transform: rotateX(0); background: var(--tile); color: var(--tile-ink); }
}

@keyframes gg-pop {
    from { transform: scale(0.88); }
    to { transform: scale(1); }
}

@keyframes gg-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.gg-word-toast {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 2;
    padding: 8px 14px;
    border: var(--line);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.85rem;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: gg-toast 0.15s ease;
}

@keyframes gg-toast {
    from { transform: translateX(-50%) scale(0.88); }
    to { transform: translateX(-50%) scale(1); }
}

.gg-keyboard {
    display: grid;
    gap: 7px;
    width: 100%;
    max-width: 520px;
}

.gg-key-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gg-key {
    --tile: var(--paper-3);
    --tile-ink: var(--ink);
    display: grid;
    flex: 1 1 0;
    place-items: center;
    min-width: 0;
    max-width: 46px;
    height: 54px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 7px;
    background: var(--tile);
    box-shadow: 2px 2px 0 var(--shadow-color);
    color: var(--tile-ink);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.gg-key.is-wide {
    flex-grow: 1.6;
    max-width: 74px;
    font-size: 0.8rem;
}

.gg-key.is-correct {
    --tile: var(--green);
    --tile-ink: #121212;
}

.gg-key.is-present {
    --tile: var(--yellow);
    --tile-ink: #121212;
}

.gg-key.is-absent {
    --tile: var(--absent);
    --tile-ink: var(--absent-ink);
}

.gg-key:active:not(:disabled) {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.gg-key:disabled {
    cursor: default;
    opacity: 0.55;
}

.gg-word-answer {
    display: inline-flex;
    gap: 6px;
    margin: 6px 0 4px;
}

.gg-word-mini {
    display: inline-grid;
    grid-template-columns: repeat(var(--cols, 5), 9px);
    gap: 2px;
    flex: none;
}

.gg-scoreboard .gg-word-mini {
    grid-area: progress;
    justify-self: start;
}

.gg-word-mini-cell {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--paper-2);
    box-shadow: inset 0 0 0 1px var(--ink-faint);
}

.gg-word-mini-cell.is-correct {
    background: var(--green);
    box-shadow: none;
}

.gg-word-mini-cell.is-present {
    background: var(--yellow);
    box-shadow: none;
}

.gg-word-mini-cell.is-absent {
    background: var(--absent);
    box-shadow: none;
}

.gg-word-status {
    margin: 0 0 14px;
    text-align: center;
}

.gg-word-status.is-solved {
    color: var(--green);
    font-weight: 700;
}

.gg-word-round {
    display: grid;
    gap: 10px;
}

.gg-word-round h3 {
    margin: 0;
}

.gg-word-cell {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gg-word-stats {
    width: 100%;
    margin-top: 18px;
}

.gg-word-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gg-word-stat {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 6px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
}

.gg-word-stat strong {
    font-size: 1.6rem;
    line-height: 1;
}

.gg-word-stat span {
    color: var(--ink-soft);
    font-size: 0.72rem;
    text-align: center;
}

.gg-word-dist {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-word-dist li {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
    gap: 8px;
}

.gg-word-dist-bar {
    width: calc(var(--share, 0.08) * 100%);
    min-width: 28px;
    padding: 2px 8px;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--ink-faint);
    color: var(--paper-3);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
}

.gg-word-dist li.is-today .gg-word-dist-bar {
    background: var(--green);
    color: #121212;
}

@media (max-width: 640px) {
    .gg-word-row,
    .gg-word-board {
        gap: 6px;
    }

    .gg-key-row {
        gap: 4px;
    }

    .gg-key {
        height: 50px;
        font-size: 0.95rem;
    }

    .gg-key.is-wide {
        font-size: 0.7rem;
    }

    .gg-word-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
