/* 90s home page look, same as jumpydan.io */
[hidden] {
    display: none !important;
}

body {
    background: #f5f5dc;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    margin: 12px 16px;
}
a {
    color: #0000ee;
}
a:visited {
    color: #551a8b;
}
h1 {
    margin: 0.2em 0 0.1em;
}
h2 {
    margin: 0 0 0.3em;
    font-weight: normal;
    font-style: italic;
}
h3 {
    margin: 1em 0 0.3em;
}
hr {
    border: 0;
    border-top: 2px groove #b9b9a0;
}
.beta {
    margin: 0.2em 0;
}

#game-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}
.game-wrap {
    flex: 0 1 auto;
    max-width: 100%;
    border: 3px ridge #b9b9a0;
    line-height: 0;
    background: #000;
}
#game {
    display: block;
    outline: none;
    image-rendering: auto;
}
.side {
    flex: 1 1 260px;
    max-width: 400px;
}
.board-col {
    flex: 0 1 auto;
    min-width: 300px;
    max-width: 360px;
}
#tuning-panel {
    flex: 1 1 340px;
    max-width: 420px;
}
#tuning-panel h3 {
    margin-top: 0;
}
/* side columns scroll, page doesn't */
.column {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 6px;
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.top-links {
    margin: 0 0 0.4em;
}
.top-right {
    text-align: right;
}
.account-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 0 0 0.4em;
}
.account {
    margin: 0;
}
.me {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    align-self: center;
}
.me canvas {
    border: 1px solid #888;
}

/* dress up dan panel */
.look {
    border: 2px groove #999;
    background: #fff;
    padding: 6px 10px 8px;
    margin-bottom: 10px;
}
.look-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.look-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 6px;
}
.look-body canvas {
    flex: none;
    border: 1px solid #999;
}
.look-controls {
    display: grid;
    gap: 7px;
    min-width: 0;
}
.look-controls fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.look-controls legend {
    font-weight: bold;
    padding: 0;
    float: left;
    margin-right: 6px;
}
.look-controls label {
    white-space: nowrap;
}
.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.swatches label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    gap: 1px;
}
.swatches input[type='color'] {
    width: 34px;
    height: 24px;
    padding: 0;
    border: 2px inset #ddd;
    background: none;
    cursor: pointer;
}
.portrait-row {
    align-items: center;
}
.look-body canvas.portrait-preview {
    border: 1px solid #888;
}
.jet {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    align-items: center;
}
.jet select {
    width: 100%;
    min-width: 0;
}
.wardrobe {
    display: grid;
    gap: 5px;
}
.wardrobe legend {
    margin-bottom: 2px;
}
.slot-row {
    margin: 0;
}
.try-buy {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin: 0 0 4px;
}
.try-buy[hidden] {
    display: none;
}
.crown-where {
    display: grid;
    gap: 1px;
    margin-top: 4px;
    font-size: 13px;
}
.crown-where input {
    margin: 0 4px 0 0;
    vertical-align: -2px;
}
.crown-where label:has(input:disabled) {
    color: #888;
}
.aura-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.aura-row input[type='color'] {
    width: 28px;
    height: 18px;
    padding: 0;
    border: 2px inset #ddd;
    background: none;
    cursor: pointer;
}
.aura-row input[type='color']:disabled {
    opacity: 0.35;
    cursor: default;
}
.earn {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.shop {
    margin: 2px 0;
}
.shop .tokens {
    margin: 0 0 3px;
}
.send {
    margin: 2px 0;
}
.send input[name='n'] {
    width: 4.5em;
}
.send input[name='to'] {
    width: 7em;
    text-transform: uppercase;
}
.send .send-msg {
    margin: 3px 0 0;
}
.look-note {
    margin-bottom: 0;
}
#board td.pic {
    padding: 1px 3px;
    line-height: 0;
}
.account form {
    display: inline;
}
.account input {
    font-family: 'Courier New', monospace;
    font-size: 15px;
}
.account #acct-name {
    text-transform: uppercase;
}
.account #acct-email {
    width: 13em;
}
.acct-coins {
    color: #a06800;
    font-weight: bold;
}
.acct-message {
    font-size: 14px;
    min-height: 0;
}
.acct-message.bad {
    color: #b00000;
}
.linkish {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
}
.small {
    font-size: 14px;
}
#board {
    border-collapse: collapse;
    background: #fff;
    min-width: 260px;
}
#board th {
    background: #ddd;
}
#board td:nth-child(1),
#board td:nth-child(3) {
    text-align: right;
}
#board tr.you td {
    font-weight: bold;
    background: #ffffcc;
}
#board td:nth-child(5) {
    text-align: center;
    padding: 1px 4px;
}
#board button {
    font-size: 13px;
    padding: 0 6px;
}
/* (the real)DAN. keep under 3 flashes/s */
#board .real-dan {
    background: linear-gradient(90deg, #e0262b, #f08c1a, #d4b000, #2a9d3a, #1f6fd1, #8a35c9) 0 0 / 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: real-dan 2.4s steps(6) infinite;
}
#board .real-dan small {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-size: 0.55em;
    line-height: 1;
    margin-right: 1px;
}
#board .real-dan .words {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
#board .real-dan .paren {
    font-size: 2em;
    line-height: 1;
    font-weight: normal;
}
@keyframes real-dan {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    #board .real-dan {
        animation: none;
    }
}
#board button.racing {
    font-weight: bold;
}
#leaderboard p {
    margin: 0.3em 0;
}

