#board {
    z-index: 100;
}
#board img.yucataBoardSize {
    width: 100%;
    height: auto;
    visibility: hidden;
}

#board .yucataLogo { left: 36.6%; top: 17%; width: 31%; }
#board .maya { left: 29.4%; top: 18.1%; width: 10%; }
#board .HiG { left: 79.4%; top: 19%; width: 7%; }

#board .tread { width: 10.5%; margin-left: -2%; margin-top: -.8%; }
#board .tread.pos0, #board .tread.pos39 { width: 13.5%; margin-left: -3%; margin-top: -2.8%; }

#board .amulet { width: 4%; margin-top: .5%; }
#board .amulet.cnt0 { margin-left: 1%; z-index: 10; }
#board .amulet.cnt1 { margin-left: 3%; z-index: 30; }
#board .amulet.cnt2 {  }
#board .amulet.cnt3 { margin-left: 2%;  z-index: 20;}
#board .stone { position: absolute; width: 7%; }
#board .pos0 { left: 5.3%; top: 6%; }
#board .pos1 { left: 5.2%; top: 20%; }
#board .pos2 { left: 5.2%; top: 33%; }
#board .pos3 { left: 5.2%; top: 46%; }
#board .pos4 { left: 5.2%; top: 59%; }
#board .pos5 { left: 5.2%; top: 72%; }
#board .pos6 { left: 5.2%; top: 85%; }
#board .pos7 { left: 14%; top: 84.5%; }
#board .pos8 { left: 23.5%; top: 84.5%; }
#board .pos9 { left: 32.5%; top: 84.5%; }
#board .pos10 { left: 42%; top: 84.5%; }
#board .pos11 { left: 50.5%; top: 84.5%; }
#board .pos12 { left: 59.8%; top: 84.5%; }
#board .pos13 { left: 69.5%; top: 84.5%; }
#board .pos14 { left: 78.8%; top: 84.5%; }
#board .pos15 { left: 88%; top: 84.5%; }
#board .pos16 { left: 87.5%; top: 71%; }
#board .pos17 { left: 87.5%; top: 58.5%; }
#board .pos18 { left: 88%; top: 46%; }
#board .pos19 { left: 87.7%; top: 33%; }
#board .pos20 { left: 87.5%; top: 20%; }
#board .pos21 { left: 87.5%; top: 6.4%; }
#board .pos22 { left: 78.2%; top: 6.2%; }
#board .pos23 { left: 68.5%; top: 6.2%; }
#board .pos24 { left: 59%; top: 6.2%; }
#board .pos25 { left: 49.5%; top: 6.2%; }
#board .pos26 { left: 40.5%; top: 6.6%; }
#board .pos27 { left: 31.2%; top: 6.8%; }
#board .pos28 { left: 22%; top: 7.5%; }
#board .pos29 { left: 22%; top: 20.5%; }
#board .pos30 { left: 21.5%; top: 33%; }
#board .pos31 { left: 22%; top: 46.5%; }
#board .pos32 { left: 22.2%; top: 59.5%; }
#board .pos33 { left: 31.5%; top: 60%; }
#board .pos34 { left: 41%; top: 59%; }
#board .pos35 { left: 51%; top: 59%; }
#board .pos36 { left: 60.4%; top: 59.5%; }
#board .pos37 { left: 69.6%; top: 59.5%; }
#board .pos38 { left: 70%; top: 46.4%; }
#board .pos39 { left: 69.5%; top: 32%; }

#lastCard .yucataCard { width: 9%; top: 30%; }
#lastCard .cnt0 { left: 32%; }
#lastCard .cnt1 { left: 38%; }
#lastCard .cnt2 { left: 44%; }
#lastCard .cnt3 { left: 50%; }
#lastCard .cnt4 { left: 56%; }


