/* ===============================================================
   style.css — exact-copy build of online-dice.com/roll-color-dice
   Uses the real Marvin font, dicefont, and bg-lg.png from the site,
   served locally.
   =============================================================== */

@font-face {
    font-family: "Marvin";
    src: url("fonts/Marvin-webfont.woff2") format("woff2"),
         url("fonts/Marvin-webfont.woff")  format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: "dicefont";
    src: url("fonts/dicefont.woff") format("woff"),
         url("fonts/dicefont.ttf")  format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* CSS variables for themes */
:root {
    --primary: #08f;
    --primary-dark: #0066c9;
    --bg-radial-from: #f1f9ff;
    --bg-radial-to: #08f;
    --card-fill: rgba(0,136,255,0.7);
    --card-fill-2: rgba(0,136,255,0.45);
    --footer-bg: #002f59;
}
body[data-theme="green"] {
    --primary: #008000;
    --primary-dark: #005700;
    --bg-radial-from: #f1fff1;
    --bg-radial-to: #008000;
    --card-fill: rgba(0,128,0,0.7);
    --card-fill-2: rgba(0,128,0,0.45);
    --footer-bg: #003800;
}
body[data-theme="red"] {
    --primary: #B22222;
    --primary-dark: #7d1818;
    --bg-radial-from: #fff1f1;
    --bg-radial-to: #B22222;
    --card-fill: rgba(178,34,34,0.7);
    --card-fill-2: rgba(178,34,34,0.45);
    --footer-bg: #4a0e0e;
}
body[data-theme="bw"] {
    --primary: #222;
    --primary-dark: #000;
    --bg-radial-from: #fafafa;
    --bg-radial-to: #555;
    --card-fill: rgba(40,40,40,0.7);
    --card-fill-2: rgba(40,40,40,0.45);
    --footer-bg: #111;
}

/* === Original styles (1:1 copy with local paths + theme vars) === */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Marvin", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    border: none;
    box-sizing: border-box;
    background: var(--primary) radial-gradient(var(--bg-radial-from), var(--bg-radial-to));
    color: #fff;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
body { min-height: 100vh; }

p, h1, h2, h3, h4, h5, h6, form {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 { font-size: 34px; line-height: 1.2em; }
h2 { font-size: 28px; line-height: 1.2em; }
h3 { font-size: 24px; line-height: 1.2em; }
h4 { font-size: 22px; line-height: 1.2em; }
h5 { font-size: 20px; line-height: 1.2em; }
h6 { font-size: 18px; line-height: 1.2em; }

a {
    color: #fff;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color .35s ease;
}
a:hover { color: #fff; transition-duration: .06s; }

input:focus, select:focus { outline: 0; -webkit-tap-highlight-color: none; }
div { position: relative; }
span { display: inline; box-sizing: border-box; }

.separator-xs { display: block; height: 10px; width: 100%; }
.separator-sm { display: block; height: 20px; width: 100%; }
.separator-md { display: block; height: 30px; width: 100%; }

.card { box-sizing: border-box; vertical-align: top; margin-left: auto; margin-right: auto; }
.centered { margin-left: auto; margin-right: auto; }
.padded { padding: 35px 50px; }
.rounded { border-radius: 4px; }
.more-rounded {
    border-radius: 20px;
    border: 5px solid rgba(255,255,255,0.5);
    box-shadow: 2px 2px 5px 1px rgba(0,98,183,0.33);
}
.filled { background: var(--card-fill); }
.full { width: calc(100% - 10px); max-width: 800px; }
.two-thirds { width: 450px; }
.third { width: 33.33%; max-width: 300px; }
.block { display: block; }
.inline-block { display: inline-block; }
.hide { display: none; }
.inner { width: 100%; max-width: 1070px; margin: 0 auto; text-align: left; }

.light {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 30%);
    background-repeat: repeat-x;
    background-position: 0 0;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

#content {
    padding-bottom: 20px;
    background-repeat: repeat;
    background-image: url("images/bg-lg.png");
    background-size: 500px;
}
#content .inner { padding: 110px 0 0 0; }

#title { text-align: center; font-size: 64px; }
#logo { filter: saturate(1.05) brightness(1.03); }
#sub-title {
    text-shadow: -1px -1px 0 var(--primary), 1px -1px 0 var(--primary),
                 -1px 1px 0 var(--primary), 3px 3px 0 var(--primary);
    letter-spacing: .06em;
    padding: 0 0 20px 0;
    text-align: center;
}

#dice-roll-box {
    text-align: center;
    background: var(--card-fill-2);
    padding: 30px 15px;
}
#sub-title2 {
    text-shadow: -1px -1px 0 var(--primary), 1px -1px 0 var(--primary),
                 -1px 1px 0 var(--primary), 3px 3px 0 var(--primary);
    letter-spacing: .02em;
    padding: 0;
}