kbd {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 2px outset #ddd;
    background: #eee;
    padding: 0 4px;
}
.keys td {
    padding: 2px 8px 2px 0;
    vertical-align: top;
}
.legend {
    list-style: none;
    padding-left: 0;
}
.legend li {
    margin: 3px 0;
}
.swatch {
    display: inline-block;
    width: 34px;
    height: 10px;
    border: 1px solid #000;
    vertical-align: middle;
    margin-right: 6px;
}
.swatch.normal {
    background: #8b6a48;
}
.swatch.ice {
    background: #a8dcf5;
}
.swatch.sticky {
    background: #5aa632;
}
.swatch.crumbling {
    background: repeating-linear-gradient(110deg, #a2805b 0 9px, #6e5338 9px 11px);
}
.swatch.moving {
    background: #7d8794;
}
.swatch.seesaw {
    background:
        repeating-linear-gradient(45deg, #e8c43a 0 3px, #2a2a2a 3px 6px) left / 8px 100% no-repeat,
        repeating-linear-gradient(45deg, #e8c43a 0 3px, #2a2a2a 3px 6px) right / 8px 100% no-repeat,
        linear-gradient(180deg, #9199a1 0%, #787e85 45%, #4c5157 100%);
}

button {
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
}

#mobile-message {
    border: 2px solid #000;
    background: #fff;
    padding: 8px 14px;
    max-width: 420px;
}

#bot-runs {
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
#bot-runs th {
    background: #ddd;
}
#bot-runs td {
    text-align: right;
}

#tuning-panel fieldset {
    border: 2px groove #b9b9a0;
    margin: 8px 0;
    padding: 4px 10px 8px;
}
#tuning-panel legend {
    font-weight: bold;
}
.tuning-row {
    margin: 3px 0;
    font-size: 14px;
}
.tuning-row input[type='range'] {
    width: 140px;
    vertical-align: middle;
}
.tuning-value {
    display: inline-block;
    min-width: 52px;
    font-family: 'Courier New', monospace;
}
.tuning-value.changed {
    color: #b00000;
    font-weight: bold;
}
.tuning-preview {
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}
.tuning-preview th {
    background: #ddd;
}
.tuning-preview td,
.tuning-preview th {
    padding: 2px 6px;
    text-align: right;
}
.tuning-notice {
    color: #b00000;
    min-height: 1.2em;
}
#tuning-panel textarea {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

/* prize + last week */
.prize-box {
    border: 1px solid gray;
    padding: 8px 12px;
    margin: 0 0 10px;
}
.prize {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prize-text {
    flex: 1;
}
.crown-zoom {
    position: relative;
    display: inline-block;
    flex: none;
}
.prize-crown {
    display: block;
    image-rendering: pixelated;
    cursor: zoom-in;
    /* soft golden halo, game's halo colour */
    filter: drop-shadow(0 0 3px #ffe14a) drop-shadow(0 0 6px #ffe14a);
}
.crown-zoom.zoomed .prize-crown {
    cursor: zoom-out;
}
/* bigger copy, floats above the badge on hover or while clicked */
.prize-crown-big {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    display: none;
    image-rendering: pixelated;
    background: #f5f5dc;
    border: 1px solid gray;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
.crown-zoom:hover .prize-crown-big,
.crown-zoom.zoomed .prize-crown-big {
    display: block;
}

.replay {
    margin: 10px 0 0;
}
.replay-open {
    cursor: pointer;
}
.replay-player {
    border: 1px solid gray;
    padding: 8px;
    margin-top: 4px;
    display: inline-block;
}
.replay-title {
    margin: 0 0 6px;
}
.replay-canvas {
    width: 270px;
    height: 360px;
    display: block;
    background: #9ed3f0;
    border: 1px solid #888;
}
.replay-controls {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.replay-controls button {
    cursor: pointer;
}
.board-last {
    margin: 0 0 8px;
}
.board-last:empty {
    display: none;
}

.gold-shimmer {
    background: linear-gradient(90deg, #a88432 0%, #e6d58c 25%, #917025 50%, #e6d58c 75%, #a88432 100%);

    background-size: 200% auto;

    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% center;
  }
}

.shiny-gold-with-border {
  color: #b8860b !important;
  font-weight: bold !important;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.7);
  display: inline-block;
  animation: sine-wave 3s ease-in-out infinite;
}

@keyframes sine-wave {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}
