/* A visible, cosmetic table and ceramic palette. Geometry and sticker paint are untouched. */
body[data-table-style="classic"], [data-table-style="classic"] {
  --appearance-table:#e7d8bb;
  --appearance-grain:#9c794e12;
  --appearance-grain-light:#fffaf025;
  --appearance-group:#fffcf04d;
  --appearance-nav:#fffcf4f2;
}
body[data-table-style="forest"], [data-table-style="forest"] {
  --paper:#e0e9dc; --card:#f5f9ef; --line:#bdcdbb; --wine:#2d5145; --lime:#dbe9ad;
  --appearance-table:#c7d6bd;
  --appearance-grain:#365d3b14;
  --appearance-grain-light:#f5ffeb34;
  --appearance-group:#f5ffed55;
  --appearance-nav:#f5f9eff2;
}
body[data-table-style="berry"], [data-table-style="berry"] {
  --paper:#f0e0e7; --card:#fff5f8; --line:#d9bdca; --wine:#713049; --lime:#eed7a6;
  --appearance-table:#dfbdca;
  --appearance-grain:#7a355a12;
  --appearance-grain-light:#fff4fa30;
  --appearance-group:#fff4fa55;
  --appearance-nav:#fff5f8f2;
}
body[data-table-style] {background-color:var(--paper)}
body[data-table-style] .app {background:var(--paper)}
body[data-table-style] .bottomnav {background:var(--appearance-nav)}
body[data-table-style] .bottomnav .active {background:var(--line);color:var(--wine)}
body[data-table-style="forest"] .hero {background:#2d5145}
body[data-table-style="forest"] .hero p {color:#d2e3cd}
body[data-table-style="berry"] .hero {background:#713049}
body[data-table-style="berry"] .hero p {color:#edd1dd}
body[data-table-style="forest"] #game-screen {--paper:#e0e9dc;--card:#f5f9ef;--line:#bdcdbb;--wine:#2d5145;--lime:#dbe9ad}
body[data-table-style="berry"] #game-screen {--paper:#f0e0e7;--card:#fff5f8;--line:#d9bdca;--wine:#713049;--lime:#eed7a6}
body[data-table-style] #board {
  background-color:var(--appearance-table);
  background-image:linear-gradient(135deg,#fff8,transparent 65%),repeating-linear-gradient(92deg,transparent 0 10px,var(--appearance-grain) 11px 12px,transparent 13px 33px,var(--appearance-grain-light) 34px 35px);
  box-shadow:inset 0 1px 2px #fff9,inset 0 0 0 1px #73553617;
}
body[data-table-style] #board .triangle-group {background:var(--appearance-group)}
body[data-table-style] #board .triangle-group.answered {background:#246bc518}
body[data-cup-style] .cup-face {filter:none!important}
/* SVG paint targets deliberately exclude coffee, labels, symbols and sticker-light. */
[data-cup-style] {
  --ceramic-1:#c9c6bd;--ceramic-2:#eeece4;--ceramic-3:#fffffb;--ceramic-4:#f6f4ed;--ceramic-5:#dedbd2;--ceramic-6:#b6b2a8;--ceramic-7:#b6b2a8;
  --rim-1:#ffffff;--rim-2:#f6f4ec;--rim-3:#dad6cb;
  --foot-1:#fffef9;--foot-2:#f0ede4;--foot-3:#c6c0b3;
}
[data-cup-style="ink"] {
  --ceramic-1:#1f2d32;--ceramic-2:#394f57;--ceramic-3:#667d82;--ceramic-4:#425b63;--ceramic-5:#2a4148;--ceramic-6:#1b2d32;--ceramic-7:#17262b;
  --rim-1:#9aaead;--rim-2:#647e80;--rim-3:#344f55;
  --foot-1:#7c9394;--foot-2:#4a666d;--foot-3:#2d464c;
}
[data-cup-style="rose"] {
  --ceramic-1:#bb8990;--ceramic-2:#e7b8bd;--ceramic-3:#fff0ec;--ceramic-4:#f4ced0;--ceramic-5:#dca9b1;--ceramic-6:#b98690;--ceramic-7:#a77682;
  --rim-1:#fff5ef;--rim-2:#f3d7d6;--rim-3:#d3acb2;
  --foot-1:#fce9e6;--foot-2:#e9c2c5;--foot-3:#c79da5;
}
[data-cup-style="gold"] {
  --rim-1:#fff0af;--rim-2:#d6ab47;--rim-3:#98701e;
  --foot-1:#fff1bc;--foot-2:#e1bc63;--foot-3:#ac8130;
}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(1) {stop-color:var(--ceramic-1)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(2) {stop-color:var(--ceramic-2)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(3) {stop-color:var(--ceramic-3)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(4) {stop-color:var(--ceramic-4)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(5) {stop-color:var(--ceramic-5)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(6) {stop-color:var(--ceramic-6)}
[data-cup-style] .cup-svg linearGradient[id$="-porcelain"] stop:nth-child(7) {stop-color:var(--ceramic-7)}
[data-cup-style] .cup-svg linearGradient[id$="-rim"] stop:nth-child(1) {stop-color:var(--rim-1)}
[data-cup-style] .cup-svg linearGradient[id$="-rim"] stop:nth-child(2) {stop-color:var(--rim-2)}
[data-cup-style] .cup-svg linearGradient[id$="-rim"] stop:nth-child(3) {stop-color:var(--rim-3)}
[data-cup-style] .cup-svg linearGradient[id$="-foot"] stop:nth-child(1) {stop-color:var(--foot-1)}
[data-cup-style] .cup-svg linearGradient[id$="-foot"] stop:nth-child(2) {stop-color:var(--foot-2)}
[data-cup-style] .cup-svg linearGradient[id$="-foot"] stop:nth-child(3) {stop-color:var(--foot-3)}
/* Nothing here affects the target/selection blue or dimensions of a game cup. */
body[data-frame-style="spark"] .profile-avatar,
.appearance-avatar[data-frame-style="spark"] {outline:2px dashed #b36d4c;outline-offset:3px;box-shadow:0 0 0 6px #dcad6430}
body[data-frame-style="crown"] .profile-avatar,
.appearance-avatar[data-frame-style="crown"] {outline:2px solid #c79b36;outline-offset:3px;box-shadow:0 0 0 6px #e9c75b38}
body[data-frame-style="crown"] .profile-avatar::after,
.appearance-avatar[data-frame-style="crown"]::after {content:'♛';position:absolute;right:-6px;top:-12px;font-size:20px;color:#98701e;text-shadow:0 1px #fff}
body[data-frame-style] .profile-avatar {position:relative}
.appearance-preview,.appearance-current-scene {
  isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;min-width:0;
  background-color:var(--appearance-table,#e7d8bb);
  background-image:linear-gradient(135deg,#fff8,transparent 65%),repeating-linear-gradient(92deg,transparent 0 10px,var(--appearance-grain,#9c794e12) 11px 12px,transparent 13px 33px,var(--appearance-grain-light,#fffaf025) 34px 35px);
  box-shadow:inset 0 1px 2px #fff9,inset 0 0 0 1px #73553617;
}
.appearance-preview {height:112px;border-radius:14px;margin-bottom:12px;gap:0}
.appearance-cup {display:block;flex:0 1 110px;min-width:0;position:relative;z-index:1}
.appearance-cup .cup-svg {width:100%;height:100%;max-height:110px}
.appearance-preview-table .appearance-cup {flex-basis:58px;margin:0 -3px}
.appearance-avatar {position:relative;display:grid;place-items:center;flex-shrink:0;width:53px;height:53px;border-radius:18px;background:var(--wine,#5a242c);color:var(--lime,#d6ed90);font-size:23px;font-weight:800;z-index:2}
.appearance-avatar-small {width:32px;height:32px;font-size:14px;border-radius:12px}
.appearance-current {border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--card);margin-bottom:22px}
.appearance-current-scene {height:152px;gap:2px}
.appearance-current-scene .appearance-cup {flex-basis:110px}
.appearance-current-scene .appearance-avatar {position:absolute;top:15px;left:17px}
.appearance-scene-label {position:absolute;bottom:13px;font-size:9px;font-weight:800;letter-spacing:2px;color:#302824b3}
.appearance-current-copy {padding:17px 18px}
.appearance-current-copy strong {display:block;font-size:14px;margin-bottom:6px}
.appearance-current-copy span {display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.appearance-current-copy small {display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:9px}
.appearance-purpose {font-size:11px!important;line-height:1.45!important;margin:0 0 13px!important;color:var(--muted);min-height:47px}
.appearance-effect-preview {position:absolute;inset:0;z-index:2;pointer-events:none}
.appearance-effect-preview i {position:absolute;left:calc(10% + var(--i)*18%);top:calc(10px + var(--i)*4px);font-size:19px;font-style:normal;color:#b18425;animation:appearance-drift 2.5s ease-in-out infinite;animation-delay:calc(var(--i)*-.3s)}
.appearance-effect-preview svg {height:23px;width:18px;fill:#6e4932;transform:rotate(-25deg)}
.appearance-preview-effect .appearance-cup {transform:translateY(15px)}
@keyframes appearance-drift {50%{translate:0 9px;rotate:15deg;opacity:.65}}
@media(max-width:350px) {
  .appearance-preview {height:100px}
  .appearance-preview-table .appearance-cup {flex-basis:48px}
  .appearance-current-scene {height:138px}
  .appearance-current-copy {padding:15px}
  .appearance-purpose {min-height:62px}
}
@media(prefers-reduced-motion:reduce) {.appearance-effect-preview i{animation:none!important;translate:none;rotate:none}}
body[data-effect-style="coffee"] #celebration i {font-size:0;width:15px;height:23px;background:#6e4932;border-radius:50%;box-shadow:inset -3px -2px 0 #3e2b1e33}
body[data-effect-style="coffee"] #celebration i::after {content:'';position:absolute;left:7px;top:3px;width:2px;height:17px;background:#dab586;border-radius:50%;transform:rotate(9deg)}
