/* Casino: playing cards, vermilion chips, warm paper and ink. */
:root {
  color-scheme: light;
  --bg: #f2f0e9; --card: #fcfbf6; --ink: #1c2822;
  --secondary: #5d695f; --tertiary: #768075; --sage: #d84437;
  --brass: #c29135; --border: #dddcd1; --bg-hover: #efeee5;
  --focus-ring: #d84437; --info: #406c58; --warning: #9e6a22;
  --error: #c5362e; --success: #238265; --positive: #d84437; --negative: #238265;
  --positive-bg: #fbe7e1; --negative-bg: #e3f0e7; --sage-bg: #f9e5dd;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-chinese: var(--font-body); --font-display: Georgia, "Times New Roman", serif;
  --font-data: "SFMono-Regular", Consolas, "PingFang SC", monospace;
  --radius-default: 18px; --radius-sm: 8px; --sidebar-width: 222px;
}
html { background: var(--bg); scroll-padding-top: 100px; }
body { background: var(--bg); font-weight: 400; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
a { color: var(--sage); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
::selection { color: #fff; background: #d84437; }
[hidden] { display: none !important; }
.casino-skip { position: fixed; top: -90px; left: 240px; padding: 12px 18px; background: #fff; z-index: 2000; border-radius: 8px; }
.casino-skip:focus { top: 12px; }
.casino-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 300;
  display: flex; flex-direction: column; padding: 32px 16px 20px;
  background: #182720; color: #f5f0e1; overflow-y: auto; overflow-x: hidden;
}
.casino-brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.casino-sidebar .casino-brand { margin: 0 8px 38px; }
.casino-brand:hover { color: inherit; }
.casino-brand img { width: 42px; height: 42px; flex-shrink: 0; }
.casino-brand > span { font: italic 700 34px/1 Georgia, serif; letter-spacing: -1.6px; }
.casino-nav { display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.casino-nav-item {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 44px;
  padding: 10px 14px; width: 100%; color: #b8c3b6; border-radius: 10px;
  font-size: 13px; font-weight: 500; flex-shrink: 0;
}
.casino-nav-item:hover { color: #fff; background: #ffffff0b; }
.casino-nav-item.active { color: #1d2a21; background: #e2ef9d; box-shadow: 0 3px 0 #090f0b2b; }
.casino-nav-icon { display: grid; place-items: center; width: 20px; font: 20px Georgia, serif; }
.casino-nav-item.active .casino-nav-icon { color: #c84435; }
.casino-sidebar-art { min-height: 110px; height: 130px; position: relative; margin-top: auto; overflow: hidden; opacity: .65; }
.casino-wheel {
  position: absolute; width: 155px; height: 155px; left: -48px; top: 32px; border-radius: 50%;
  border: 17px dashed #f4efdc; outline: 1px solid #f4efdc30; outline-offset: 7px; transform: rotate(-20deg);
  box-shadow: inset 0 0 0 1px #d55f46, inset 0 0 0 13px #182720, inset 0 0 0 14px #f4efdc70;
}
.casino-mini-card { position: absolute; width: 53px; height: 74px; top: 58px; right: 18px; display: grid; place-items: center; border-radius: 7px; color: #182720; background: #f4efdc; font: 34px Georgia, serif; transform: rotate(13deg); box-shadow: 0 4px 16px #0005; }
.casino-mini-card:last-child { right: 56px; top: 50px; transform: rotate(-15deg); color: #cf4638; }
.casino-main { margin-left: var(--sidebar-width); padding: 0 36px 36px; min-width: 0; max-width: 1820px; }
.casino-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: sticky; top: 0; z-index: 100; min-height: 94px; padding: 20px 0;
  border-bottom: 1px solid var(--border); background: #f2f0e9f2; backdrop-filter: blur(14px);
}
.casino-page-heading { display: flex; align-items: center; gap: 14px; }
.casino-topbar h1 { color: var(--ink); font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; }
.casino-menu, .casino-nav-scrim { display: none; }
#module-trade-log { padding-top: 26px; min-width: 0; }
.tl-shell { gap: 0; }
.casino-overview { display: flex; flex-direction: column; gap: 24px; }
body:not([data-view="overview"]) .casino-overview { display: none; }
body[data-view="overview"] .tl-detail-shell { display: none; }
.tl-controls { gap: 10px; flex-wrap: nowrap; width: auto; }
.tl-action-btn, .tl-privacy-toggle { border: 1px solid #d8dacf; background: #fbfaf4; color: #526054; border-radius: 12px; width: 42px; height: 42px; }
.tl-action-btn:hover { border-color: #b0b7a7; background: #fff; }
.tl-privacy-toggle[aria-pressed="true"] { color: #c84435; border-color: #e9c0b6; background: #fff4ed; }
.tl-add-button { width: 42px; height: 42px; background: #d84437; border: 1px solid #c53d31; color: #fffaf0; border-radius: 12px; font-size: 26px; box-shadow: 0 3px 0 #aa352a; }
.tl-add-button:hover { background: #e14d3f; border-color: #c53d31; transform: translateY(-1px); }
.tl-kpi-strip { min-width: 0; }
.tl-cards { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; margin: 0; padding: 5px 2px; }
.tl-cards .card { position: relative; min-height: 105px; padding: 18px 16px; border-radius: 16px; border: 1px solid #deded2; background: #fcfbf6; box-shadow: 0 3px 0 #252f1e08; align-items: flex-start; gap: 8px; justify-content: space-between; }
.tl-cards .card::after { display: none; }
.tl-cards .card-label { font: 500 11px/1.5 var(--font-body); color: var(--secondary); white-space: normal; margin: 0; }
.tl-cards .card-value { font: 500 clamp(20px,1.9vw,28px)/1.25 var(--font-data); letter-spacing: -1.4px; margin: 0; }
.tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit { grid-column: span 3; min-height: 184px; padding: 24px 28px; border-radius: 20px; overflow: hidden; isolation: isolate; }
.tl-cards .tl-card-assets { background: #e34a3d; border: 1px solid #d43f33; box-shadow: 0 6px 0 #b2362b,0 13px 20px #71332713; transform: rotate(-.6deg); }
.tl-cards .tl-card-net-profit { background: #fcfaf0; border: 1px solid #d2d6c5; box-shadow: 0 6px 0 #dcddce,0 13px 20px #293d1910; transform: rotate(.6deg); }
.tl-cards .tl-card-assets .card-label, .tl-cards .tl-card-assets .card-value { color: #fff9e9; }
.tl-cards .tl-card-assets .card-label, .tl-cards .tl-card-net-profit .card-label { font-size: 14px; }
.tl-cards .tl-card-assets .card-value, .tl-cards .tl-card-net-profit .card-value { font-size: clamp(28px,3.2vw,46px); letter-spacing: -2px; position: relative; z-index: 1; }
.tl-cards .tl-card-assets::before, .tl-cards .tl-card-net-profit::before { position: absolute; top: -18px; right: 10px; font: 200px/1 Georgia, serif; transform: rotate(-12deg); z-index: -1; }
.tl-cards .tl-card-assets::before { content: '♠'; color: #ffb5a329; }
.tl-cards .tl-card-net-profit::before { content: '♦'; color: #cdd4b54d; transform: rotate(12deg); top: -15px; }
.tl-cards .tl-card-assets:hover { transform: rotate(0) translateY(-2px); }
.tl-cards .tl-card-net-profit:hover { transform: rotate(0) translateY(-2px); }
.section { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 23px; box-shadow: 0 3px 0 #202b1b05; }
.section-header { margin-bottom: 22px; }
.section-header h2 { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.tl-overview-grid { gap: 20px; margin: 0; }
.tl-overview-grid .section { margin: 0; }
.tl-top-benchmark { padding: 23px; margin: 0; }
.tl-top-benchmark .tl-compact-scroll { max-height: none; }
.tl-top-benchmark th, .tl-top-benchmark td { font-size: 13px; padding: 12px 8px; }
.tl-detail-shell .section-header { display: none; }
.tl-detail-panel .section { padding: 24px; }
.tl-chart-large { height: 310px; min-height: 310px; }
.tl-detail-shell { gap: 0; }
.tl-detail-panel.active { animation: casino-arrive 180ms ease-out; }
@keyframes casino-arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
th { color: #6b7569; font-weight: 500; font-size: 12px; }
td { font-weight: 400; }
.tl-total-row td, .tl-cash-allocation-row td { background: #edf1e3; }
.tl-scroll-table th, .tl-scroll-table td { padding-top: 13px; padding-bottom: 13px; }
.tl-type-buy, .tl-transfer-deposit, .tl-currency-cny { color: #47704c; background: #eaf0df; border-color: #d9e4cc; }
.tl-type-sell, .tl-transfer-withdraw, .tl-currency-usd, .tl-currency-fx { color: #a65b36; background: #f5e9dc; border-color: #e8d6c1; }
.tl-currency-hkd { color: #b63e37; background: #f9e3de; border-color: #ecc6bc; }
.tl-entry-panel { background: #13211bb3; backdrop-filter: blur(8px); z-index: 1000; }
.tl-entry-card { border-radius: 20px; border: 1px solid #d0d7bf; background: #fcfbf6; box-shadow: 0 24px 100px #0004; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; }
.tl-entry-header h3 { font-size: 23px; font-weight: 600; }
.tl-entry-error { color: var(--error); }
.tl-entry-tabs { border-radius: 10px; }
.tl-entry-tabs button.active, .tl-segmented button.active, .tl-return-mode button.active { background: #e8eecf; color: #344b2f; }
.tl-entry-actions .btn-primary { background: #d84437; border-color: #d84437; color: #fff; }
.tl-entry-actions .btn-primary:hover { background: #c83d31; border-color: #c83d31; }
.tl-entry-actions .btn-secondary, .tl-load-more .btn-secondary { border: 1px solid var(--border); background: #f3f3e8; color: var(--ink); }
input, select { background: #fffef8; accent-color: #d84437; }
.tl-entry-form input, .tl-entry-form select { border-radius: 9px; }
.tl-return-toolbar { margin: 0; }
.tl-calendar-section .section-header { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.tl-calendar-section .section-header h2 { display: none; }
.tl-return-period-nav, .tl-return-mode { background: #f7f7ed; border-radius: 10px; }
.casino-load-error { display: none; padding: 12px 16px; margin-top: 20px; border: 1px solid #e6aaa1; background: #fce8e1; color: #a83429; border-radius: 10px; }
.casino-load-error.visible { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.casino-load-error button { font-weight: 600; }
@media (min-width: 1600px) { .casino-main { padding-left: 52px; padding-right: 52px; } }
@media (max-width: 1100px) {
  :root { --sidebar-width: 204px; }
  .casino-main { padding-left: 24px; padding-right: 24px; }
  .tl-cards { gap: 12px; }
  .tl-cards .card:not(.tl-card-assets):not(.tl-card-net-profit) { grid-column: span 2; min-height: 92px; }
  .tl-cards .card-value { font-size: 25px; }
  .tl-cards .tl-card-assets .card-value, .tl-cards .tl-card-net-profit .card-value { font-size: 34px; }
  .casino-sidebar { padding-left: 12px; padding-right: 12px; }
  .casino-brand > span { font-size: 31px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 222px; }
  .casino-sidebar { transform: translateX(-100%); transition: transform 180ms ease; padding-top: 25px; }
  .nav-open .casino-sidebar { transform: translateX(0); }
  .casino-main { margin: 0; padding: 0 18px 26px; }
  .casino-topbar { min-height: 80px; padding: 17px 0; }
  .casino-topbar h1 { font-size: 25px; letter-spacing: -.7px; }
  .casino-menu { display: grid; place-items: center; min-width: 35px; height: 38px; color: var(--ink); }
  .casino-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-open .casino-nav-scrim { display: block; position: fixed; inset: 0; z-index: 250; background: #0d1f1699; backdrop-filter: blur(3px); }
  .nav-open { overflow: hidden; }
  .casino-page-heading { gap: 8px; }
  #module-trade-log { padding-top: 22px; }
  .tl-controls { width: auto; justify-content: flex-end; gap: 8px; }
  .tl-controls button { flex: initial; }
  .tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit { min-height: 155px; padding: 20px; }
  .tl-cards .tl-card-assets .card-value, .tl-cards .tl-card-net-profit .card-value { font-size: 29px; letter-spacing: -1.8px; }
  .tl-cards .tl-card-assets::before, .tl-cards .tl-card-net-profit::before { font-size: 160px; right: -18px; top: -6px; }
  .tl-overview-grid { grid-template-columns: 1fr; }
  .section, .tl-top-benchmark, .tl-detail-panel .section { padding: 18px; }
  .tl-chart-large { height: 270px; min-height: 270px; }
  .tl-top-benchmark th, .tl-top-benchmark td { font-size: 11px; padding: 10px 3px; }
  .tl-entry-form { grid-template-columns: 1fr; }
  .tl-entry-panel { padding: 14px; }
  .tl-entry-card { padding: 22px; }
  .casino-skip { left: 20px; }
}
@media (max-width: 420px) {
  .casino-main { padding-left: 14px; padding-right: 14px; }
  .tl-cards { gap: 10px; }
  .tl-cards .card { padding: 14px 12px; }
  .tl-cards .card-value { font-size: 22px; }
  .tl-cards .card-label { font-size: 10.5px; }
  .tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit { padding: 18px; }
  .tl-cards .tl-card-assets .card-label, .tl-cards .tl-card-net-profit .card-label { font-size: 12px; }
  .tl-cards .tl-card-assets .card-value, .tl-cards .tl-card-net-profit .card-value { font-size: 24px; letter-spacing: -1.8px; }
  .tl-controls .tl-action-btn, .tl-controls .tl-add-button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* The table: tactile surfaces without additional interface copy. */
.casino-main {
  background-image: radial-gradient(#66754d09 .7px, transparent .7px);
  background-size: 7px 7px;
}
.casino-topbar::after {
  content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; width: 126px;
  background: linear-gradient(90deg, #d84437 0 38%, transparent 38% 44%, #d9e796 44% 76%, transparent 76% 82%, #bac7af 82%);
}
.casino-brand img { transition: transform 600ms cubic-bezier(.2,.8,.2,1), filter 350ms ease; }
.casino-brand:hover img { transform: rotate(-24deg); filter: drop-shadow(0 3px 3px #0003); }
.casino-sidebar { background-image: radial-gradient(ellipse at 0 100%, #3c665733, transparent 65%); }
.casino-nav-icon { position: relative; border-radius: 50%; width: 26px; height: 26px; transition: transform 250ms ease, box-shadow 250ms ease; }
.casino-nav-item:hover .casino-nav-icon { transform: rotate(-12deg); }
.casino-nav-item.active .casino-nav-icon { box-shadow: 0 0 0 1px #9ba65a70, inset 0 0 0 2px #ffffff6b; background: #f5f7dacc; }
.casino-nav-item.active { background-image: linear-gradient(100deg, #e9f4b2, #dbe995); }
.casino-nav-item.active .casino-nav-icon::after { content: ''; position: absolute; inset: -3px; border: 1px dashed #748c4980; border-radius: 50%; }
.casino-wheel { width: 176px; height: 176px; left: -51px; top: 17px; border: 0; outline: 0; box-shadow: none; transform: rotate(-22deg); }
.casino-wheel svg { width: 100%; height: 100%; transition: transform 1800ms cubic-bezier(.18,.7,.15,1); }
.casino-sidebar-art:hover .casino-wheel svg { transform: rotate(230deg); }
.casino-mini-card { transition: transform 450ms cubic-bezier(.2,.8,.2,1); }
.casino-sidebar-art:hover .casino-mini-card { transform: translate(8px,-5px) rotate(22deg); }
.casino-sidebar-art:hover .casino-mini-card:last-child { transform: translate(-3px,-8px) rotate(-24deg); }
.casino-table-tokens { position: relative; width: 110px; height: 43px; margin-right: 9px; }
.casino-token { position: absolute; width: 35px; height: 35px; border-radius: 50%; border: 5px dashed #fff4d9; box-shadow: 0 3px 0 var(--token-edge), 0 6px 7px #19272017, inset 0 0 0 1px #fff5; background: var(--token-fill); }
.casino-token::before { content: ''; position: absolute; inset: 3px; border: 1px solid #ffffffb0; border-radius: 50%; }
.casino-token-ivory { --token-fill: #586e53; --token-edge: #354f3a; left: 0; top: 7px; transform: rotate(-17deg); }
.casino-token-red { --token-fill: #df5142; --token-edge: #aa3c31; left: 23px; top: 3px; transform: rotate(12deg); }
.casino-die { width: 37px; height: 37px; position: absolute; top: 2px; right: 0; transform: rotate(15deg); filter: drop-shadow(0 3px 0 #d5d7c5); }
.tl-add-button {
  border: 4px dashed #ffddca; border-radius: 50%; background: #dc493c;
  outline: 1px solid #c33f33; outline-offset: -7px; line-height: 1;
  box-shadow: 0 4px 0 #a5352b, 0 7px 10px #8532281a;
}
.tl-add-button:hover { transform: translateY(-3px) rotate(12deg); box-shadow: 0 7px 0 #a5352b, 0 11px 13px #85322822; }
.tl-add-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #a5352b; }
.tl-privacy-toggle { border-radius: 50%; box-shadow: 0 3px 0 #dbdfd0; }
.tl-privacy-toggle:hover { transform: translateY(-2px); }
.tl-cards { perspective: 1100px; padding-top: 8px; padding-bottom: 10px; }
.tl-cards .card { transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease, border-color 250ms ease; animation: casino-deal-in 500ms cubic-bezier(.2,.7,.2,1) backwards; }
.tl-cards .card:nth-child(2) { animation-delay: 55ms; }
.tl-cards .card:nth-child(3) { animation-delay: 105ms; }
.tl-cards .card:nth-child(4) { animation-delay: 140ms; }
.tl-cards .card:nth-child(5) { animation-delay: 175ms; }
.tl-cards .card:nth-child(6) { animation-delay: 210ms; }
.tl-cards .card:nth-child(7) { animation-delay: 245ms; }
.tl-cards .card:nth-child(8) { animation-delay: 280ms; }
.tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit {
  transform: perspective(1000px) translateY(var(--card-lift,0)) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) rotate(var(--rest-angle));
  transform-style: preserve-3d; transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease;
}
.tl-cards .tl-card-assets { --rest-angle: -.6deg; box-shadow: 0 2px 0 #f18b6b,0 5px 0 #a8382c,0 7px 0 #ed735d,0 10px 0 #ad3a2d,0 16px 25px #7133271c; background-image: radial-gradient(ellipse at 15% 0, #ff9b6830, transparent 60%), repeating-linear-gradient(45deg, #fff0 0 6px, #fff1 6px 6.4px); }
.tl-cards .tl-card-net-profit { --rest-angle: .6deg; box-shadow: 0 2px 0 #fffdf3,0 5px 0 #c9cdbb,0 7px 0 #fffdf3,0 10px 0 #c7ccb8,0 16px 25px #293d1914; background-image: radial-gradient(ellipse at 80% 0, #e4edcd66, transparent 65%); }
.tl-cards .tl-card-assets:hover, .tl-cards .tl-card-net-profit:hover { --card-lift: -5px; transform: perspective(1000px) translateY(var(--card-lift)) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) rotate(var(--rest-angle)); }
.tl-cards .tl-card-assets::before, .tl-cards .tl-card-net-profit::before { transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.tl-cards .tl-card-assets:hover::before { transform: translate(-6px,3px) rotate(-18deg); }
.tl-cards .tl-card-net-profit:hover::before { transform: translate(-5px,3px) rotate(18deg); }
.casino-card-foil { position: absolute; inset: 1px; border-radius: inherit; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(ellipse at var(--light-x,50%) var(--light-y,50%), #ffffff38, transparent 50%), linear-gradient(115deg, transparent 30%, #ffffff08 42%, #ffffff45 48%, #ffffff08 54%, transparent 70%); background-size: 100% 100%, 260% 100%; background-position: 0 0, 100% 0; }
.casino-surface-active .casino-card-foil { opacity: .85; background-position: 0 0, var(--light-x,50%) 0; }
.casino-card-corner { position: absolute; right: 21px; top: 18px; font: 28px/1 Georgia,serif; color: #ffffffa6; transform: rotate(5deg); z-index: 2; pointer-events: none; }
.tl-card-net-profit .casino-card-corner { color: #73845299; transform: rotate(-5deg); }
.tl-cards .card-label, .tl-cards .card-value { position: relative; z-index: 3; }
.tl-cards .card:nth-child(n+3) { background-image: linear-gradient(135deg, #fff8, #fff0 65%); }
.tl-cards .card:nth-child(n+3):hover { transform: translateY(-4px); border-color: #c9cfb8; box-shadow: 0 5px 0 #d9deca,0 9px 15px #2c3e1810; }
.tl-cards .card:nth-child(n+3)::after { display: block; position: absolute; top: 13px; right: 13px; left: auto; width: 24px; height: 25px; color: #d1d8bd; content: '♣'; font: 25px/1 Georgia,serif; background: none; }
.tl-cards .card:nth-child(4)::after { content: '♠'; color: #bed2c3; }
.tl-cards .card:nth-child(5)::after { content: '♥'; color: #ecc5ba; }
.tl-cards .card:nth-child(6)::after { content: '♦'; color: #d2d7bd; }
.tl-cards .card:nth-child(7)::after { content: '♣'; color: #e3d0ad; }
.tl-cards .card:nth-child(8)::after { content: '♠'; color: #c6d8cb; }
.tl-cards .card:nth-child(n+3) .card-label { padding-right: 20px; }
.tl-overview-grid .tl-chart-section {
  position: relative; border-radius: 24px; background: #1e3b30; padding: 21px 18px 18px;
  border: 1px solid #132e24; box-shadow: 0 4px 0 #12291f,0 10px 15px #182d1712;
  background-image: radial-gradient(ellipse at var(--light-x,50%) var(--light-y,0), #54724d33, transparent 70%);
  animation: casino-deal-in 550ms 240ms cubic-bezier(.2,.7,.2,1) backwards;
}
.tl-overview-grid .tl-chart-section:nth-child(2) { animation-delay: 320ms; }
.tl-chart-section::before { content: ''; position: absolute; inset: 5px; border: 1px solid #d8dfae30; border-radius: 20px; pointer-events: none; }
.tl-chart-section::after { content: '♠'; position: absolute; right: 22px; top: 14px; color: #d7dfb1aa; font: 29px/1 Georgia,serif; pointer-events: none; }
.tl-secondary-chart::after { content: '♦'; color: #efb39aaa; }
.tl-chart-section .section-header { margin: 0 5px 17px; }
.tl-chart-section .section-header h2 { color: #edf0dd; font-size: 14px; }
.tl-chart-section .tl-chart-box { background: #fcfbf6; border-radius: 13px; padding: 10px 8px 8px; box-shadow: inset 0 0 0 1px #fff6; }
.tl-top-benchmark { position: relative; border-radius: 12px; border: 1px solid #d5d9c5; box-shadow: 0 4px 0 #dfe2d2; padding: 25px 30px; }
.tl-top-benchmark::before, .tl-top-benchmark::after { content: ''; position: absolute; top: 18px; bottom: 18px; width: 13px; background: radial-gradient(circle, #f2f0e9 0 4.5px, #cfd4bf 4.5px 5px, transparent 5.5px) center / 13px 23px repeat-y; pointer-events: none; }
.tl-top-benchmark::before { left: -7px; }
.tl-top-benchmark::after { right: -7px; }
.tl-top-benchmark .section-header { padding-bottom: 15px; border-bottom: 1px dashed #c8cdb6; }
.tl-top-benchmark th { background: #eff1e3; }
.tl-top-benchmark tbody tr:hover td { background: #f2f3e7; }
.tl-detail-panel.active > .section { border-radius: 19px; box-shadow: 0 4px 0 #dce1cd,0 8px 0 #e9ebdd; animation: casino-table-in 330ms cubic-bezier(.2,.7,.2,1) backwards; }
.tl-scroll-table { scrollbar-color: #b5c0a3 #f2f3e9; scrollbar-width: thin; }
.tl-scroll-table th { background: #eef1e2; border-bottom: 1px solid #cbd3b9; }
.tl-scroll-table tbody tr:hover td { background: #f0f3e5; }
.tl-scroll-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 #d84437; }
.tl-detail-panel.active tbody tr { animation: casino-row-in 260ms 160ms ease-out backwards; }
.tl-detail-panel.active tbody tr:nth-child(1) { animation-delay: 0ms; }
.tl-detail-panel.active tbody tr:nth-child(2) { animation-delay: 25ms; }
.tl-detail-panel.active tbody tr:nth-child(3) { animation-delay: 50ms; }
.tl-detail-panel.active tbody tr:nth-child(4) { animation-delay: 75ms; }
.tl-detail-panel.active tbody tr:nth-child(5) { animation-delay: 100ms; }
.tl-detail-panel.active tbody tr:nth-child(6) { animation-delay: 125ms; }
.tl-return-cell { position: relative; overflow: hidden; border-radius: 14px; transition: transform 200ms ease, box-shadow 200ms ease; box-shadow: 0 3px 0 #dfe3d2; }
.tl-return-cell:not(.empty):hover { transform: translateY(-4px) rotate(-.8deg); box-shadow: 0 6px 0 #d4dbc1,0 10px 12px #31421e12; z-index: 1; }
.tl-return-cell:not(.empty)::after { content: '♦'; position: absolute; top: 6px; right: 9px; font: 24px/1 Georgia,serif; color: #a3ad8c3b; pointer-events: none; }
.tl-return-cell.positive::after { content: '♥'; color: #d36a5733; }
.tl-return-cell.negative::after { content: '♣'; color: #4f9d7933; }
.tl-return-period-nav, .tl-return-mode { padding: 4px; border-radius: 14px; box-shadow: inset 0 1px 3px #31421c0c; }
.tl-return-mode button { border: 0; border-radius: 9px; }
.tl-return-mode button.active { box-shadow: 0 2px 0 #c4cfad; }
.tl-entry-card { position: relative; animation: casino-modal-deal 350ms cubic-bezier(.2,.8,.2,1) backwards; }
.tl-entry-header { padding-bottom: 15px; border-bottom: 1px dashed #d0d7bd; }
.tl-entry-tabs { border: 0; overflow: visible; gap: 7px; }
.tl-entry-tabs button { border: 1px solid #d7ddc8; border-radius: 8px 8px 3px 3px; box-shadow: 0 3px 0 #e1e5d3; }
.tl-entry-tabs button.active { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 5px 0 #cbd5b6; }
.tl-entry-tabs button:last-child { border-right: 1px solid #d7ddc8; }
.tl-segmented { padding: 3px; border-radius: 11px; background: #eef1e3; }
.tl-segmented button { border: 0; border-radius: 7px; background: transparent; }
.tl-segmented button.active { background: #fcfbef; box-shadow: 0 2px 0 #d2dabf; }
@keyframes casino-deal-in { from { opacity: 0; translate: 0 15px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes casino-table-in { from { opacity: .3; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes casino-row-in { from { opacity: .1; translate: -7px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes casino-modal-deal { from { opacity: 0; transform: translateY(30px) rotate(-2deg) scale(.97); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@media (max-width: 1100px) { .casino-table-tokens { width: 95px; margin-right: 3px; } .tl-cards .card:nth-child(n+3)::after { right: 11px; top: 10px; font-size: 21px; } }
@media (max-width: 760px) {
  .casino-table-tokens { display: none; }
  .casino-card-corner { top: 13px; right: 14px; font-size: 23px; }
  .tl-cards .card:nth-child(n+3)::after { font-size: 18px; width: 17px; right: 9px; }
  .tl-cards .card:nth-child(n+3) .card-label { padding-right: 13px; }
  .tl-overview-grid .tl-chart-section { padding: 19px 13px 13px; }
  .tl-chart-section .tl-chart-box { padding-left: 4px; padding-right: 4px; }
  .tl-top-benchmark { padding: 20px 18px; }
  .tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit { transform: rotate(var(--rest-angle)); }
  .tl-cards .tl-card-assets:hover, .tl-cards .tl-card-net-profit:hover { transform: rotate(var(--rest-angle)); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-cards .tl-card-assets, .tl-cards .tl-card-net-profit { transform: rotate(var(--rest-angle)); }
  .tl-cards .tl-card-assets:hover, .tl-cards .tl-card-net-profit:hover { transform: rotate(var(--rest-angle)); }
  .casino-card-foil { display: none; }
  .casino-sidebar-art:hover .casino-wheel svg { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