.dropdowns {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 15px 0 10px 0;
    width: 100%;
}
.dropdowns select {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 8px;
    border-radius: 0.25em;
    border: 3px solid var(--primary);
    font-size: 15px;
    background: #fff !important;
    font-family: "Marvin", Arial, sans-serif !important;
    color: var(--primary) !important;
    text-overflow: ellipsis;
}

/* Footer language select keeps its own sizing */
#footer select {
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 0.25em;
    border: 3px solid var(--primary);
    font-size: 16px;
    background: #fff !important;
    font-family: "Marvin", Arial, sans-serif !important;
    color: var(--primary) !important;
}

#roll-button {
    width: calc(100% - 10px);
    box-sizing: border-box;
    font-size: 22px;
    padding: 13px 0;
    margin-bottom: 10px;
    text-shadow: -1px -1px 0 #ca8a00, 1px -1px 0 #ca8a00,
                 -1px 1px 0 #ca8a00, 2px 2px 0 #ca8a00;
    letter-spacing: 0.02em;
    background: rgb(255,215,0);
    background-image: linear-gradient(to bottom, rgb(255,235,0) 0%, rgb(255,215,0) 51%, rgb(255,244,188) 100%);
    background-size: auto 200%;
    border-top: 3px solid #fff;
    border-right: 3px solid rgba(255,255,255,0.8);
    border-bottom: 3px solid rgba(255,255,255,0.8);
    border-left: 3px solid rgba(255,255,255,0.8);
    transition: 0.1s;
    text-align: center;
    cursor: pointer;
}
#roll-button:hover { background-size: auto 200%; background-position: bottom center; }

#pwa-button {
    display: inline-block;
    width: auto;
    box-sizing: border-box;
    font-size: 20px;
    padding: 20px 30px;
    text-shadow: none;
    letter-spacing: 0.02em;
    background: rgb(255,215,0);
    background-image: linear-gradient(to bottom, rgb(80,180,255) 0%, rgb(30,120,220) 51%, rgb(210,240,255) 100%);
    background-size: auto 200%;
    border-top: 2px solid #fff;
    border-right: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    border-left: 2px solid rgba(255,255,255,0.8);
    border-radius: 25px;
    transition: 0.1s;
    margin: 5px auto 5px auto;
    color: #fff;
    text-align: center;
    cursor: pointer;
}
#pwa-button:hover { background-position: bottom center; }
.pwa-sub {
    font-family: Arial, sans-serif;
    margin-top: 5px;
    color: #fff;
    display: block;
    font-style: italic;
    font-size: 16px;
    text-transform: none;
}

.tabletop { padding: 10px 0; text-align: center; min-height: 110px; }

.rounded-dice {
    background: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0);
}

.section-title {
    margin-bottom: 20px;
    text-shadow: -1px -1px 0 var(--primary), 1px -1px 0 var(--primary),
                 -1px 1px 0 var(--primary), 3px 3px 0 var(--primary);
    letter-spacing: 0.02em;
    text-align: center;
}
.section-text p, .blog-excerpt p {
    font-family: Arial, sans-serif;
    margin: 20px 0;
    line-height: 1.4em;
    text-transform: none;
}

