/* Étrennes de Prontera, habillage du thème principal Noël à Midgard. */
body[data-theme="classic"], [data-theme-choice="classic"] {
  --pr-galon: url("galon.svg");
  --pr-houx: url("houx.svg");
  --pr-noeud: url("noeud.svg");
  --skin-hud: linear-gradient(105deg,#123c31,#215643 40%,#164736 68%,#102f27);
  --skin-header: linear-gradient(105deg,#722637,#973a49 65%,#772838);
  --skin-workshops: repeating-linear-gradient(45deg,#4f2e26 0 2px,#5a332c 2px 4px);
  --skin-row: linear-gradient(90deg,#8d3341 0 3px,#d6b06b 3px 5px,transparent 5px),
    linear-gradient(105deg,#e4cc97,#f9edcf 21%,#fff7e0 58%,#f2dfb6);
  --skin-row-shadow: inset 0 1px #fff9e8, inset 0 -1px #ae8650;
  --skin-button: linear-gradient(#ab424d 0%,#963141 45%,#7a2233 90%);
  --skin-dock: linear-gradient(#284c3c,#123328);
  --skin-dock-button: linear-gradient(160deg,#255540,#173d30);
  --skin-panel: linear-gradient(130deg,#f3dfb8,#fff5de 45%,#e7cfa1);
  --skin-card: linear-gradient(145deg,#fff7e2,#efddb5);
  --skin-strip: repeating-linear-gradient(120deg,#a23746 0 8px,#efc780 8px 10px,#1d5642 10px 18px,#fcdf9c 18px 20px);
  --skin-edge: #b28d52;
  --skin-ink: #2c3f30;
  --skin-gold: #853142;
  --skin-caption: #f4e4c1;
  --skin-radius: 5px;
  --mid-muted: #5f5c43;
  --mid-active: #eee0af;
  --mid-button-ink: #fff4d9;
  --mid-surface: #f1e1bb;
  --mid-metal: #ae864c;
  --mid-ornament: url("enluminures.webp");
}

/* Brocart du bandeau et cartouches émaillés de la navigation. */
body[data-theme][data-theme="classic"] :is(.hud,.panel-header),
[data-theme-choice="classic"] .preview-hud {
  background: var(--pr-galon) left bottom / 72px 15px repeat-x, var(--skin-hud);
  box-shadow: inset 0 1px #c3a36c, inset 0 -1px #8c693d;
}
@media (min-width: 761px) {
  body[data-theme][data-theme="classic"] .hud,
  [data-theme-choice="classic"] .preview-hud {
    background: var(--mid-ornament) center / auto 90% no-repeat,
      url("cartouche.svg") center / auto 100% no-repeat,
      var(--pr-galon) left bottom / 72px 15px repeat-x, var(--skin-hud);
  }
}
[data-theme-choice="classic"] .preview-hud i { background: #ffe2a4; }
body[data-theme="classic"] :is(.rates b,.rates .icon,.hud-tools .icon,.panel-header h2,.panel-header #panel-extra) {
  color: #ffe2a4;
}
body[data-theme="classic"] :is(.rates small,.panel-header .icon-button) { color: #fff1d6; }
body[data-theme="classic"] .icon-button:focus-visible,
body[data-theme="classic"] .dock button:focus-visible { outline-color: #ffe5aa; }

body[data-theme="classic"] .workshop-header {
  --skin-gold: #fff2cd;
  --skin-ink: #fff2da;
  --skin-button: linear-gradient(#ffedbf,#ddbd79);
  --mid-button-ink: #4d2b2c;
  box-shadow: inset 0 1px #e1c48e, inset 0 -2px #d7b97e;
}
@media (min-width: 761px) {
  body[data-theme][data-theme="classic"] .workshop-header:not(:has(.auto-toggle:not([hidden]))) {
    background: var(--pr-houx) right 14px top 1px / 57px auto no-repeat, var(--skin-header);
  }
}
body[data-theme="classic"] .workshop-title h1 { color: #fff2cd; }
body[data-theme="classic"] .workshop-header .quantities button:not(.active) {
  background: radial-gradient(circle at 4px 4px,#ecc787 0 1px,transparent 1.5px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px),#c6a16e 0 1px,transparent 1.5px),
    linear-gradient(#833749,#652637);
  color: #fff2dc;
  border-color: #ca9d71;
  box-shadow: inset 0 0 0 2px #773040, inset 0 0 0 3px #b883633d;
}
body[data-theme="classic"] .workshop-header .quantities button.active {
  background: linear-gradient(#ffedbf,#ddbd79);
  color: #4d2b2c;
  box-shadow: inset 0 0 0 1px #f9e6bd;
}

/* Papier plié et filet doré des étiquettes d’atelier. */
body[data-theme="classic"] .machine-row {
  --skin-row: linear-gradient(225deg,#78592f 0 1px,#ead298 1px 8px,#c49e5a 8px 9px,transparent 9px) right top / 13px 13px no-repeat,
    linear-gradient(90deg,#923746 0 3px,#dfba73 3px 5px,transparent 5px),
    linear-gradient(108deg,#e8d1a3,#fcf2d6 27%,#fff7e0 58%,#f1ddb2);
  --skin-row-shadow: inset 0 0 0 2px #f9edcc, inset 0 0 0 3px #cdb78a, inset 5px 0 #98505a;
}
body[data-theme="classic"] .machine-row.best-choice {
  background: linear-gradient(90deg,#295e45 0 4px,#d4ae67 4px 6px,transparent 6px),
    linear-gradient(108deg,#f6e2ae,#fff3cc 65%,#ead2a0);
  box-shadow: inset 0 1px #d4b772, inset 0 -1px #b28d52;
}
body[data-theme="classic"] .machine-row.locked {
  background: repeating-linear-gradient(135deg,#dbcba8 0 1px,#e5d7b7 1px 6px);
}
body[data-theme="classic"] .machine-row.locked .machine-name { color: #5b5643; }

/* Galon de satin et nœud sur la tranche du bouton, à distance du prix. */
body[data-theme="classic"] :is(.machine-buy,.shop-card .primary-button):not(:disabled) {
  background: var(--pr-noeud) right 6% center / 24px auto no-repeat,
    url("ruban.svg") center / 100% 100% no-repeat;
  color: var(--mid-button-ink);
  border-color: transparent;
  box-shadow: none;
}
body[data-theme="classic"] :is(.machine-buy,.shop-card .primary-button):not(:disabled):hover {
  filter: brightness(1.09);
  color: #fff9e8;
}
body[data-theme="classic"] :is(.machine-buy,.shop-card .primary-button):disabled {
  background: linear-gradient(#f0e4c8,#e4d6b5);
  color: #605741;
  border-color: #b29e78;
  box-shadow: inset 0 1px #fff5dd;
  opacity: 1;
}
body[data-theme="classic"] .shop-card.owned .primary-button {
  background: #d6e1c8;
  color: #284d37;
  border-color: #839779;
}
body[data-theme][data-theme="classic"] .dock > button:not(.claimable):not(.active):not(.ready) {
  background: var(--skin-dock-button);
  box-shadow: inset 0 0 0 2px #204936, inset 0 0 0 3px #bc9a626e, inset 0 -4px #15382d;
}
body[data-theme="classic"] .dock {
  --skin-ink: #fff3d5;
  --skin-gold: #f5d79b;
  --mid-muted: #e0d4b6;
  --mid-active: #315d47;
}
body[data-theme="classic"] .dock > button { color: #fff3d5; }
body[data-theme="classic"] .dock > button > .icon,
body[data-theme="classic"] .dock :is(small,.shop-balance,#booster-generations) { color: #f5d79b; }
body[data-theme="classic"] .dock > button:is(:hover,.active) { color: #fff8e9; }

/* La boutique ouverte est un coffret en sapin avec des cartes crème. */
body[data-theme="classic"] .panel:has(.shop-card) {
  background: var(--pr-houx) right 16px bottom 12px / 98px auto no-repeat,
    var(--pr-galon) left bottom / 90px 18px repeat-x,
    radial-gradient(ellipse at 50% 0,#32664c,#163e30 75%);
  box-shadow: 0 15px 60px #07181299, inset 0 0 0 3px #153e2c, inset 0 0 0 4px #c5a267;
}
body[data-theme="classic"] .panel:has(.shop-card) .panel-note { color: #f1dfba; }
body[data-theme="classic"] .shop-card:not(.owned),
body[data-theme="classic"] .shop-card.owned {
  background: var(--skin-card);
  box-shadow: inset 0 0 0 3px #fff4d7, inset 0 0 0 4px #c2a167;
}
body[data-theme="classic"] .shop-card.owned {
  box-shadow: inset 0 0 0 3px #d5e0c5, inset 0 0 0 4px #859a76;
}
body[data-theme="classic"] .shop-card .item-art {
  box-shadow: 0 0 0 1px #b28b4b, 0 0 0 3px #f4e4c0, 0 0 0 4px #d6b978;
}

/* Encres des panneaux sur le papier ivoire. */
body[data-theme="classic"] :is(.help-list,.help-footer,.stat > span,.stats-history,.stats-history small,
  .rebirth-copy,.rebirth-perks,.rebirth-perks > span,.rebirth-next-target,.rebirth-reward,.requirement-label,
  .reward-card p,.reward-card > small,.reward-available small,.collection-card small,.collection-summary span,
  .nickname-form label,.ranking-pages,.mvp-reward-history,.ranking-table-all td small,.ranking-table-all .ranking-loading) {
  color: var(--mid-muted);
}
body[data-theme="classic"] :is(.help-list b,.stat strong,.rebirth-content > h3,.rebirth-perks b,
  .rebirth-next-target b,.requirement-label strong,.reward-card h3,.reward-available,.confirm h2,
  .collection-card.caught small,.collection-card.won small,.ranking-table-all .ranking-gifts) {
  color: var(--skin-gold);
}
body[data-theme="classic"] :is(.rebirth-sigil,.collection-card.unknown,.nickname-form input,
  .ranking-table-all th,.ranking-table-all tr:nth-child(even)) {
  background: var(--mid-surface);
  color: var(--skin-ink);
  border-color: var(--mid-metal);
}
body[data-theme="classic"] :is(.collection-card.unknown b,.ranking-sort,.ranking-sort > span,
  .ranking-table-all td) { color: var(--skin-ink); }
body[data-theme="classic"] .nickname-form input::placeholder { color: var(--mid-muted); }
body[data-theme="classic"] .ranking-table-all th:has(.ranking-sort.active),
body[data-theme="classic"] .ranking-table-all tr.self { background: var(--mid-active); }
body[data-theme="classic"] :is(.ranking-sort.active,.ranking-sort.active > span) { color: var(--skin-gold); }
body[data-theme="classic"] :is(.rebirth-content,.reward-card) .primary-button:disabled {
  background: var(--mid-surface);
  color: var(--mid-muted);
  border-color: var(--mid-metal);
}

/* Keep the numeral unobstructed on the narrow two-column mobile list. */
@media (max-width: 540px) {
  body[data-theme="classic"] .machine-buy:not(:disabled) {
    background-size: 15px auto, 100% 100%;
  }
}