.yucataBoard { position: relative; background: url('../images/background.gif') repeat; width: 100%; max-width: var(--yucata-board-max, 1000px); flex: 0 0 100%; }
.yucataBoard .absolute { position: absolute; }
#game .yucataBoardSize { display: block; width: 100%; height: auto; visibility: hidden; }
#playerData .amulet { width: 1.2em; }
#playerData .yucataPoints, #playerData .yucataPrevious { margin-left: .5em; }
.yucataCards { display: flex; gap: .25rem; margin: .4rem 0; }
.yucataCardChoice { padding: 0; border: 2px solid transparent; border-radius: .25rem; background: transparent; width: 13%; max-width: 65px; }
.yucataCardChoice img { display: block; width: 100%; }
.yucataCardChoice:disabled { opacity: 1; }
.yucataCardChoice.yucataUsed {
    border: 2px dashed #a58d6b88;
    background: linear-gradient(135deg, #8d735b14, #8d735b08);
    box-shadow: inset 0 1px 5px #503b2512;
}
.yucataCardChoice.yucataUsed img { visibility: hidden; }
.yucataCardChoice.active:hover, .yucataCardChoice.active:focus-visible { border-color: #d00; }
#playerData .stones, #playerData .crossedout { line-height: 1; min-height: 1.2rem; }
#playerData .crossedout { height: 0; min-height: 0; position: relative; top: 0; z-index: 1; }
#playerData .stone { width: 3%; min-width: 10px; max-width: 20px; }
#playerData .stoneGap { display: inline-block; width: .5em; }
.yucataLog .yucataCard { display: inline-block; height: 4em; width: auto; vertical-align: middle; }
.yucataLog .stone { height: 1em; width: auto; }
#game { display: flex; flex-wrap: wrap; align-items: flex-start; }
#game #playerData { width: 100%; flex: 0 0 100%; }
/* Game-area styling only: framework header, footer and silver information bar stay untouched. */
body.yucataTheme {
    --yucata-player: #8b7960;
    --yucata-player-ink: #fff;
}
body.yucataTheme #content {
    background: radial-gradient(ellipse at 15% 0%, #685044 0%, transparent 60%),
        repeating-linear-gradient(115deg, #ffffff03 0 1px, transparent 1px 6px), #30221e !important;
}
body.yucataTheme #game { background: transparent !important; }
body.yucataTheme #game { container: yucataLayout / inline-size; flex: 1 0 auto; min-height: 0; overflow: visible; padding: 6px; gap: 8px; box-sizing: border-box; }
body.yucataTheme #board { margin-inline: auto; border-radius: 10px; box-shadow: 0 12px 28px #0006, 0 0 0 1px #c3a66b66; overflow: hidden; }
body.yucataTheme #playerData .symbol { display: none !important; }
body.yucataTheme .color0 { --yucata-player: #a33d50; --yucata-player-ink: #fff; }
body.yucataTheme .color1 { --yucata-player: #e0dfcc; --yucata-player-ink: #352c27; }
body.yucataTheme .color2 { --yucata-player: #292d28; --yucata-player-ink: #fff; }
body.yucataTheme .color3 { --yucata-player: #b3a071; --yucata-player-ink: #252a21; }
body.yucataTheme #log .move {
    background-color: var(--yucata-player) !important;
    color: var(--yucata-player-ink) !important;
}
body.yucataTheme #playerData { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; min-width: 0; }
body.yucataTheme #game .playerData {
    background: linear-gradient(120deg, #fffdf5, #e9e6d9) !important;
    color: #352c27; border: 1px solid #c5b998; border-left: 5px solid var(--yucata-player);
    border-radius: 9px; overflow: hidden; box-shadow: 0 5px 14px #0004;
}
body.yucataTheme #game .playerData.isOnTurn { box-shadow: 0 0 0 2px #bda16e, 0 6px 18px #0005; }
body.yucataTheme #game .playerDataBasic {
    align-items: center; flex-wrap: wrap; gap: 4px; padding: 3px 6px;
    background: linear-gradient(90deg, #6d4b350c, transparent); border-bottom: 1px solid #b7a78055;
}
body.yucataTheme #playerData .playerInfoLogin { font-weight: 600; font-size: .85em; }
body.yucataTheme #playerData .amulet { width: 12px; height: 20px; object-fit: contain; padding: 0; filter: drop-shadow(0 2px 2px #0004); }
body.yucataTheme #playerData .yucataPoints {
    margin-left: auto; padding: 1px 5px; border-radius: 4px; background: #5a4033; color: #fffdf4;
    font-size: .75em; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
body.yucataTheme #playerData .yucataPrevious { margin: 0; color: #695f4e; font-size: .7em; }
body.yucataTheme #game .playerDataDetail { padding: 4px 6px 5px; }
body.yucataTheme .yucataCards {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px; margin: 0 0 4px; max-width: 560px;
}
body.yucataTheme .yucataCardChoice { width: 100%; max-width: none; min-width: 0; border-radius: 5px; transition: border-color .15s, box-shadow .15s; }
body.yucataTheme .yucataCardChoice img { border-radius: 3px; }
body.yucataTheme .yucataCardChoice.active { cursor: pointer; border-color: #a99173; }
body.yucataTheme .yucataCardChoice.active:hover, body.yucataTheme .yucataCardChoice.active:focus-visible {
    border-color: #846530; box-shadow: 0 0 0 2px #84653066; outline: none;
}
body.yucataTheme #game #board, body.yucataTheme #game #playerData { flex-basis: 100%; }
@container yucataLayout (min-width: 1120px) {
    body.yucataTheme #game #board { flex: 0 1 calc(66% - 4px); }
    body.yucataTheme #game #playerData { flex: 1 1 calc(34% - 4px); display: flex; flex-direction: column; }
}
@supports not (container-type: inline-size) {
    body.yucataTheme #game #board:where([data-gcf-yucata2-q0]) { flex: 0 1 calc(66% - 4px); }
    body.yucataTheme #game #playerData:where([data-gcf-yucata2-q1]) { flex: 1 1 calc(34% - 4px); display: flex; flex-direction: column; }
}
body.yucataTheme #playerData .stones { min-height: 12px; }
body.yucataTheme #playerData .stone { width: 12px; min-width: 12px; max-width: 12px; }
body.yucataTheme #playerData .stoneGap { width: .25em; }

.yucataPlayedSymbol { display: inline-flex; align-items: center; gap: .06em; vertical-align: middle; margin-right: .4em; }
.yucataPlayedSymbol img { display: block; height: 1.35em; width: auto; max-width: none; }

.yucataTutorialLink { position: absolute; right: 6px; top: 4px; z-index: 2; background: #fff8e3; }