.blog-post {
    padding: 20px 25px;
    background: rgba(77,172,255,0.9);
    box-shadow: 2px 2px 5px 1px rgba(0,98,183,0.33);
}
.blog-title { font-size: 18px; margin-bottom: 20px; }
.blog-title a { color: rgb(255,235,0); }
.blog-title a:hover { color: rgb(255,245,0); }
.blog-more-link { text-align: right; }
.blog-more-link a {
    font-family: "Marvin", Arial, sans-serif;
    text-align: center;
    color: #fff;
    background: rgb(255,215,0);
    background-image: linear-gradient(to bottom, rgb(255,235,0) 0%, rgb(255,215,0) 51%, rgb(255,244,188) 100%);
    background-size: auto 200%;
    width: 160px;
    padding: 7px 4px;
    text-shadow: -1px -1px 0 #ca8a00, 1px -1px 0 #ca8a00,
                 -1px 1px 0 #ca8a00, 2px 2px 0 #ca8a00;
    letter-spacing: 0.02em;
    border-top: 1px solid #fff;
    border-right: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    border-left: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
}
.blog-more-link a:hover { background-position: bottom center; }

#footer {
    letter-spacing: 0.02em;
    background: var(--footer-bg);
    padding: 35px 0 120px 0;
}
#footer .inner { text-align: center; }
#footer a { margin: 0 7px; padding: 5px 3px; }
.footer-menu-1, .footer-menu-2, .footer-menu-3, .copyright { padding: 15px 0; }
.copyright { font-size: 13px; }
.footer-menu-3 select { min-width: 250px; width: 250px; max-width: 250px; font-size: 16px !important; }

/* "Fewer ads" yellow strip — bottom of viewport */
#fixed-bottom {
    position: fixed;
    letter-spacing: -0.02em;
    bottom: 0;
    left: 0;
    font-size: 12px;
    width: 100%;
    text-align: center;
    font-family: Arial, sans-serif;
    background: #FFFFE0;
    color: #000;
    z-index: 2;
    padding: 3px 5px;
    text-transform: none;
}
#fixed-bottom a { color: blue; font-size: 12px; text-decoration: underline; }

/* === Loader === */
.loader {
    position: fixed;
    top: 0;
    z-index: 100000;
    min-height: 480px;
    width: 100%;
    height: 100%;
    background: var(--primary) radial-gradient(#d2ebfe, var(--primary));
    opacity: 1;
    display: block;
}
.loader-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-image: url("images/bg-lg.png");
    background-size: 500px;
}
.loader-title {
    text-shadow: -1px -1px 0 var(--primary), 1px -1px 0 var(--primary),
                 -1px 1px 0 var(--primary), 3px 3px 0 var(--primary);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    visibility: visible;
}
.loader.hide {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s linear;
}
.loader-loader {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    cursor: default;
    pointer-events: none;
    width: calc(100% - 20px);
}

