/* Pixelia "chunky" buttons (2026-11-17), modelled on the login panel of the HabboBuzz / Habbo Speedway teaser video:
   flat colour, the upper half a shade lighter with a hard split (gloss), a thin darker ledge INSIDE the bottom edge,
   a 1px near-black outline all around, small radius, bold label. Pressing pushes the key down. One file, loaded last in layouts/base.njk, so it is trivial to roll back
   (remove the <link>). Variants set four custom properties: --bk-top / --bk-bot (surface), --bk-edge (ledge), --bk-ink.
   Not touched: nav tabs, icon buttons, size modifiers (.btn-sm/.btn-lg keep their own height). */

:root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft,
               .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main, .px-btn-green, .hm-enter,
               .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple,
               .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn) {
  --bk-top: #d6d8d9; --bk-bot: #d6d8d9; --bk-edge: #a6aaae; --bk-ink: #1c2530; --bk-shadow: none;
  --bk-gloss: rgba(255, 255, 255, .45); --bk-line: rgba(10, 14, 20, .5);
  border: 0 !important;
  border-radius: 5px;
  background:
    linear-gradient(var(--bk-gloss), var(--bk-gloss)) 0 0 / 100% 48% no-repeat,
    linear-gradient(var(--bk-top), var(--bk-bot)) !important;
  color: var(--bk-ink) !important;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: var(--bk-shadow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -3px 0 color-mix(in srgb, var(--bk-edge) 60%, transparent),
    0 0 0 1px var(--bk-line),
    0 3px 6px -2px rgba(0, 0, 0, .4) !important;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .12s ease;
}
:root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft, .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main,
               .px-btn-green, .hm-enter, .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple, .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn):hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -3px 0 color-mix(in srgb, var(--bk-edge) 60%, transparent), 0 0 0 1px var(--bk-line), 0 6px 10px -3px rgba(0, 0, 0, .45) !important;
}
:root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft, .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main,
               .px-btn-green, .hm-enter, .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple, .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn):active {
  filter: none;
  transform: translateY(1px);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .18), inset 0 -1px 0 color-mix(in srgb, var(--bk-edge) 60%, transparent), 0 0 0 1px var(--bk-line), 0 1px 2px rgba(0, 0, 0, .3) !important;
}
:root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft, .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main,
               .px-btn-green, .hm-enter, .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple, .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn):focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}
:root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft, .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main,
               .px-btn-green, .hm-enter, .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple, .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn):is(:disabled, .is-disabled, [aria-disabled="true"]) {
  opacity: .55; cursor: not-allowed; filter: grayscale(.25); transform: none;
}

/* green = primary action (login, register, enter the hotel) */
:root body :is(.btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main, .px-btn-green, .hm-enter) {
  --bk-top: #20ac4a; --bk-bot: #20ac4a; --bk-edge: #0e6b2b; --bk-ink: #fff; --bk-gloss: rgba(70, 235, 120, .26); --bk-line: rgba(0, 28, 8, .75); --bk-shadow: 0 1px 0 rgba(0, 60, 20, .45);
}
/* blue = secondary highlight (sign in next to register, info) */
:root body :is(.btn-blue, .btn-info, .px-btn-blue, .hm-act) {
  --bk-top: #2c78d4; --bk-bot: #2c78d4; --bk-edge: #123f84; --bk-ink: #fff; --bk-gloss: rgba(90, 170, 255, .28); --bk-line: rgba(0, 14, 50, .75); --bk-shadow: 0 1px 0 rgba(0, 30, 90, .45);
}
/* blurple = Discord */
:root body :is(.btn-blurple) {
  --bk-top: #5260ed; --bk-bot: #5260ed; --bk-edge: #2a3394; --bk-ink: #fff; --bk-gloss: rgba(130, 145, 255, .3); --bk-line: rgba(10, 14, 60, .75); --bk-shadow: 0 1px 0 rgba(20, 25, 90, .45);
}
/* dark = neutral on busy backgrounds (tabs / segmented look from the video) */
:root body :is(.btn-dark) {
  --bk-top: #353838; --bk-bot: #353838; --bk-edge: #0c0d0d; --bk-ink: #fff; --bk-gloss: rgba(255, 255, 255, .1); --bk-line: rgba(0, 0, 0, .85); --bk-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
/* red = destructive */
:root body :is(.btn-danger) {
  --bk-top: #d23f31; --bk-bot: #d23f31; --bk-edge: #7a1b12; --bk-ink: #fff; --bk-gloss: rgba(255, 130, 110, .28); --bk-line: rgba(50, 5, 0, .75); --bk-shadow: 0 1px 0 rgba(90, 10, 5, .45);
}
/* yellow = Habbo call-out */
:root body :is(.btn-orange, .btn-warning, .px-reg-btn) {
  --bk-top: #f2a81f; --bk-bot: #f2a81f; --bk-edge: #a05f05; --bk-ink: #fff; --bk-gloss: rgba(255, 220, 90, .32); --bk-line: rgba(60, 30, 0, .75); --bk-shadow: 0 1px 0 rgba(120, 60, 0, .55);
}
/* default .btn / .btn-secondary / .btn-ghost / .btn-soft keep the light grey ("Continue with Google") from the variable block above */
:root body :is(.btn-ghost, .btn-soft) { --bk-top: #dde1e5; --bk-bot: #dde1e5; }

@media (prefers-reduced-motion: reduce) {
  :root body :is(.btn, .btn-secondary, .btn-ghost, .btn-soft, .btn-primary, .btn-green, .btn-success, .btn-play-habbo, .btn-oyna, .btn-main,
                 .px-btn-green, .hm-enter, .btn-blue, .btn-info, .px-btn-blue, .hm-act, .btn-blurple, .btn-dark, .btn-danger, .btn-orange, .btn-warning, .px-reg-btn) { transition: none; }
}
