.tc-scene,.tc-podium,.tc-hand-dialog,.tc-avatar {
  --tc-paper:#f9f1db;
  --tc-cream:#fffaee;
  --tc-ink:#332719;
  --tc-muted:#655744;
  --tc-line:#cbb996;
  --tc-wine:#762c31;
  --tc-gold:#b88743;
  --tc-serif:var(--serif, Georgia, 'Times New Roman', serif);
}
.tc-scene { padding:clamp(28px,5vw,64px) 0 64px; }
.tc-page-heading,.tc-photo-page>h1 { margin-bottom:clamp(20px,3vw,34px); }
.tc-scene h1 { font:500 clamp(2.5rem,5.5vw,4.5rem)/1.02 var(--tc-serif); letter-spacing:-.035em; }
.tc-scene h2,.tc-hand-dialog h2 { margin:0; font:500 clamp(1.65rem,3.2vw,2.65rem)/1.1 var(--tc-serif); letter-spacing:-.024em; }
.tc-scene h3 { font:600 1.2rem/1.25 var(--tc-serif); }
.tc-scene h1,.tc-scene h2,.tc-scene h3,.tc-hand-dialog h2 { text-wrap:balance; }
.tc-avatar { display:inline-grid; place-items:center; position:relative; flex:0 0 auto; vertical-align:middle; isolation:isolate;
  width:var(--avatar-size,36px); height:var(--avatar-size,36px); border-radius:50%; overflow:hidden;
  color:#f8eeda; background:#724a37; font:600 calc(var(--avatar-size,36px)*.38)/1 var(--tc-serif); }
.tc-avatar>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tc-scene :focus-visible,.tc-hand-dialog :focus-visible,.tc-podium a:focus-visible { outline:3px solid #b57c31; outline-offset:4px; }
.tc-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tc-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border-radius:5px; border:1px solid #9c805d;
  color:var(--tc-ink); background:var(--tc-cream); text-align:center; font:600 1rem/1.2 var(--sans,Arial,sans-serif); text-decoration:none; }
.tc-button:hover:enabled,.tc-button[href]:hover { background:#ede1c5; }
.tc-button.tc-primary { color:#fff4e0; background:var(--tc-wine); border-color:var(--tc-wine); }
.tc-button.tc-primary:hover:enabled,.tc-button.tc-primary[href]:hover { background:#5f2127; border-color:#5f2127; }
.tc-button:disabled { opacity:.52; cursor:not-allowed; }
.tc-inline-link { padding:2px; background:transparent; border:0; color:inherit; text-decoration:underline; text-underline-offset:3px; font-weight:650; }
.tc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.tc-error { margin:0 0 16px; padding:12px 15px; color:#681724; background:#ffeadf; border-left:3px solid #a33e3d; border-radius:2px; }
.tc-error[hidden] { display:none; }
.tc-loading { min-height:7rem; display:grid; align-content:center; }
.tc-registration { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(235px,.8fr); background:var(--tc-paper); border:1px solid var(--tc-line);
  border-radius:10px; color:var(--tc-ink); overflow:hidden; }
.tc-entry { padding:clamp(22px,4vw,46px); }
.tc-registration .tc-date,.tc-section-heading p,.tc-celebration header p { margin-top:6px; font-variant-numeric:tabular-nums; }
.tc-registration .tc-date,.tc-rule,.tc-photo-controls .tc-note { color:var(--tc-muted); }
.tc-countdown { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin:clamp(22px,3vw,35px) 0 14px; }
.tc-countdown>span { color:var(--tc-muted); }
.tc-countdown>time { color:var(--tc-wine); font:600 clamp(2.4rem,5vw,4.1rem)/1 var(--tc-serif); font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.tc-entry-count { margin:0 0 5px; }
.tc-entry-count strong { font-variant-numeric:tabular-nums; }
.tc-entry progress { display:block; width:min(100%,400px); height:6px; border:0; border-radius:8px; overflow:hidden; background:#dbceb2; color:var(--tc-wine); accent-color:var(--tc-wine); }
.tc-entry progress::-webkit-progress-bar { background:#dbceb2; border-radius:8px; }
.tc-entry progress::-webkit-progress-value { background:var(--tc-wine); border-radius:8px; transition:width .4s ease-out; }
.tc-entry progress::-moz-progress-bar { background:var(--tc-wine); border-radius:8px; }
.tc-rule,.tc-rollover,.tc-joined { margin:13px 0 0; max-width:45ch; }
.tc-rollover { color:#744424; font-weight:600; }
.tc-joined { display:flex; align-items:center; gap:7px; color:#385338; font-weight:600; }
.tc-entry .tc-actions,.tc-celebration .tc-actions { margin-top:22px; }
.tc-entrants { margin-top:20px; }
.tc-entrants summary { cursor:pointer; color:var(--tc-wine); font-weight:600; }
.tc-entrants ul { display:flex; flex-wrap:wrap; gap:10px 20px; margin:12px 0 0; padding:0; list-style:none; }
.tc-entrants a { display:flex; align-items:center; gap:7px; overflow-wrap:anywhere; }
.tc-entrants a:hover,.tc-slot:hover .tc-player-name { text-decoration:underline; text-underline-offset:3px; }
.tc-purse { padding:clamp(22px,3.4vw,40px); color:#fff1d5; background:#58282a; align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
.tc-purse-top { display:flex; align-items:center; gap:10px; }
.tc-purse-top svg { color:#e4c482; }
.tc-purse-top h3 { font-size:clamp(1.4rem,2.2vw,1.9rem); }
.tc-prizes { margin:18px 0; }
.tc-prizes>div { display:flex; align-items:baseline; justify-content:space-between; border-bottom:1px solid #865951; padding:7px 0; gap:12px; }
.tc-prizes dt { color:#f0d9b9; }
.tc-prizes dd { margin:0; font-weight:650; white-space:nowrap; }
.tc-purse p { color:#f1dac0; font-size:.96rem; line-height:1.5; max-width:37ch; }
.tc-previous,.tc-bracket-area,.tc-celebration,.tc-reward-call { margin:clamp(26px,4vw,48px) 0; }
.tc-registration:first-child,.tc-celebration:first-child,.tc-bracket-area:first-child { margin-top:0; }
.tc-section-heading,.tc-reward-call { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
.tc-section-heading { margin-bottom:16px; }
.tc-bracket-scroll { border-radius:8px; overflow:auto; border:1px solid var(--tc-line); background:#e8d9ba; color:var(--tc-ink); scrollbar-color:#8f7050 #e4d3ad; scrollbar-width:thin; }
.tc-bracket { display:flex; position:relative; isolation:isolate; gap:clamp(30px,3.5vw,55px); padding:clamp(14px,2.6vw,30px);
  width:max-content; min-width:100%; align-items:stretch; justify-content:space-evenly; }
.tc-connections { position:absolute; z-index:-1; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.tc-connections path { fill:none; stroke:#947c58; stroke-width:1.4; }
.tc-connections .tc-bronze-wire { stroke:#a27965; stroke-dasharray:3 4; }
.tc-round { display:flex; flex-direction:column; min-width:178px; width:clamp(178px,18vw,235px); }
.tc-round>h3 { padding-bottom:14px; color:#594123; }
.tc-pairs { flex:1; display:flex; flex-direction:column; justify-content:space-around; gap:13px; }
.tc-pair { position:relative; border:1px solid #b7a381; border-radius:6px; background:var(--tc-cream); overflow:visible; }
.tc-match-meta { display:flex; align-items:baseline; justify-content:space-between; padding:8px 10px 6px; gap:6px; font-size:.82rem; color:#6a5741; }
.tc-match-meta strong { font-weight:650; }
.tc-active .tc-match-meta span { color:#873631; font-weight:650; }
.tc-slot { display:flex; gap:7px; min-height:43px; align-items:center; padding:5px 9px; text-decoration:none; min-width:0; }
.tc-slot+.tc-slot { border-top:1px solid #dfd2b6; }
.tc-slot:last-child { border-radius:0 0 5px 5px; }
.tc-player-name { flex:1; min-width:0; overflow-wrap:anywhere; line-height:1.16; font-weight:550; }
.tc-won { background:#f1e7c5; color:#48351b; }
.tc-won svg { color:#496349; }
.tc-lost { color:#776c5b; }
.tc-lost .tc-avatar { filter:saturate(.45); }
.tc-vacant { color:#776854; font-style:normal; }
.tc-blank-avatar { display:block; width:30px; height:30px; flex:0 0 auto; border-radius:50%; border:1px dashed #ae9c7a; }
.tc-match-open { display:block; background:var(--tc-wine); color:#fff3de; text-align:center; padding:9px 5px; border-radius:0 0 5px 5px; font-weight:600; }
.tc-bracket-note { margin:9px 0 0; font-size:.94rem; }
.tc-previous h2 { margin-bottom:18px; }
.tc-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; margin:0; padding:0; list-style:none; gap:12px; }
.tc-podium .tc-place { --tc-metal:#bc8f4c; min-width:0; }
.tc-podium .tc-place-2 { --tc-metal:#9b9d98; }
.tc-podium .tc-place-3 { --tc-metal:#ad7051; }
.tc-place>a { height:100%; display:flex; align-items:center; gap:12px; padding:clamp(12px,1.8vw,22px); text-align:left; text-decoration:none;
  border:1px solid var(--tc-line); border-top:3px solid var(--tc-metal); border-radius:6px; background:var(--tc-cream); color:var(--tc-ink); }
.tc-place>a:hover { background:#f3e5c5; }
.tc-medalist { position:relative; display:inline-flex; flex:0 0 auto; }
.tc-medal { position:absolute; right:-2px; bottom:-2px; border-radius:50%; display:grid; place-items:center; width:20px; height:20px;
  color:#332016; background:var(--tc-metal); outline:2px solid var(--tc-cream); font:700 .77rem/1 var(--sans,Arial,sans-serif); }
.tc-podium-label { display:grid; align-content:center; min-width:0; gap:2px; }
.tc-podium-label>span,.tc-podium-label small { color:#6b5843; font-size:.87rem; }
.tc-podium-label strong { overflow-wrap:anywhere; font:600 clamp(1.1rem,2vw,1.55rem)/1.12 var(--tc-serif); }
.tc-open-podium { margin:0; padding:18px 0; border-top:1px solid currentColor; opacity:.85; }
.tc-celebration { position:relative; overflow:hidden; padding:clamp(23px,4vw,42px); text-align:center; background:#eee1bd; border:1px solid #b9985e; border-radius:9px; color:#3f2f1c; }
.tc-celebration>header { margin-bottom:24px; }
.tc-celebration>header>.ico { margin:0 auto 8px; color:#91652b; transform-origin:center bottom; animation:tc-podium-crown .85s cubic-bezier(.16,1,.3,1) both; }
.tc-celebration .tc-podium,.tc-celebration .tc-actions { justify-content:center; }
.tc-celebration .tc-place { animation:tc-medal-arrives .6s cubic-bezier(.16,1,.3,1) backwards; }
.tc-celebration .tc-place-2 { animation-delay:.1s; }
.tc-celebration .tc-place-1 { animation-delay:.22s; }
.tc-earned { font-size:1.15rem; font-weight:650; margin-top:18px; }
.tc-reward-call { padding:16px 20px; border:1px solid var(--tc-line); background:var(--tc-paper); color:var(--tc-ink); border-radius:6px; }
@keyframes tc-podium-crown { from{transform:translateY(-11px) rotate(-8deg);opacity:.45} to{transform:none;opacity:1} }
@keyframes tc-medal-arrives { from{transform:translateY(13px);opacity:.45} to{transform:none;opacity:1} }
.tc-photo-card { margin-top:24px; max-width:880px; border:1px solid var(--tc-line); border-radius:10px; display:grid;
  grid-template-columns:minmax(200px,.7fr) minmax(0,1.4fr); background:var(--tc-cream); overflow:hidden; color:var(--tc-ink); }
.tc-photo-preview { padding:clamp(22px,3.6vw,38px); background:#e7d8b5; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:12px; }
.tc-photo-preview strong { font:600 1.45rem/1.1 var(--tc-serif); overflow-wrap:anywhere; }
.tc-photo-preview p { font-size:.96rem; color:var(--tc-muted); max-width:30ch; }
.tc-photo-controls { padding:clamp(20px,3.5vw,38px); }
.tc-photo-controls fieldset { border:0; padding:0; margin:0; }
.tc-photo-controls legend,.tc-upload { font-weight:650; }
.tc-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 24px; }
.tc-preset { position:relative; display:grid; justify-items:center; align-content:center; gap:6px; min-height:88px; border-radius:6px; border:1px solid var(--tc-line);
  background:transparent; color:var(--tc-ink); font-size:.88rem; padding:7px 3px; }
.tc-preset[aria-pressed="true"] { outline:2px solid var(--tc-wine); outline-offset:-2px; background:#f0e2c2; }
.tc-upload { display:block; }
.tc-upload input { display:block; margin-top:7px; max-width:100%; font-size:.9rem; color:var(--tc-ink); }
.tc-upload input::file-selector-button { min-height:39px; padding:7px 13px; border:1px solid #967b57; border-radius:4px; color:var(--tc-ink); background:#f7ecd0; cursor:pointer; }
.tc-photo-controls .tc-note { margin:7px 0 20px; font-size:.9rem; }
.tc-photo-page [hidden] {display:none!important}
.tc-photo-controls .tc-actions {margin-top:22px}
.tc-photo-editing .tc-photo-preview {display:flex;flex-direction:column;align-items:center;text-align:center}
.tc-photo-preview canvas {display:block;width:min(100%,216px);height:auto;aspect-ratio:1;border-radius:50%;outline:1px solid #a68a64;cursor:grab;touch-action:none;user-select:none}
.tc-photo-preview canvas:active {cursor:grabbing}
.tc-photo-preview canvas:focus-visible {outline:3px solid var(--tc-wine);outline-offset:3px}
.tc-crop-controls legend {margin-bottom:18px}
.tc-crop-controls label {display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:600}
.tc-crop-controls output {font-weight:400;font-variant-numeric:tabular-nums;color:var(--tc-muted)}
.tc-crop-controls input[type=range] {display:block;width:100%;min-height:38px;margin:1px 0 11px;accent-color:var(--tc-wine);cursor:pointer}
.tc-crop-links {display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 17px}
.tc-crop-links button,.tc-current-photo {min-height:36px;padding:3px 0;background:transparent;border:0;color:var(--tc-wine);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tc-current-photo {margin-top:5px}
@media (max-width:540px) {
  .tc-photo-editing .tc-photo-preview {gap:7px}
  .tc-photo-editing .tc-photo-preview canvas {width:min(100%,180px);margin-bottom:4px}
  .tc-photo-editing .tc-photo-preview p {max-width:32ch}
}
.tc-hand-dialog { background:var(--tc-paper); color:var(--tc-ink); border:1px solid var(--tc-line); width:min(790px,calc(100vw - 22px)); max-height:88vh;
  max-height:88dvh; padding:0; border-radius:10px; overflow:auto; color-scheme:light; }
.tc-hand-dialog::backdrop { background:#251c16b8; }
.tc-hand-dialog[open] { display:flex; flex-direction:column; }
.tc-hand-dialog>header,.tc-hand-tools,.tc-hand-dialog>footer { padding:16px clamp(14px,3vw,26px); display:flex; align-items:center; justify-content:space-between; gap:14px; }
.tc-hand-dialog>header { border-bottom:1px solid var(--tc-line); }
.tc-hand-dialog>header p { margin:7px 0 0; color:var(--tc-muted); }
.tc-hand-dialog .tc-hand-tools { align-items:flex-end; }
.tc-hand-tools label { display:grid; gap:4px; min-width:0; font-size:.9rem; color:var(--tc-muted); }
.tc-hand-tools input { min-width:0; width:min(100%,320px); background:var(--tc-cream); border:1px solid #ab946d; color:var(--tc-ink); border-radius:4px; padding:7px 11px; font-size:1rem; }
.tc-hand-tools>span { flex:0 0 auto; font-variant-numeric:tabular-nums; font-weight:650; }
.tc-hand-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); overflow:auto; min-height:0; gap:9px; padding:4px clamp(14px,3vw,26px) 16px; }
.tc-hand-card { min-width:0; display:grid; gap:5px; align-content:start; background:transparent; border:2px solid transparent;
  padding:4px; color:var(--tc-ink); border-radius:6px; text-align:left; }
.tc-hand-card .triad-card { width:100%; }
.tc-hand-card small { font-size:.8rem; line-height:1.2; }
.tc-hand-card[aria-pressed="true"] { background:#eddbaf; border-color:var(--tc-wine); }
.tc-hand-card:disabled:not([aria-pressed="true"]) { opacity:.47; }
.tc-no-cards { margin:5px 26px 15px; }
.tc-hand-dialog>footer { justify-content:flex-end; border-top:1px solid var(--tc-line); }
.tc-hand-dialog>footer .tc-error { flex:1; margin:0; }
@media(max-width:720px) {
  .tc-registration { grid-template-columns:1.45fr 1fr; }
  .tc-place>a { align-items:center; flex-direction:column; text-align:center; gap:9px; padding:12px 7px; }
  .tc-photo-card { grid-template-columns:minmax(160px,.75fr) minmax(0,1.45fr); }
}
@media(max-width:540px) {
  .tc-registration,.tc-photo-card { grid-template-columns:minmax(0,1fr); }
  .tc-entry,.tc-purse,.tc-photo-preview,.tc-photo-controls { padding:20px; }
  .tc-purse .tc-prizes { display:flex; flex-wrap:wrap; gap:10px 18px; margin:12px 0; }
  .tc-prizes>div { display:block; border:0; padding:0; }
  .tc-prizes dt { font-size:.86rem; }
  .tc-podium { gap:6px; }
  .tc-celebration { padding:22px 10px; }
  .tc-podium-label strong { font-size:1.03rem; }
  .tc-round { width:190px; min-width:190px; }
  .tc-bracket { justify-content:flex-start; }
  .tc-photo-preview { display:grid; grid-template-columns:auto 1fr; justify-items:start; text-align:left; column-gap:18px; }
  .tc-photo-preview [data-photo-preview] { grid-row:span 2; }
  .tc-photo-preview .tc-avatar { width:76px; height:76px; }
  .tc-hand-dialog>header { align-items:flex-start; }
  .tc-hand-dialog>header .tc-button { min-height:36px; padding:7px 10px; }
  .tc-hand-grid { grid-template-columns:repeat(auto-fill,minmax(78px,1fr)); gap:5px; }
}
@media(prefers-reduced-motion:reduce) {
  .tc-celebration .tc-place,.tc-celebration>header>.ico { animation:none; }
  .tc-entry progress::-webkit-progress-value { transition:none; }
}