/* === Dicefont (from the real site) === */
[data-icon]:before { content: attr(data-icon); }
[data-icon]:before,
.df-d10-0:before,.df-d10-1:before,.df-d10-10:before,.df-d10-2:before,.df-d10-3:before,.df-d10-4:before,.df-d10-5:before,.df-d10-6:before,.df-d10-7:before,.df-d10-8:before,.df-d10-9:before,
.df-d12-1:before,.df-d12-10:before,.df-d12-11:before,.df-d12-12:before,.df-d12-2:before,.df-d12-3:before,.df-d12-4:before,.df-d12-5:before,.df-d12-6:before,.df-d12-7:before,.df-d12-8:before,.df-d12-9:before,
.df-d20-1:before,.df-d20-10:before,.df-d20-11:before,.df-d20-12:before,.df-d20-13:before,.df-d20-14:before,.df-d20-15:before,.df-d20-16:before,.df-d20-17:before,.df-d20-18:before,.df-d20-19:before,.df-d20-2:before,.df-d20-20:before,.df-d20-3:before,.df-d20-4:before,.df-d20-5:before,.df-d20-6:before,.df-d20-7:before,.df-d20-8:before,.df-d20-9:before,
.df-d4-1:before,.df-d4-2:before,.df-d4-3:before,.df-d4-4:before,
.df-d6-1:before,.df-d6-2:before,.df-d6-3:before,.df-d6-4:before,.df-d6-5:before,.df-d6-6:before,
.df-d8-1:before,.df-d8-2:before,.df-d8-3:before,.df-d8-4:before,.df-d8-5:before,.df-d8-6:before,.df-d8-7:before,.df-d8-8:before,
.df-solid-small-dot-d6-1:before,.df-solid-small-dot-d6-2:before,.df-solid-small-dot-d6-3:before,.df-solid-small-dot-d6-4:before,.df-solid-small-dot-d6-5:before,.df-solid-small-dot-d6-6:before {
    display: inline-block;
    font-family: "dicefont";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    text-decoration: inherit;
    text-rendering: optimizeLegibility;
    text-transform: none;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}
.df-d4-1:before { content: "\f12d"; } .df-d4-2:before { content: "\f12e"; }
.df-d4-3:before { content: "\f12f"; } .df-d4-4:before { content: "\f130"; }
.df-d6-1:before { content: "\f131"; } .df-d6-2:before { content: "\f132"; }
.df-d6-3:before { content: "\f133"; } .df-d6-4:before { content: "\f134"; }
.df-d6-5:before { content: "\f135"; } .df-d6-6:before { content: "\f136"; }
.df-d8-1:before { content: "\f137"; } .df-d8-2:before { content: "\f138"; }
.df-d8-3:before { content: "\f139"; } .df-d8-4:before { content: "\f13a"; }
.df-d8-5:before { content: "\f13b"; } .df-d8-6:before { content: "\f13c"; }
.df-d8-7:before { content: "\f13d"; } .df-d8-8:before { content: "\f13e"; }
.df-d10-0:before { content: "\f100"; } .df-d10-1:before { content: "\f101"; }
.df-d10-2:before { content: "\f103"; } .df-d10-3:before { content: "\f104"; }
.df-d10-4:before { content: "\f105"; } .df-d10-5:before { content: "\f106"; }
.df-d10-6:before { content: "\f107"; } .df-d10-7:before { content: "\f108"; }
.df-d10-8:before { content: "\f109"; } .df-d10-9:before { content: "\f10a"; }
.df-d10-10:before { content: "\f102"; }
.df-d12-1:before { content: "\f10b"; } .df-d12-2:before { content: "\f10f"; }
.df-d12-3:before { content: "\f110"; } .df-d12-4:before { content: "\f111"; }
.df-d12-5:before { content: "\f112"; } .df-d12-6:before { content: "\f113"; }
.df-d12-7:before { content: "\f114"; } .df-d12-8:before { content: "\f115"; }
.df-d12-9:before { content: "\f116"; } .df-d12-10:before { content: "\f10c"; }
.df-d12-11:before { content: "\f10d"; } .df-d12-12:before { content: "\f10e"; }
.df-d20-1:before { content: "\f119"; } .df-d20-2:before { content: "\f124"; }
.df-d20-3:before { content: "\f126"; } .df-d20-4:before { content: "\f127"; }
.df-d20-5:before { content: "\f128"; } .df-d20-6:before { content: "\f129"; }
.df-d20-7:before { content: "\f12a"; } .df-d20-8:before { content: "\f12b"; }
.df-d20-9:before { content: "\f12c"; } .df-d20-10:before { content: "\f11a"; }
.df-d20-11:before { content: "\f11b"; } .df-d20-12:before { content: "\f11c"; }
.df-d20-13:before { content: "\f11d"; } .df-d20-14:before { content: "\f11e"; }
.df-d20-15:before { content: "\f11f"; } .df-d20-16:before { content: "\f120"; }
.df-d20-17:before { content: "\f121"; } .df-d20-18:before { content: "\f122"; }
.df-d20-19:before { content: "\f123"; } .df-d20-20:before { content: "\f125"; }
.df-solid-small-dot-d6-1:before { content: "\f189"; }
.df-solid-small-dot-d6-2:before { content: "\f18a"; }
.df-solid-small-dot-d6-3:before { content: "\f18b"; }
.df-solid-small-dot-d6-4:before { content: "\f18c"; }
.df-solid-small-dot-d6-5:before { content: "\f18d"; }
.df-solid-small-dot-d6-6:before { content: "\f18e"; }

/* === Dice sizing & animation (1:1 from original) === */
.size-100 { font-size: 100px; width: 100px; height: 100px; }
.size-100 i { width: 100px; height: 100px; display: block; }
.dice-wrapper {
    display: inline-block;
    line-height: 1;
    position: relative;
    margin: 5px;
}
/* Subtle dice jiggle — runs once when a die first appears (matches the
   gentle "rolled and settled" feel of typical dice rollers). */
@keyframes shake {
    0%   { transform: translate(0, 0)     rotate(0deg); }
    15%  { transform: translate(-2px, 1px) rotate(-2deg); }
    30%  { transform: translate(2px, -1px) rotate(2deg); }
    45%  { transform: translate(-2px, 2px) rotate(-1deg); }
    60%  { transform: translate(2px, 0)    rotate(1deg); }
    75%  { transform: translate(-1px, -1px) rotate(-1deg); }
    100% { transform: translate(0, 0)     rotate(0deg); }
}
.dice-wrapper i {
    display: inline-block;
    animation: shake 0.5s ease-out 1;
}

/* History dice don't jiggle */
.history-row .dice-wrapper i { animation: none !important; }
.history-row {
    border-bottom: 1px dashed #fff;
    padding-bottom: 5px;
    margin-bottom: 5px;
}
.history-row:last-child { border-bottom: none; }
.history-index {
    margin-right: 5px;
    text-align: right;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.history-die {
    vertical-align: middle;
    margin: 5px 2px;
    background: #fff !important;
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
    display: inline-block;
    position: relative;
}
.history-die i { font-size: 32px !important; width: 32px !important; height: 32px !important; display: block; }
.history-note {
    margin-top: 8px !important;
    font-family: Arial, sans-serif !important;
    font-weight: 700;
    background: #fff;
    color: red;
    padding: 10px;
    border-radius: 10px;
}

/* "Possible colors are" banner & chances link */
.colors-banner {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    background: rgba(225,225,225,0.3);
    border-radius: 4px;
    padding: 2px 0;
    text-transform: none;
}
.chances-link {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    border-radius: 4px;
    padding: 2px 0;
    text-transform: none;
}
.chances-link a { color: #fff; text-decoration: underline; }

/* === Responsive (from original) === */
.pc-only { display: block; }
.mob-only { display: none; }
@media only screen and (max-width: 650px) {
    .pc-only { display: none !important; }
    .mob-only { display: block !important; }
    .light { display: none; }
    #dice-roll-box { padding: 0 15px 0 15px !important; background: none !important; border: none !important; box-shadow: unset !important; }
    #num-select, #type-select, #theme-select, select { font-size: 16px !important; padding: 3px 8px !important; margin: 5px 5px 5px 5px; border: 2px solid var(--primary) !important; }
    #roll-button { font-size: 20px !important; padding: 6px 0 !important; margin-bottom: 10px !important; border-width: 2px; }
    #content .inner { padding: 50px 0 0 0; }
    #title { line-height: 1em !important; font-size: 56px !important; }
    #logo { height: 40px !important; }
    #sub-title { font-size: 22px; padding-bottom: 10px; }
    #sub-title2 { font-size: 26px; padding: 10px 0; display: none; }
    .loader-title { font-size: 28px; }
    .tabletop { padding: 0 0 5px 0; }
    .separator-sm { height: 10px; }
    .section-title { font-size: 24px; }
    #footer { padding: 20px 0 60px 0; }
    .padded { padding: 20px 15px; }
    .more-rounded { border: none !important; box-shadow: none !important; border-radius: 0 !important; }
    .size-100 { font-size: 70px !important; width: 70px !important; height: 70px !important; }
    .size-100 i { width: 70px !important; height: 70px !important; }
    .rounded-dice { border-radius: 10px !important; }
}
@media only screen and (max-width: 930px) {
    .full, .two-thirds, .third { display: block; width: 100%; margin-left: auto; margin-right: auto; }
}
@media only screen and (min-width: 1390px) {
    .inner { text-align: center; width: 1380px; max-width: 1380px; }
    .two-thirds { margin-left: auto; margin-right: auto; }
}
@media only screen and (min-width: 1420px) {
    .two-thirds { width: 650px; }
}
@media only screen and (min-height: 900px) and (min-width: 650px) {
    #sub-title2 { font-size: 28px; }
}
@media only screen and (max-height: 900px) and (min-width: 650px) {
    #content .inner { padding: 100px 0 0 0 !important; }
    #logo { height: 50px !important; }
    #title { font-size: 45px !important; margin-bottom: 5px !important; }
    h1 { line-height: 1em !important; }
    #sub-title { display: none !important; }
    #dice-roll-box { padding: 20px 15px !important; }
    #num-select, #type-select, #theme-select, select { padding: 5px 7px !important; margin: 5px 5px 0 5px !important; }
    #roll-button { padding: 7px 0 !important; font-size: 20px !important; }
    .size-100 { width: 80px !important; height: 80px !important; font-size: 80px !important; }
    .size-100 i { width: 80px !important; height: 80px !important; }
    .rounded-dice { border-radius: 12px !important; }
}

/* === Hidden Rig Panel (custom add-on) === */
.rig-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200000;
}
.rig-panel.open { display: flex; }
.rig-card {
    background: #fff;
    color: #1a1a2e;
    width: min(520px, 92vw);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 30, 60, 0.45);
    padding: 24px;
    font-family: Arial, sans-serif;
    text-transform: none;
}
.rig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rig-head h3 { margin: 0; font-size: 20px; color: var(--primary); font-family: "Marvin", Arial, sans-serif; }
.rig-close { background: none; border: none; font-size: 26px; cursor: pointer; color: #888; line-height: 1; }
.rig-sub { margin: 4px 0 16px; color: #555; font-size: 14px; }
.rig-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.rig-swatch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: #f4f4f8;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}
.rig-swatch .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.18);
}
.rig-swatch.banned { border-color: #ef4444; background: #fee2e2; }
.rig-swatch.banned::after {
    content: "BLOCKED";
    position: absolute;
    right: 8px;
    font-size: 10px;
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.rig-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.rig-btn { padding: 10px 16px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; font-family: inherit; }
.rig-btn.primary { background: var(--primary); color: #fff; }
.rig-btn.ghost { background: transparent; color: #666; border: 1px solid #e5e7eb; }
.rig-hint { margin-top: 14px; font-size: 12px; color: #777; }
.rig-hint kbd {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-bottom-width: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    margin: 0 1px;
}

/* Invisible bottom-right hotspot */
#secretCorner {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 48px;
    z-index: 60;
    background: transparent;
}

/* Visible rig trigger button — top-right corner, easy to crop out */
#rigTrigger {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 150;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: "Marvin", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.1s ease, background 0.15s ease;
}
#rigTrigger:hover { background: #dc2626; transform: translateY(-1px); }
#rigTrigger:active { transform: translateY(0); }
