:root {
  font-family: Inter, system-ui, "Microsoft JhengHei", sans-serif;
  color: #17231e;
  background: #f7f8f5;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }

.site-footer {
  --footer-blue: #08488e;
  --footer-yellow: #ffe000;
  width: 100%;
  min-width: 0;
  background: var(--footer-blue);
  color: #fff;
  font: 500 16px/1.45 system-ui, "Noto Sans TC", sans-serif;
}
.site-footer-logos {
  overflow: hidden;
  border-bottom: 1px solid #ffffff18;
}
.site-footer-logo-track {
  display: flex;
  width: max-content;
  animation: site-footer-logo-scroll 52s linear infinite;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer-logo-track ul {
  display: flex;
  flex: none;
  justify-content: space-around;
  min-width: 100vw;
}
.site-footer-logo-track li {
  display: grid;
  flex: 0 0 clamp(94px, 6.1vw, 120px);
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  height: 84px;
  place-items: center;
}
.site-footer-logo-track img {
  display: block;
  max-width: none;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(.92);
}
@keyframes site-footer-logo-scroll {
  to { transform: translateX(-50%); }
}
.site-footer-inner {
  width: 90%;
  max-width: 1760px;
  margin-inline: auto;
  padding-top: clamp(48px, 4.85vw, 94px);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
}
.site-footer h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--footer-yellow);
  color: var(--footer-yellow);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}
.site-footer-grid ul { display: grid; gap: 5px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--footer-yellow); text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--footer-yellow); outline-offset: 3px; }
.site-footer-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-top: 42px;
}
.site-footer-social, .site-footer-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer-social { font-weight: 700; }
.site-footer-stores { gap: 8px; }
.site-footer-stores li {
  width: min(165px, 100%);
}
.site-footer-stores img { display: block; width: 100%; height: auto; }
.site-footer-age {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}
.site-footer-age-badge {
  display: grid;
  flex: none;
  width: 60px;
  min-height: 60px;
  text-align: center;
  background: #d60832;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.16;
}
.site-footer-age-badge small {
  padding: 2px;
  background: #fff;
  color: #151515;
  font-size: 12px;
}
.site-footer-age p, .site-footer-copyright { margin: 0; font-size: 14px; }
.site-footer-copyright {
  margin-top: clamp(36px, 3.1vw, 60px);
  padding: 28px 0 25px;
  border-top: 1px solid #ffffff24;
}
@media (max-width: 720px) {
  .site-footer-logo-track li { height: 68px; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .site-footer h2 { padding-left: 8px; font-size: 17px; }
  .site-footer-social-row { margin-top: 36px; }
  .site-footer-age { gap: 12px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-logos { overflow-x: auto; }
  .site-footer-logo-track { animation: none; }
  .site-footer-logo-track ul[aria-hidden="true"] { display: none; }
}

html:has(.short-videos), body:has(.short-videos) { min-height: 100dvh; background: #171717; color: #f5f5f5; }
.short-videos { width: min(1544px, 90%); margin: 0 auto; padding: 14px 0 48px; }
.short-videos .video-gallery-header { display: grid; gap: 10px; margin-bottom: 14px; border: 0; background: transparent; }
.video-gallery-header form { display: flex; width: min(100%, 488px); justify-self: start; padding: 2px; border: 1px solid #565656; border-radius: 12px; background: #383838; }
.video-gallery-bar { display: flex; justify-content: flex-end; align-items: center; }
.short-videos .video-gallery-header input[type="search"] { flex: 1; min-width: 0; padding: 8px 12px; border: 0; background: transparent; color: #fff; font: inherit; }
.video-gallery-header input::placeholder { color: #c1c1c1; }
.video-gallery-header button, .video-gallery-header nav a { padding: 5px 12px; border: 0; border-radius: 24px; background: #393939; color: #fff; font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.video-gallery-header nav { display: flex; flex: none; width: auto; min-height: 0; margin: 0; justify-content: flex-end; gap: 8px; }
.video-gallery-header nav a { background: transparent; color: #c1c1c1; }
.video-gallery-header nav a[aria-current] { background: #424242; color: #fff; }
.video-grid { --video-gap: 24px; --video-columns: 5; columns: var(--video-columns); column-gap: var(--video-gap); }
.video-grid--masonry { display: grid; grid-template-columns: repeat(var(--video-columns), minmax(0, 1fr)); grid-auto-rows: 1px; grid-auto-flow: row dense; align-items: start; }
.video-grid--masonry .video-card { margin: 0; min-width: 0; }
.video-grid--single { columns: auto; width: min(100%, 1210px); margin: 0; }
.short-videos .video-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; min-height: 0; margin: 16px 0 0; color: #ddd; }
.video-pagination a { color: #fff; padding: 5px 12px; border: 1px solid #5c5c5c; border-radius: 8px; }
.video-pagination [data-feed-status]:empty { display: none; }
.video-feed-item { margin: 0 0 32px; scroll-margin-top: 80px; }
.video-feed-info { display: grid; gap: 8px; margin: 0 0 16px; }
.video-feed-author { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.video-feed-author img { border-radius: 50%; object-fit: contain; background: #f2f3f6; padding: 4px; }
.video-feed-info time { color: #aaa; font-size: .85rem; }
.video-feed-info p { flex-basis: 100%; margin: 0; color: #e1e1e1; white-space: pre-wrap; overflow-wrap: anywhere; }
.video-feed-stage { --video-controls-height: 34px; position: relative; isolation: isolate; overflow: hidden; border-radius: 13px; background: #080808; }
.video-feed-stage > img { position: absolute; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(.33); transform: scale(1.12); }
.video-feed-stage > video { display: block; width: 100%; height: min(72dvh, 680px); object-fit: contain; }
.video-feed-open { position: absolute; inset: 0 0 var(--video-controls-height); z-index: 1; }
.video-feed-open:focus-visible { outline-offset: -4px; }
.video-feed-stage .video-watch-actions { z-index: 2; right: 14px; bottom: calc(var(--video-controls-height) + 18px); gap: 14px; }
.video-feed-stage .video-avatar { display: none; }
.video-feed-stage .video-controls { z-index: 2; background: #100e0ee8; }
.video-feed-stage:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 0; }
.video-feed-stage:fullscreen > video { height: 100%; }
.video-feed-item .video-comments[open] { position: fixed; inset: 0 0 0 auto; width: min(88%, 480px); }
.video-feed-item .video-comments::backdrop { background: #0006; }
.video-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 23px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #202020;
  color: inherit;
  text-decoration: none;
}
.video-card:hover, .video-card:focus-visible { border-color: #757575; }
.video-card:focus-visible { outline: 2px solid #ff8195; outline-offset: 2px; }
.video-cover { position: relative; aspect-ratio: max(.75, var(--video-ratio, .5625)); background: #101010; }
.video-member-badge { position: relative; width: fit-content; margin: 12px; padding: 6px 10px; border-radius: 6px; background: #102b49; color: #fff; font-size: .875rem; }
.video-cover .video-member-badge { position: absolute; inset: 0 auto auto 0; }
.video-feed-stage:has(.video-member-badge) { min-height: 180px; }
.video-cover :is(img, video) { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.video-cover-meta { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 5px; padding: 22px 10px 9px; background: linear-gradient(transparent, #000a); color: #fff; font-size: .78rem; }
.video-cover-meta span:nth-child(2) { padding: 1px 5px; border-radius: 4px; background: #000b; font-variant-numeric: tabular-nums; }
.video-card-copy { padding: 12px; }
.video-card-copy h2, .video-card-copy p { margin: 0 0 6px; overflow-wrap: anywhere; }
.video-card-copy h2 { font-size: .95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.video-card-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.video-card-copy p { color: #dedede; font-size: .87rem; }
.video-card-copy time { color: #aaa; font-size: .8rem; }
.video-grid > p:only-child { column-span: all; margin: 0; padding: 38px 16px; text-align: center; color: #bcbcbc; }
.short-videos.short-video-player { width: 100%; max-width: none; padding: 0; margin: 0; }
.video-watch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.video-watch:has(.video-comments[open]) { grid-template-columns: minmax(0, 1fr) clamp(320px, 28.5vw, 500px); }
.video-watch-main, .video-slide-preview { position: relative; isolation: isolate; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at top, #435773, #101823 70%); }
.video-watch-main { touch-action: pan-x pinch-zoom; }
.video-lock-overlay { display: grid; align-items: center; justify-items: center; min-height: 100dvh; padding: 72px 24px 100px; background: #000c; color: #fff; text-align: center; }
.video-lock-overlay .article-lock { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.video-lock-overlay .article-lock-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.video-slide-preview { position: absolute; inset: 0; pointer-events: none; }
.video-slide-cover { width: 100%; height: calc(100dvh - var(--video-controls-height, 46px)); object-fit: contain; padding-inline: clamp(0px, 7vw, 135px); display: block; }
.video-watch[data-slide="next"] { --video-slide-in: 100%; --video-slide-out: -100%; }
.video-watch[data-slide="previous"] { --video-slide-in: -100%; --video-slide-out: 100%; }
.video-watch[data-slide] .video-watch-main { animation: video-slide-out .24s cubic-bezier(.22,.65,.32,1) both; }
.video-watch[data-slide] .video-slide-preview { animation: video-slide-in .24s cubic-bezier(.22,.65,.32,1) both; }
@keyframes video-slide-out { from { transform: translateY(0); } to { transform: translateY(var(--video-slide-out)); } }
@keyframes video-slide-in { from { transform: translateY(var(--video-slide-in)); } to { transform: translateY(0); } }
.video-watch-backdrop { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(48px) brightness(.36); transform: scale(1.12); }
.video-stage video { display: block; width: 100%; height: 100dvh; object-fit: contain; padding-inline: clamp(0px, 7vw, 135px); }
.video-stage video::-webkit-media-controls-overflow-button { display: none; }
.video-watch--custom { --video-controls-height: 46px; }
.video-watch--custom .video-stage video { height: calc(100dvh - var(--video-controls-height)); cursor: pointer; }
.video-controls { height: var(--video-controls-height); position: relative; background: #0d0d0d; color: #fff; }
.video-controls .video-seek {
  position: absolute; z-index: 1; top: -6px; left: 0; width: 100%; height: 13px; margin: 0; padding: 0;
  appearance: none; border: 0; background: transparent; cursor: pointer;
}
.video-seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, #fff var(--video-progress, 0%), #ffffff42 0); }
.video-seek::-moz-range-track { height: 2px; background: linear-gradient(to right, #fff var(--video-progress, 0%), #ffffff42 0); }
.video-seek::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; }
.video-seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.video-seek:is(:hover, :focus-visible)::-webkit-slider-thumb { opacity: 1; }
.video-seek:is(:hover, :focus-visible)::-moz-range-thumb { opacity: 1; }
.video-control-row { display: flex; align-items: center; height: 100%; gap: 8px; padding-inline: 8px 12px; }
.video-control-row button { display: grid; place-items: center; width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #fff; box-shadow: none; }
.video-control-row button:hover { background: #ffffff20; }
.video-control-row svg { width: 21px; height: 21px; fill: currentColor; }
.video-control-row [data-player-time] { font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-control-row [data-player-mute] { margin-inline-start: auto; }
.video-volume-wave, .video-muted-cross, [data-player-fullscreen] path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-pause-icon, .video-muted-cross, [data-playing="true"] .video-play-icon, [data-muted="true"] .video-volume-wave { display: none; }
[data-playing="true"] .video-pause-icon, [data-muted="true"] .video-muted-cross { display: inline; }
.video-watch-tools { position: absolute; top: max(30px, env(safe-area-inset-top)); inset-inline: clamp(12px, 3vw, 46px); display: flex; gap: clamp(6px, 2vw, 14px); align-items: center; }
.video-back { display: grid; place-items: center; flex: none; width: 42px; height: 42px; color: #fff; font-size: 1.8rem; line-height: 1; text-decoration: none; border-radius: 10px; background: transparent; }
.video-watch-tools form { display: flex; align-items: center; min-width: 0; max-width: min(290px, 65vw); border: 1px solid #ffffffa8; border-radius: 12px; background: transparent; }
.video-end-notice {
  width: fit-content;
  margin: 20px auto 0;
  padding: 8px 15px;
  border: 1px solid #ffffff45;
  border-radius: 999px;
  background: #101823ed;
  color: #fff;
  font-size: .875rem;
  text-align: center;
}
.video-pagination .video-end-notice { margin: 0; }
.video-watch .video-end-notice {
  position: absolute;
  z-index: 3;
  inset: max(78px, calc(env(safe-area-inset-top) + 50px)) 0 auto;
  margin: 0 auto;
  pointer-events: none;
}
html:has(.short-video-player) { overscroll-behavior-y: none; }
.video-watch .video-watch-tools input[type="search"] { min-width: 0; width: 100%; padding: 8px 12px; border: 0; background: transparent; color: #fff; font: inherit; }
.video-watch-tools input::placeholder { color: #e0e6ed; }
.video-watch-tools button { padding: 8px 9px; border: 0; background: transparent; color: #fff; font: inherit; white-space: nowrap; cursor: pointer; }
.video-caption { position: absolute; left: clamp(12px, 2vw, 30px); bottom: max(66px, calc(55px + env(safe-area-inset-bottom))); max-width: min(540px, 72vw); overflow-wrap: anywhere; pointer-events: none; text-shadow: 0 2px 8px #000; }
.video-byline { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 750; }
.video-byline time { margin-inline-start: 8px; color: #ddd; font-size: .8rem; font-weight: 400; }
.video-caption p { margin: 2px 0 0; font-size: clamp(1rem, 1.1vw, 1.15rem); white-space: pre-wrap; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.video-watch-actions { position: absolute; right: clamp(10px, 2vw, 28px); bottom: max(72px, calc(63px + env(safe-area-inset-bottom))); display: grid; justify-items: center; gap: clamp(13px, 2.4vh, 24px); }
.video-watch-actions .video-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ffffffaa; background: #f2f3f6; }
.video-avatar img { width: 38px; height: auto; }
.video-watch-actions button { display: grid; justify-items: center; gap: 4px; min-width: 44px; padding: 0; border: 0; background: transparent; color: #fff; text-shadow: 0 2px 9px #000; }
.video-watch-actions button svg { display: block; width: 27px; height: 27px; fill: currentColor; filter: drop-shadow(0 2px 5px #0009); }
.video-watch-actions button small { color: #fff; font-size: .85rem; font-weight: 650; line-height: 1.35; }
.video-watch-actions [data-video-action="like"][aria-pressed="true"] { color: #ff3560; }
.video-watch-actions [data-video-action="favorite"][aria-pressed="true"] { color: #ffd25b; }
.video-action-status { position: absolute; right: 58px; bottom: 0; width: max-content; max-width: 190px; padding: 6px 9px; margin: 0; border-radius: 7px; background: #151515; font-size: .82rem; }
.video-action-status:empty { display: none; }
.video-comments { position: static; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-inline-start: 1px solid #383838; background: #202020; color: #fff; }
.video-comments[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.video-comments header { display: flex; justify-content: space-between; align-items: center; min-height: 55px; padding-inline: 18px; background: transparent; border-bottom: 1px solid #333; }
.video-comments h2 { align-self: stretch; display: grid; align-items: center; margin: 0; border-bottom: 2px solid #ff3159; font-size: 1rem; }
.video-comments-total { margin: 0; padding: 14px 18px 6px; font-size: .94rem; font-weight: 650; }
.video-comments ul { list-style: none; margin: 0; padding: 0 18px; overflow-y: auto; overscroll-behavior: contain; }
.video-comments li { display: flex; align-items: start; gap: 10px; padding: 12px 0; overflow-wrap: anywhere; }
.video-comment-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: #393c47; color: #bfc4d4; font-size: .83rem; }
.video-comment-author { color: #bdbdbd; font-size: .82rem; }
.video-comments li p { margin: 0; white-space: pre-wrap; }
.video-comments time { color: #bdbdbd; font-size: .75rem; }
.video-comments form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 12px 14px; border-top: 1px solid #333; }
.video-comments form[hidden], .video-comment-hint[hidden], .video-comment-hint:empty { display: none; }
.video-comment-hint { margin: 0; padding: 14px 18px; border-top: 1px solid #333; color: #dedede; font-size: .9rem; }
.video-comment-hint a { color: #a9d8ff; text-decoration: underline; }
.video-comments textarea { width: 100%; min-height: 42px; max-height: 100px; resize: vertical; background: #303030; color: #fff; border-color: #545454; border-radius: 12px; padding: 9px; }
.video-comments form [role="status"] { grid-column: 1 / -1; margin: 0; }
.video-comments form [role="status"]:empty { display: none; }
.video-comments button { background: #424242; color: #fff; border: 0; }
.video-comments header button { background: transparent; font-size: 1.35rem; }
@media (max-width: 720px) {
  .video-watch:has(.video-comments[open]) { grid-template-columns: minmax(0, 1fr); }
  .video-comments[open] { position: absolute; inset: 0 0 0 auto; z-index: 3; width: min(88%, 420px); box-shadow: -12px 0 30px #0008; }
}
.video-upload-form { max-width: 700px; }
.video-upload-form video, [data-article-block="video"] video {
  display: block; width: auto; max-width: 100%; max-height: 70dvh; margin: 12px auto; border-radius: 8px; background: #11151d;
}
.video-upload-form video[hidden] { display: none; }
@media (max-width: 1199px) { .video-grid { --video-columns: 4; } }
@media (max-width: 950px) { .video-grid { --video-columns: 3; --video-gap: 16px; } }
@media (max-width: 600px) {
  .video-stage video, .video-slide-cover { padding-inline: 0; }
  .video-watch-actions { gap: 14px; }
  .short-videos { width: calc(100% - 24px); }
  .video-gallery-header { gap: 10px; }
  .video-grid { --video-columns: 2; --video-gap: 12px; }
  .video-grid--single { columns: auto; }
  .video-feed-stage > video { height: min(66dvh, 580px); }
  .video-card { margin-bottom: 10px; }
  .video-card-copy { padding: 9px; }
}

body:has(.fere-page) { background: #061923; }
.fere-page { width: 100%; margin-top: -85px; padding: 0; background: #fff; }
.fere-page :is(#fere-steps, #fere-odds) { scroll-margin-top: 94px; }
.fere-banner > .baccarat-hero { object-position: 24% top; min-height: 350px; object-fit: cover; }
.fere-banner .baccarat-intro { top: calc(50% + 40px); }
.fere-section { padding: clamp(32px, 5vw, 72px) 20px; }
.fere-inner { width: min(100%, 1100px); margin-inline: auto; }
.fere-section h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; margin: 0 0 16px; }
.fere-section h3 { margin: 0 0 8px; }
.fere-section p { line-height: 1.75; margin: 0 0 16px; }
.fere-intro, .fere-finish { text-align: center; }
.fere-intro p { max-width: 740px; margin-inline: auto; }
.fere-logo { display: inline-block; max-width: min(270px, 80vw); height: auto; vertical-align: middle; }
.fere-logo[hidden] { display: none; }
.fere-banner h1:has(.fere-logo) { margin-bottom: 16px; }
.fere-platform { padding-top: clamp(36px, 5vw, 84px); padding-bottom: 32px; }
.fere-platform h2, .fere-events h2, .fere-live-odds h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 36px);
  color: #185f4a;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.fere-platform h2::before, .fere-platform h2::after,
.fere-events h2::before, .fere-events h2::after,
.fere-live-odds h2::before, .fere-live-odds h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #bdbdbd;
}
.fere-platform p { max-width: none; margin-bottom: clamp(24px, 3vw, 40px); }
.fere-events {
  padding-block: clamp(38px, 5vw, 70px) clamp(42px, 5vw, 80px);
  border-block: 1px solid #185f4a;
  background: #e6e6e6;
  color: #111;
}
.fere-events h2 { font-size: clamp(1.45rem, 2.3vw, 2.1rem); margin-bottom: clamp(26px, 4vw, 42px); }
.fere-events p { max-width: none; line-height: 1.65; }
.fere-events h3 { font-size: 1.25rem; margin: 26px 0 16px; }
.fere-events p:last-child { margin-bottom: 0; }
.fere-platform-link {
  display: inline-block;
  border: 2px solid #185f4a;
  border-radius: 3px;
  padding: 8px 20px;
  color: #185f4a;
  font-weight: 750;
  text-decoration: none;
}
.fere-platform-link:hover { background: #185f4a; color: #fff; text-decoration: none; }
.fere-steps { color: #eefefa; background: #104f40; }
.fere-steps h2 { text-align: center; }
.fere-carousel .fere-step {
  aspect-ratio: auto;
  background: #f7fffc;
  color: #193731;
  border: 1px solid #a1d2bc;
  border-radius: 14px;
}
.fere-step-image { width: 100%; aspect-ratio: 591 / 1024; background: #104f40; }
.fere-carousel .fere-step img { object-fit: contain; }
.fere-carousel .fere-step img[hidden] { display: none; }
.fere-odds { background: #eef6f2; color: #163630; }
.fere-odds-example { padding: 22px; margin: 18px 0; background: #fff; border-left: 4px solid #1e7759; border-radius: 8px; }
.fere-odds-example p + p { margin-top: 12px; }
.fere-odds-table { overflow-x: auto; margin: 22px 0; border: 1px solid #c3dfd3; border-radius: 8px; background: #fff; }
.fere-odds-table table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.fere-odds-table caption { padding: 10px 14px; background: #d9ede5; color: inherit; font-weight: 700; text-align: left; }
.fere-odds-table th, .fere-odds-table td { padding: 8px 14px; vertical-align: top; white-space: nowrap; }
.fere-odds-table th { background: #195e4c; color: #fff; }
.fere-odds-comparison { margin: 8px 0 22px; padding-inline-start: 1.5em; line-height: 1.75; }
.fere-live-odds { padding-block: 46px 40px; background: #e6e6e6; color: #17231e; }
.fere-live-odds .fere-inner { max-width: 896px; }
.fere-live-odds h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: .14em; text-align: center; }
.fere-live-odds p, .fere-live-odds ol { font-size: .875rem; line-height: 1.7; }
.fere-live-odds ol { margin: 20px 0; padding-inline-start: 2em; }
.fere-live-odds details { margin-top: 22px; }
.fere-live-odds summary { cursor: pointer; list-style: none; }
.fere-live-odds summary::-webkit-details-marker { display: none; }
.fere-live-odds details p { margin: 12px 0 0; }
.fere-budget { background: #185f4a; color: #fff; }
.fere-budget .fere-inner { max-width: 896px; }
.fere-budget h2 { display: flex; align-items: center; gap: clamp(16px, 5vw, 92px); margin-bottom: 32px; font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: .16em; }
.fere-budget h2::before, .fere-budget h2::after { content: ""; flex: 1; border-top: 1px solid #ffffff99; }
.fere-budget-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 16px; }
.fere-budget-row + h2 { margin-top: 32px; }
.fere-budget-copy { padding: 14px; background: #fff; color: #283932; font-size: .875rem; }
.fere-budget-copy ol { padding-inline-start: 1.6em; line-height: 1.65; }
.fere-budget-copy > :last-child { margin-bottom: 0; }
.fere-budget-art { justify-self: center; width: min(100%, 355px); aspect-ratio: 1; border-radius: 50%; background: url('/fere-budget-art.webp') 4.2% center / 224% auto no-repeat; }
.fere-budget-art--limit { width: min(100%, 170px); background-position-x: 95.1%; }
@media (max-width: 620px) {
  .fere-budget-row { grid-template-columns: minmax(0, 1fr); }
  .fere-budget-art { width: min(70%, 240px); }
  .fere-budget-art--limit { width: min(50%, 150px); grid-row: 1; }
}
.fere-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.fere-info-grid article { padding: 22px; border: 1px solid #c9e2d7; border-radius: 12px; background: #fff; }
.fere-info-grid article p, .fere-odds-example p { margin-bottom: 0; }
.fere-finish { color: #fff; background: #082f2c; }
@media (max-width: 900px) {
  .fere-page { margin-top: -68px; }
}
@media (max-width: 840px) {
  .fere-banner > .baccarat-hero { min-height: 0; height: clamp(300px, 61vw, 430px); object-position: 22% top; }
  .fere-banner .baccarat-intro { background: #061923; }
}
@media (max-width: 600px) {
  .fere-info-grid { grid-template-columns: 1fr; }
}

body:has(.sports-analysis-page) { background: linear-gradient(90deg, #0b232d, #03151e 58%, #04131a); }
.sports-analysis-page {
  width: 100%;
  padding: 0;
  overflow: clip;
  color: #fff;
  background: #123b31;
}
.sports-analysis-page h1, .sports-analysis-page h2, .sports-analysis-page h3 { margin: 0; line-height: 1.2; }
.sports-analysis-hero {
  position: relative;
  isolation: isolate;
  background: #061812;
}
.sports-analysis-hero > .baccarat-hero { object-position: center top; }
.sports-analysis-hero .baccarat-intro h1 { margin-bottom: .65em; }
.sports-analysis-hero .sports-gear { z-index: 0; }
.sports-analysis-hero .baccarat-intro { z-index: 1; }
.sports-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sports-analysis-content {
  position: relative;
  isolation: isolate;
  padding: 26px 24px 38px;
  background: radial-gradient(ellipse at top, #21765a, #165943 75%);
}
.sports-analysis-inner { width: min(100%, 1260px); margin-inline: auto; text-align: center; }
.sports-analysis-inner h2 { margin-bottom: 16px; font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
.sports-analysis-page :is(#sports-articles, #sports-tutorial) { scroll-margin-top: 96px; }
.sports-carousel { --baccarat-gap: 20px; }
.sports-carousel .baccarat-slide { border: 1px solid #ffffff38; background: #071f34; border-radius: 14px; }
.sports-carousel .baccarat-arrow { background: #082a24e8; }
.sports-slide-title {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 15px;
  color: #fff;
  background: repeating-linear-gradient(135deg, #ffffff0c 0 1px, transparent 1px 14px), #0b2d45;
  text-wrap: balance;
}
.sports-slide-title small { color: #f4d27b; font-weight: 750; }
.sports-slide-title strong { font-size: clamp(1rem, 2vw, 1.55rem); }
.sports-lesson-section { margin-top: 20px; }
.sports-lesson-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
.sports-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 18px;
  color: #f6fffa;
  background: linear-gradient(150deg, #2a795d, #124334);
  border: 1px solid #86bd9d;
  border-radius: 10px 2px 10px 2px;
  box-shadow: 0 4px 0 #103b30;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}
.sports-button:hover, .sports-button[aria-expanded="true"] { color: #12362b; background: #d9ffe4; transform: translateY(-2px); text-decoration: none; }
.sports-button--gold { color: #201a0d; border-color: #fae3a8; background: linear-gradient(150deg, #f8dc91, #d4a542); }
.sports-button:focus-visible { outline: 3px solid #ffdd7b; outline-offset: 4px; }
.sports-lesson-description {
  scroll-margin-top: 100px;
  width: min(100%, 660px);
  margin: 22px auto 0;
  padding: 18px 22px;
  color: #123a2e;
  background: #edf9f0;
  border-radius: 12px;
  text-align: start;
}
.sports-lesson-description:not(:target) { display: none; }
.sports-lesson-description p { margin: 7px 0 0; }
.sports-feature-list { position: relative; isolation: isolate; }
.sports-feature {
  --feature-background: #fff;
  position: relative;
  isolation: isolate;
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 580px) minmax(0, 580px) minmax(24px, 1fr);
  align-items: center;
  background: var(--feature-background);
  color: #16312e;
}
.sports-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 46%;
  background: linear-gradient(90deg, var(--feature-background), transparent 46%), var(--feature-image) center right / cover no-repeat;
  opacity: .78;
}
.sports-feature--online { --feature-image: url("/analysis-assets/jordan.jpg"); }
.sports-feature--retail { --feature-background: #087674; --feature-image: url("/analysis-assets/curry.jpg"); color: #fff; }
.sports-feature--guide { --feature-image: url("/analysis-assets/ohtani.jpg"); }
.sports-feature--retail::before {
  inset: 0 46% 0 0;
  background: linear-gradient(270deg, var(--feature-background), #08767455), var(--feature-image) center left / cover no-repeat;
  opacity: .62;
}
.sports-feature-copy { grid-column: 2; max-width: 550px; padding: 45px 34px 45px 0; }
.sports-feature--retail .sports-feature-copy { grid-column: 3; padding: 45px 0 45px 38px; }
.sports-feature-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.48rem); color: #087674; }
.sports-feature--retail h2 { color: #fff; }
.sports-feature-copy p { line-height: 1.8; margin: 12px 0 20px; }
.sports-gear {
  position: absolute;
  z-index: -1;
  width: clamp(46px, 9vw, 172px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 10px #05151660);
  opacity: 1;
}
.sports-gear--hero-left { left: 3%; bottom: 4%; width: clamp(46px, 7vw, 132px); }
.sports-gear--hero-right { right: 4%; top: 18%; width: clamp(42px, 6vw, 108px); }
.sports-gear--content-left { left: -3%; bottom: 6%; }
.sports-gear--content-right { right: -2%; top: 7%; }
.sports-feature-list .sports-gear { z-index: 1; }
.sports-gear--feature-left { left: 2%; top: 6%; width: clamp(34px, 7vw, 132px); }
.sports-gear--feature-right { right: 2%; bottom: 5%; width: clamp(32px, 5vw, 96px); }
@media (prefers-reduced-motion: no-preference) {
  .sports-gear:nth-of-type(even) { --gear-float-phase: -2.3s; }
  .sports-gear--visible {
    animation: sports-gear-arrive .65s cubic-bezier(.2,.75,.3,1) both,
      sports-gear-float 4.8s ease-in-out var(--gear-float-phase, 0s) infinite;
  }
}
@keyframes sports-gear-arrive {
  from { translate: 0 28px; scale: .72; }
  to { translate: 0 0; scale: 1; }
}
@keyframes sports-gear-float {
  50% { transform: translateY(-16px) rotate(9deg); }
}
@media (max-width: 740px) {
  .sports-analysis-content { padding-inline: 16px; }
  .sports-analysis-hero > .baccarat-hero { object-position: 10% top; }
  .sports-analysis-hero .sports-gear--hero-left { top: 170px; bottom: auto; }
  .sports-analysis-hero .sports-gear--hero-right { top: 24px; }
  .sports-feature {
    min-height: 0;
    display: block;
    padding: clamp(150px, 42vw, 235px) 22px 32px;
  }
  .sports-feature::before, .sports-feature--retail::before {
    inset: 0 0 auto;
    height: clamp(170px, 47vw, 265px);
    background: linear-gradient(0deg, var(--feature-background), transparent 65%), var(--feature-image) right center / cover no-repeat;
  }
  .sports-feature--retail::before { background-position: center, left center; }
  .sports-feature .sports-feature-copy { padding: 0; }
}

.about-page {
  width: 100%;
  margin-top: -85px;
  padding-block: 0;
  overflow: clip;
  color: #eef5ff;
  background: #08182d;
  line-height: 1.75;
}
.about-inner { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.about-page :is(h1, h2, h3, p) { margin: 0; }
.about-page p + p { margin-top: 12px; }
.about-page h1 { font-size: clamp(2rem, 4.2vw, 4.35rem); line-height: 1.12; }
.about-page h2 { font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.22; }
.about-page h3 { font-size: clamp(1.12rem, 1.65vw, 1.4rem); line-height: 1.35; }
.about-page img { display: block; max-width: 100%; height: auto; }
.about-page .about-caption { margin: 10px 0 22px; color: #f8cc73; font-weight: 750; letter-spacing: .09em; }
.about-page > section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(var(--about-overlay, #08182dbd), #08182dda),
    var(--about-backdrop) center / cover no-repeat, #08182d;
}
.about-page > .about-hero {
  background: linear-gradient(#072a5494, #143c73a1), url("/about-assets/city-hero.jpg") center / cover no-repeat, #0b2d52;
}
.about-hero::after, .about-story::after, .about-concept::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 27px;
  background: var(--about-wave, #077ef5);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='27' viewBox='0 0 80 27'%3E%3Cpath d='M0 27C16 27 19 1 40 1S64 27 80 27Z'/%3E%3C/svg%3E") repeat-x center bottom;
  pointer-events: none;
}
.about-story { --about-wave: #fff; }
.about-hero-layout {
  min-height: clamp(520px, 83.4svh, 900px);
  padding: 76px 0 30px;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.about-hero-copy { z-index: 1; text-shadow: 0 2px 22px #010a1b; }
.about-hero h1, .about-story h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.2; }
.about-hero-copy p:not(.about-caption) { max-width: 690px; margin-inline: auto; color: #f4f7ff; }
.about-hero .about-caption, .about-story .about-caption { color: #ffe200; text-transform: uppercase; font-size: 1.18rem; }
.about-section { padding-block: clamp(42px, 7vw, 94px); }
.about-page > .about-story {
  --story-grid: #0066ca25;
  background: repeating-conic-gradient(var(--story-grid) 0% 25%, transparent 0% 50%) 0 0 / 96px 96px, #077ef5;
  padding-top: clamp(65px, 8vw, 150px);
}
.about-story > .about-inner { width: min(1400px, calc(100% - 48px)); }
.about-story-layout {
  position: relative;
  z-index: 1;
}
.about-intro { text-align: center; }
.about-story-layout .about-intro { max-width: 650px; margin: auto; }
.about-story-layout .about-caption { margin-bottom: 38px; }
.about-story-layout p + p { margin-top: 24px; }
.about-story-plane, .about-story-balloon { position: absolute; pointer-events: none; }
.about-story-plane { top: 8px; right: clamp(16px, 6.5vw, 140px); width: clamp(130px, 16vw, 310px); }
.about-story-balloon--left { top: 25%; left: 6%; width: clamp(70px, 13vw, 240px); }
.about-story-balloon--right { top: 33%; right: 6%; width: clamp(65px, 10vw, 180px); opacity: .82; }
.about-city-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 76px) clamp(14px, 2vw, 32px);
  margin: 54px auto 0;
}
.about-city {
  position: relative;
  grid-column: span 4;
  align-self: start;
  min-width: 0;
}
.about-city--table { grid-column: 3 / span 4; }
.about-city--lottery { grid-column: 7 / span 4; }
.about-city > img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px #003b7445);
  pointer-events: none;
}
.about-city details { text-align: center; }
.about-city summary {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #151922;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.about-city summary > span:last-child {
  padding: 1px 30px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 8px #0049827a;
}
.about-city summary::-webkit-details-marker { display: none; }
.about-hotspot {
  display: grid;
  place-items: center;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid #ffe330;
  border-radius: 50%;
  color: #151922;
  background: #ffe200;
  box-shadow: 0 0 16px #f6ce7480;
  transition: transform .2s ease;
}
.about-hotspot::before, .about-hotspot::after { content: ""; position: absolute; }
.about-hotspot::before {
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
.about-hotspot::after {
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(6px, 6px) rotate(45deg);
}
@media (min-width: 741px) {
  .about-city-grid { row-gap: clamp(10px, 1.5vw, 24px); }
  .about-city details { margin-top: -18px; }
  .about-hotspot {
    position: absolute;
    bottom: calc(100% + 16px);
    inset-inline-start: calc(50% - 23px);
  }
}
.about-city details[open] .about-hotspot { transform: scale(1.08); }
.about-city-info {
  width: min(100%, 350px);
  margin: 15px auto 0;
  padding: 17px 20px;
  border: 1px solid #dceaff;
  border-radius: 16px;
  color: #18385f;
  background: #fff;
  box-shadow: 0 8px 18px #00498255;
  text-align: start;
}
.about-city-info p { font-size: .95rem; line-height: 1.7; }
.about-city-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #0759a8;
  font-size: .9rem;
  font-weight: 750;
}
.about-page > .about-spirit { color: #111; background: #fff; }
.about-page > .about-concept {
  --about-wave: #077ef5;
  color: #111;
  background: repeating-conic-gradient(#e6a90024 0% 25%, transparent 0% 50%) 0 0 / 92px 92px, #ffcf00;
}
.about-page > .about-protection { color: #fff; background: #08192e; }
.about-cta { --about-backdrop: url("/about-assets/cta-bg.jpg"); }
.about-spirit-layout, .about-concept-layout, .about-protection-layout, .about-cta-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
}
.about-spirit-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.about-spirit .about-caption, .about-concept .about-caption {
  color: #107de7;
  text-transform: uppercase;
  font-size: 1.18rem;
}
.about-spirit h2, .about-concept h2, .about-protection h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.about-spirit-fox { width: min(90%, 430px); margin-inline: auto; }
.about-philosophy {
  position: relative;
  margin-top: 23px;
  padding: clamp(26px, 5vw, 60px) clamp(22px, 7vw, 100px);
  border: 5px solid #121212;
  border-radius: 30px;
  background: radial-gradient(circle, #ffe87f 1px, transparent 1px) 0 0 / 7px 7px, #ffd300;
  box-shadow: 6px 10px 5px #0003;
}
.about-philosophy-jet { position: absolute; width: clamp(78px, 9vw, 155px); right: 4px; top: 0; transform: translateY(-52%); }
.about-philosophy p, .about-pillars p { margin-top: 6px; }
.about-concept-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 48px; }
.about-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.about-pillars article {
  position: relative;
  min-height: 258px;
  padding: 82px 24px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 7px 10px 6px #8063004d;
}
.about-pillars img { position: absolute; top: -28px; left: 22px; width: 94px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(2px 5px 3px #0006); }
.about-protection-layout { width: min(1600px, calc(100% - 48px)); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.about-page > .about-protection { border-top: 15px solid #077ef5; }
.about-protection h2 + p { margin-top: 16px; }
.about-protection-card { margin-top: 38px; padding: clamp(22px, 3vw, 40px); border: 2px solid #3b98ff; border-radius: 18px; color: #111; background: #fff; }
.about-protection-card + .about-protection-note { margin-top: 18px; }
.about-protection ol { margin-block: 10px 0; padding-inline-start: 24px; }
.about-protection li + li { margin-top: 5px; }
.about-protection-art, .about-cta-art { position: relative; }
.about-protection-art > img:first-child { width: 100%; }
.about-cta-art > img:first-child { width: min(78%, 430px); margin-inline: auto; }
.about-coin { position: absolute; width: min(25%, 110px); }
.about-coin--one { top: 4%; left: 6%; }
.about-coin--two { right: 2%; bottom: 10%; }
.about-cta p { margin: 14px 0 20px; }
.about-button {
  display: inline-flex;
  gap: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  color: #142136;
  background: #f3cc76;
  text-decoration: none;
  font-weight: 800;
}
.about-page :is(a, summary):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .about-page [data-about-reveal="left"] { --about-enter-x: -44px; }
  .about-page [data-about-reveal="right"] { --about-enter-x: 44px; }
  .about-page [data-about-reveal="up"] { --about-enter-y: 34px; }
  .about-page .about-entered { animation: about-enter .72s cubic-bezier(.2,.65,.28,1) both; }
  .about-city:nth-child(2).about-entered { animation-delay: .12s; }
  .about-city:nth-child(3).about-entered { animation-delay: .24s; }
  .about-city:nth-child(4).about-entered { animation-delay: .36s; }
  .about-city:nth-child(5).about-entered { animation-delay: .48s; }
  .about-city summary:not(:hover) .about-hotspot { animation: about-hotspot-pulse 2.8s ease-out infinite; }
  .about-city details[open] .about-hotspot { animation: none; }
  .about-coin { animation: about-float 4s ease-in-out infinite; }
  .about-coin--two { animation-delay: -2s; }
}
@keyframes about-enter {
  from { opacity: 0; translate: var(--about-enter-x, 0) var(--about-enter-y, 0); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes about-float {
  50% { transform: translateY(-11px) rotate(9deg); }
}
@keyframes about-hotspot-pulse {
  50% { box-shadow: 0 0 0 7px #f6ce7440, 0 0 20px #f6ce7490; }
}
@media (max-width: 900px) {
  .about-page { margin-top: -70px; }
}
@media (max-width: 740px) {
  .about-inner { width: min(100% - 32px, 540px); }
  .about-story > .about-inner { width: min(100% - 32px, 540px); }
  .about-hero-layout { min-height: 66svh; padding-block: 94px 52px; }
  .about-hero-copy p:not(.about-caption) { margin-inline: auto; }
  .about-story-plane { top: 0; right: 8px; width: 94px; }
  .about-story-balloon { opacity: .18; }
  .about-spirit-layout, .about-concept-layout, .about-protection-layout, .about-cta-layout, .about-city-grid { grid-template-columns: 1fr; }
  .about-city, .about-city--table, .about-city--lottery { grid-column: auto; }
  .about-city img { aspect-ratio: 2 / 1; }
  .about-cta-art { grid-row: 1; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-pillars article { min-height: 0; }
}
a { color: #15634b; }
header { background: #fff; border-bottom: 1px solid #d9e1dc; }
nav, main { width: min(860px, calc(100% - 32px)); margin-inline: auto; }
nav { display: flex; justify-content: space-between; align-items: center; min-height: 66px; }
nav a, .article-row h2 a { text-decoration: none; }
a:hover { text-decoration: underline; }
.brand { font-size: 1.3rem; font-weight: 800; color: #17231e; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 16px 20px 0;
  background: transparent;
  border: 0;
}
.site-nav {
  width: 100%;
  min-height: 68px;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 30px);
  padding: 9px 14px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 8px #142b4d20, 0 12px 28px #142b4d24;
}
.site-nav .brand { display: block; flex: none; margin-inline-end: auto; }
.site-nav .brand img { display: block; width: clamp(116px, 11vw, 152px); height: auto; }
.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.site-nav :is(.site-nav-links, .site-menu-links) :is(a, .site-nav-group > summary) {
  color: #006dc6;
  font-size: .95rem;
  font-weight: 750;
  white-space: nowrap;
}
.site-nav-group { position: relative; }
.site-nav-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}
.site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav-chevron {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}
.site-nav-group[open] > summary .site-nav-chevron { transform: rotate(225deg); }
.site-nav :is(.site-nav-links, .site-menu-links) :is(a:hover, .site-nav-group > summary:hover),
.site-nav .site-nav-group[open] > summary {
  color: #007eac;
  text-decoration: none;
}
.site-nav-dropdown {
  display: grid;
  padding: 5px 0;
}
.site-nav-links .site-nav-dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: -10px;
  min-width: 154px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px #12346426;
}
.site-nav .site-nav-dropdown a {
  display: block;
  padding: 10px 18px;
  border-radius: 8px;
  color: #007eac;
  font-weight: 500;
}
.site-nav .site-nav-dropdown a:hover, .site-nav .site-nav-dropdown a:focus-visible {
  background: #eaf7ff;
}
.site-nav :is(a, summary):focus-visible {
  outline: 2px solid #007eac;
  outline-offset: 2px;
}
.site-nav .site-nav-admin {
  flex: none;
  padding: 6px 15px;
  border-radius: 999px;
  background: #075eaf;
  color: #fff;
  font-size: .9rem;
  font-weight: 750;
}
.site-nav .site-nav-admin:hover { background: #07477f; }
.site-menu { position: relative; flex: none; }
.site-menu > summary {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  border-radius: 6px;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary img { display: block; }
.site-menu-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 154px;
  padding: 8px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 20px #12346424;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}
.site-menu-links a { padding: 8px 10px; }
.site-menu-links .site-nav-group > summary { justify-content: space-between; padding-inline: 10px; }
.site-menu-links .site-nav-dropdown { margin-inline-start: 8px; }
.site-menu-toggle { color: #006dc6; font-size: 1.25rem; }
.site-nav > .site-menu { display: none; }
.site-member {
  position: relative; display: flex; align-items: center; gap: 6px;
  min-width: 0; white-space: nowrap; font-size: .92rem; font-weight: 700; color: #006dc6;
}
.site-member-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 6px 13px; border: 1px solid #c7def0;
  border-radius: 8px; background: #f5faff; color: #075b9c;
  font: inherit; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.site-member-button:hover { border-color: #a1c8e7; background: #e5f2ff; text-decoration: none; }
.site-member-button--login { border-color: #075eaf; background: #075eaf; color: #fff; }
.site-member-button--login:hover { border-color: #084a89; background: #084a89; }
.site-member-button:focus-visible, .member-line-button:focus-visible { outline: 2px solid #0579cd; outline-offset: 3px; }
.site-member-button:disabled, .member-line-button:disabled { opacity: .65; cursor: wait; }
.site-member-balance { background: #edf6ff; color: #075eaf; border-radius: 6px; padding: 4px 7px; }
.site-member-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.site-member-status:not(:empty) {
  position: absolute; inset: calc(100% + 12px) 0 auto auto; z-index: 2; padding: 8px;
  border-radius: 6px; background: #fff; box-shadow: 0 6px 20px #12346424;
}
body:has(.member-page) { background: #08111d; min-height: 100vh; }
.member-page { max-width: 450px; padding-block: clamp(32px, 7vw, 84px); }
.article-lock {
  padding: clamp(22px, 5vw, 42px);
  color: #eaf7ff;
  border: 1px solid #75caff70;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 100% 0, #3ba5e55c, transparent 62%),
    repeating-linear-gradient(130deg, transparent 0 28px, #95d9ff10 29px 30px),
    linear-gradient(135deg, #102e54ed, #071c3cf5);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px #cdeeff35, 0 14px 30px #142b4d38;
}
.reading .article-lock h2, .article-lock h2 {
  margin: 0 0 12px;
  color: #f4fbff;
  font-size: clamp(23px, 4vw, 31px);
  font-weight: 850;
  letter-spacing: .055em;
}
.article-lock p { color: #d6ebff; }
.reading .article-lock .primary, .article-lock .primary {
  color: #061a2e;
  background: linear-gradient(125deg, #a6eeff, #63baff);
  font-weight: 800;
  text-decoration: none;
}
.article-lock .primary:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.member-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: transparent; }
.member-dialog::backdrop { background: #050a13bc; backdrop-filter: blur(8px); }
.member-authorization-relay > :not([role="status"]) { display: none; }
.member-authorization-popup .member-authorization-relay { visibility: hidden; }
body:has(.member-authorization-popup) .site-footer { display: none; }
.member-panel {
  position: relative; padding: clamp(24px, 6vw, 34px); border: 1px solid #ffffff26;
  border-radius: 18px; color: #fff; background: linear-gradient(178deg, #151b25, #0b0e15);
  box-shadow: 0 18px 48px #0006, inset 0 1px #ffffff0c;
}
.member-panel :is(h1, h2) { margin: 0 32px 0 0; font-size: clamp(1.35rem, 5vw, 1.75rem); }
.member-panel p { margin: 10px 0 0; color: #bdc8d6; line-height: 1.6; }
.member-dialog-close {
  position: absolute; inset: 12px 12px auto auto; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff26; border-radius: 9px;
  background: #ffffff12; color: #fff; font-size: 1.25rem; cursor: pointer;
}
.member-dialog-close:hover { background: #ffffff26; }
.member-line-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px;
  margin-top: 24px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px;
  border-color: #55dc8e66; background: linear-gradient(180deg, #13854a, #08713a);
  color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
}
.member-line-button:hover { background: #066631; text-decoration: none; }
.member-panel .member-line-note, .member-panel [role="status"] { font-size: .875rem; }
.member-page-links, .article-lock-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 12px; }
.member-page-links { margin: 14px 0 0; }
.member-page-links .site-member-button { flex: 1; background: #ffffff0c; border-color: #ffffff26; color: #edf3fa; }
.member-page-links .site-member-button:hover { background: #ffffff1d; }
.article-lock [role="status"]:empty, .member-panel [role="status"]:empty { display: none; }
@media (max-width: 1260px) {
  .site-header { padding: 10px 12px 0; }
  .site-nav { min-height: 58px; padding: 6px 10px; gap: 8px; }
  .site-nav-links { display: none; }
  .site-nav > .site-menu { display: block; }
}
@media (max-width: 460px) {
  .site-nav .brand img { width: min(25vw, 116px); }
  .site-member { font-size: .8rem; gap: 4px; }
  .site-member-button { padding-inline: 8px; }
  .site-member-name { max-width: 16vw; }
  .site-member-balance { padding-inline: 5px; }
}
body:has(.baccarat-page) {
  position: relative;
  isolation: isolate;
  background: #051512;
}
body:has(.baccarat-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/baccarat-cards-background.jpg") center / cover no-repeat;
}
body:has(.baccarat-page)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 86px;
  z-index: -1;
  pointer-events: none;
  background: #051512;
}
@media (max-width: 860px) {
  body:has(.baccarat-page)::after { height: 70px; }
}
.baccarat-page {
  width: 100%;
  padding: 0;
}
.baccarat-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}
.baccarat-banner { position: relative; background: #051512; }
body:has(.slots-page)::before { background-image: url("/slots-coins-background.jpg"); }
body:has(.slots-page)::after, .slots-page .baccarat-banner { background-color: #100d20; }
.slots-page .slots-coin-section { background: rgb(28 38 95 / 95%); }
.slots-grid-heading { grid-column: 1 / -1; margin: 0; }
.slots-card { margin-top: 28px; }
.slots-art {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #120f24 url("/slots-guide.jpg") var(--art-x, 0%) var(--art-y, 0%) / 300% 300%;
}
.slots-art--reels, .slots-art--budget, .slots-art--voucher { --art-x: 50%; }
.slots-art--button, .slots-art--credit, .slots-art--bet { --art-x: 100%; }
.slots-art--lines, .slots-art--budget, .slots-art--credit { --art-y: 50%; }
.slots-art--trophy, .slots-art--voucher, .slots-art--bet { --art-y: 100%; }
.slots-guide-button, .slots-rng button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.slots-guide-button { margin-top: 16px; }
.slots-rng button:is(:hover, [aria-pressed="true"]):not(:disabled), .slots-guide-button:hover {
  background: #f1d490;
  color: #1c1631;
}
.slots-rng {
  max-width: 850px;
  margin-inline: auto;
}
.slots-rng-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 340px) 44px;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 3vw, 30px);
  margin: 24px 0 30px;
}
.slots-rng button.slots-rng-arrow { padding: 0; border: 0; font-size: 2rem; }
.slots-rng button:disabled { opacity: .42; cursor: default; }
.slots-rng button.slots-rng-arrow:disabled { visibility: hidden; }
.slots-rng-tabs {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.slots-rng-tabs progress {
  position: absolute;
  inset: calc(50% - 2px) 0 auto;
  width: 100%;
  height: 4px;
  border: none;
  appearance: none;
  background: #81749e;
}
.slots-rng-tabs progress::-webkit-progress-bar { background: #81749e; }
.slots-rng-tabs progress::-webkit-progress-value { background: #f1d490; }
.slots-rng-tabs progress::-moz-progress-bar { background: #f1d490; }
.slots-rng-tabs button { position: relative; border-radius: 50%; padding: 0; background: #1c1631; }
.slots-rng [data-rng-panel] > p { max-width: 640px; margin-inline: auto; }
.slots-rng-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 4vw, 38px);
  margin: 24px auto;
}
.slots-rng-caption { font-weight: 700; }
.slots-rng-grid, .slots-rng-equation output {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: clamp(4px, 1vw, 10px);
  border: 2px solid #bd904a;
  border-radius: 12px;
  background: linear-gradient(#362750, #120d24);
  box-shadow: 0 6px 20px #0005;
}
.slots-rng-grid span, .slots-rng-equation output span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12;
  border-radius: 4px;
  background: linear-gradient(#fff7e6, #e7cc9d);
  color: #29203b;
  font-size: clamp(.73rem, 2.3vw, 1.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.slots-rng-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 42px);
  max-width: 350px;
  margin: 22px auto;
  font-size: 2rem;
}
.slots-rng-equation output { grid-template-columns: 1fr; }
.slots-rng-equation output span { font-size: clamp(2.1rem, 7vw, 4rem); }
.slots-rng-actions { display: flex; justify-content: center; gap: 12px; }
.slots-rng-actions button[hidden] { display: none; }
.slots-rng button[data-rng-spin] { background: #f1d490; color: #1c1631; border-color: #f1d490; }
.slots-rng-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: no-preference) {
  .slots-rng .is-spinning output span { animation: slots-rng-roll 110ms linear 4; }
}
@keyframes slots-rng-roll {
  50% { opacity: .48; transform: translateY(3px); filter: blur(3px); }
}
@media (max-width: 560px) {
  .slots-rng-comparison { grid-template-columns: 1fr; max-width: 320px; }
}
.baccarat-intro {
  position: absolute;
  top: 50%;
  inset-inline-start: 44%;
  width: min(39%, 650px);
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 5px #000c;
}
.baccarat-intro h1 { margin: 0 0 .65em; font-size: clamp(1.9rem, 3.1vw, 3.65rem); }
.baccarat-intro p { margin: 0 0 18px; font-size: clamp(.9rem, 1.12vw, 1.06rem); line-height: 1.75; }
.baccarat-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.baccarat-actions :is(a, button) {
  display: inline-flex;
  min-height: 42px;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: #05151230;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.baccarat-actions a:hover { color: #13211b; background: #fff; text-shadow: none; }
.baccarat-actions button:disabled { cursor: default; }
@media (max-width: 840px) {
  .baccarat-intro {
    position: static;
    width: auto;
    transform: none;
    padding: 20px clamp(18px, 4vw, 36px) 26px;
  }
}
.baccarat-articles {
  padding: 12px 20px 18px;
  background: rgb(28 38 95 / 95%);
  color: #fff;
}
.baccarat-articles h2 {
  margin: 0 0 14px;
  color: inherit;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.baccarat-articles h2 a { color: inherit; }
.baccarat-carousel {
  --baccarat-gap: 18px;
  position: relative;
  max-width: 1140px;
  margin-inline: auto;
}
.baccarat-track {
  display: flex;
  gap: var(--baccarat-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.baccarat-track::-webkit-scrollbar { display: none; }
.baccarat-slide {
  display: block;
  flex: 0 0 calc((100% - 2 * var(--baccarat-gap)) / 3);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #101625;
  scroll-snap-align: start;
}
.baccarat-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.baccarat-slide:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.baccarat-track--1 { justify-content: center; }
.baccarat-track--2 .baccarat-slide { flex-basis: calc((100% - var(--baccarat-gap)) / 2); }
.baccarat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #11172acf;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
}
.baccarat-prev { left: 8px; }
.baccarat-next { right: 8px; }
.baccarat-arrow:hover { background: #080c1a; }
.baccarat-arrow:focus-visible { outline-color: #fff; }
.baccarat-empty { margin: 10px 0; text-align: center; color: #e1e6ff; }
.baccarat-guide {
  padding: clamp(26px, 4vw, 52px) 20px;
  background: #fff;
  color: #47566d;
  text-align: center;
}
.baccarat-guide-inner { max-width: 1026px; margin-inline: auto; }
.baccarat-guide h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  margin: 0 0 14px;
  color: #173577;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .12em;
}
.baccarat-guide h2::before, .baccarat-guide h2::after {
  content: "";
  height: 1px;
  background: #c4cad5;
}
.baccarat-guide p { margin: 4px 0; }
.baccarat-purpose {
  padding-block: clamp(30px, 4vw, 54px);
  background: rgb(28 38 95 / 95%);
  color: #fff;
}
.baccarat-purpose h2 { color: inherit; }
.baccarat-purpose h2::before, .baccarat-purpose h2::after { background: #ffffff99; }
.baccarat-purpose p { line-height: 1.65; letter-spacing: .08em; }
.baccarat-lesson {
  padding-block: clamp(34px, 4.8vw, 72px);
}
.baccarat-lesson-light { background: #f4f5f8; }
.baccarat-lesson-white { background: #fff; }
.baccarat-lesson-dark {
  background-color: #12291f;
  background-position: center;
  background-size: cover;
  color: #fff;
}
.baccarat-lesson-overview {
  background-image: linear-gradient(#081927a6, #081927c7), url("/baccarat-tutorial-overview.jpg");
}
.baccarat-lesson-round {
  background-image: linear-gradient(#081927b3, #081927c7), url("/baccarat-tutorial-round.jpg");
}
.baccarat-lesson-variations {
  background-image: linear-gradient(#081927a6, #081927c7), url("/baccarat-tutorial-variations.jpg");
}
.baccarat-lesson-dark h2, .baccarat-lesson-dark h3 { color: inherit; }
.baccarat-lesson-dark h2::before, .baccarat-lesson-dark h2::after { background: #ffffff80; }
.baccarat-lesson h3 {
  margin: 0 0 9px;
  color: #173577;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}
.baccarat-lesson-dark h3 { color: #fff; }
.baccarat-lesson p { margin-block: 0 8px; line-height: 1.75; }
.baccarat-lesson-grid, .baccarat-lesson-split {
  display: grid;
  gap: clamp(20px, 3vw, 42px);
  margin-top: 24px;
  text-align: start;
}
.baccarat-lesson-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.baccarat-lesson-grid--2, .baccarat-lesson-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.baccarat-lesson-group {
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
}
.baccarat-lesson-group > .baccarat-lesson-grid:first-child { margin-top: 0; }
.baccarat-lesson-grid--3 article { min-width: 0; }
.baccarat-lesson-grid img, .baccarat-lesson-split img, .baccarat-lesson-workflow img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.baccarat-lesson-grid img { max-width: 220px; margin: 0 0 15px; }
.baccarat-lesson-split { align-items: center; margin-top: 0; }
.baccarat-lesson-split img { max-width: 330px; margin-inline: auto; }
.baccarat-lesson-workflow {
  display: grid;
  gap: 12px;
  max-width: 700px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.baccarat-lesson-workflow li {
  display: grid;
  grid-template-columns: minmax(80px, 132px) 2.2rem minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #0d1b29b3;
  text-align: start;
}
.baccarat-lesson-workflow li > span {
  color: #ffdf91;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}
.baccarat-lesson-workflow p { margin: 0; }
.baccarat-lesson-round-copy { margin-top: 26px; text-align: start; }
.baccarat-lesson-round-copy .baccarat-lesson-grid { margin-top: 10px; }
.baccarat-lesson-round { padding-bottom: clamp(94px, 7vw, 128px); }
.baccarat-round-rules {
  display: flow-root;
  padding-block: 0;
}
.baccarat-round-card {
  position: relative;
  max-width: 1170px;
  min-height: 278px;
  margin-top: -50px;
  padding: 44px clamp(24px, 4.2vw, 60px) 56px;
  background: #fff;
}
.baccarat-round-card .baccarat-lesson-grid {
  gap: clamp(24px, 4.7vw, 90px);
  margin-top: 0;
}
.baccarat-round-card h3 { margin-bottom: 24px; color: #06477a; }
.baccarat-round-card p { color: #33485f; }
@media (max-width: 650px) {
  .baccarat-round-card { margin-top: -30px; padding: 24px; }
  .baccarat-round-card h3 { margin-bottom: 10px; }
}
.baccarat-lesson li + li { margin-top: .35em; }
.baccarat-lesson-workflow li + li { margin-top: 0; }
.baccarat-lesson-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 700;
}
.baccarat-lesson-finish a { color: #173577; }
@media (max-width: 650px) {
  .baccarat-lesson-grid--2, .baccarat-lesson-grid--3, .baccarat-lesson-split { grid-template-columns: minmax(0, 1fr); }
  .baccarat-lesson-grid--3 article { text-align: center; }
  .baccarat-lesson-grid--3 img { margin-inline: auto; }
  .baccarat-lesson-workflow li { grid-template-columns: 72px 1.4rem minmax(0, 1fr); gap: 8px; }
}
.baccarat-steps > .baccarat-guide-inner > p { letter-spacing: .08em; }
.baccarat-steps-carousel { position: relative; margin: 40px auto 24px; }
.baccarat-steps-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.baccarat-steps-track::-webkit-scrollbar { display: none; }
.baccarat-step {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 232px) minmax(0, 390px);
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-inline: 50px;
  scroll-snap-align: start;
  text-align: start;
}
.baccarat-step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #dce2ec;
  border-radius: 50%;
}
.baccarat-step h3 { margin: 0 0 10px; color: #173577; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.baccarat-step p { font-size: .94rem; line-height: 1.75; }
.baccarat-step-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111b2e;
  font-size: 2.2rem;
  line-height: 1;
}
.baccarat-step-arrow:hover { background: #eef3fb; }
.baccarat-step-prev { left: 0; }
.baccarat-step-next { right: 0; }
.baccarat-step-dots { display: flex; justify-content: center; }
.baccarat-step-dots button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
.baccarat-step-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #17233b;
}
.baccarat-step-dots button[aria-current]::before { background: #3469ff; }
@media (max-width: 600px) {
  .baccarat-steps-carousel { margin-top: 24px; }
  .baccarat-step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .baccarat-step img { max-width: 160px; margin-inline: auto; }
  .baccarat-step div { text-align: center; }
}
.baccarat-guide-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px auto 0;
  border-radius: 9px;
  background: #101526;
  object-fit: contain;
}
@media (width > 840px) {
  .baccarat-hero {
    /* Reserve space for the sticky header, carousel title and one row of covers. */
    --cover-height: calc((min(1140px, 100vw - 40px) - 36px) * 3 / 16);
    max-height: max(240px, calc(100svh - 175px - var(--cover-height)));
    object-fit: cover;
    object-position: center 42%;
  }
}
@media (max-width: 840px) {
  .baccarat-slide { flex-basis: calc((100% - var(--baccarat-gap)) / 2); }
}
@media (max-width: 600px) {
  .baccarat-hero {
    height: clamp(250px, 68vw, 360px);
    object-fit: cover;
    object-position: 10% center;
  }
  .baccarat-track .baccarat-slide { flex-basis: 100%; }
}
main { padding-block: clamp(28px, 6vw, 66px); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.2; margin: 0 0 20px; overflow-wrap: anywhere; }
h2, h3 { line-height: 1.35; }
time, .muted, figcaption { color: #52635a; font-size: .9rem; }
.article-row { border-block-end: 1px solid #d9e1dc; padding-block: 18px; }
.article-row h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 24px; }
article > .prose { margin-top: 25px; border-top: 1px solid #d9e1dc; padding-top: 14px; }
.prose { line-height: 1.85; overflow-wrap: anywhere; }
.prose figure { margin: 1.5rem 0; }
.prose img { display: block; max-width: 100%; height: auto; }
.prose figcaption { margin-top: 8px; }
.prose figcaption:empty { display: none; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid #87ad9c; }
.prose h2[data-match-heading] {
  margin: 34px 0 18px;
  padding: 12px 18px;
  border-left: 4px solid #c69a43;
  border-radius: 4px;
  background: linear-gradient(90deg, #08172f, #0e325c);
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.4;
}
[data-article-block="match-pick"] {
  max-width: 38rem;
  margin: 32px 0;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #344964;
  border-radius: 18px;
  background: linear-gradient(150deg, #162943, #0b1424 75%);
  box-shadow: 0 10px 24px #09152b25;
  color: #f8faff;
  line-height: 1.5;
}
[data-article-block="match-pick"] h3,
[data-article-block="match-pick"] h4 {
  margin: 0 0 8px;
  color: inherit;
}
[data-article-block="match-pick"] h3 { color: #ffda86; font-size: 1.45rem; }
[data-article-block="match-pick"] h3::after {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 4px 0 11px;
  background: linear-gradient(90deg, #ffca69, transparent);
  content: "";
}
[data-article-block="match-pick"] h4 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
[data-article-block="match-pick"] p { margin: 5px 0; color: #f8faff; }
[data-article-block="match-pick"] [data-pick-part="meta"] { color: #c3d4e8; font-size: .875rem; }
[data-pick-part="row"] {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #38516e;
  border-radius: 10px;
  background: #1a2c44;
}
[data-pick-part="rating"] {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
}
[data-pick-part="rating"] > span:first-child { color: #aabbd0; }
[data-pick-part="rating"] strong { color: #ffda86; }
[data-pick-part="stars"] {
  position: absolute;
  inset-inline-start: 0;
  color: #ffc43d;
  clip-path: inset(0 calc(100% - var(--rating-width, 0%)) 0 0);
}
.prose :is(h2, h3)[data-line-style="rule"] {
  padding-bottom: .5em;
  border-bottom: 3px solid #288dff;
  color: #102d4c;
  text-decoration: none;
}
.prose :is(h2, h3)[data-line-style="panel"] {
  padding: .42em .62em;
  border-inline-start: 3px solid #288dff;
  background: #c9edff;
  color: #102d4c;
  text-decoration: none;
}
.prose ol { padding-inline-start: 2.1em; }
.prose ol > li + li { margin-top: .22em; }
form > label { display: block; font-weight: 650; margin-block: 18px 6px; }
input, button, select { font: inherit; color: inherit; }
#title, .editor { width: 100%; border: 1px solid #bac8bf; border-radius: 8px; background: #fff; }
#title { padding: 11px 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #edf2ee; border-bottom: 1px solid #bac8bf; border-radius: 8px 8px 0 0; }
button, select, .color { border: 1px solid #bac8bf; border-radius: 5px; background: #fff; padding: 5px 9px; }
button { cursor: pointer; }
.color { display: inline-flex; align-items: center; gap: 6px; }
.color input { width: 28px; padding: 1px; }
#content { min-height: 280px; padding: 16px; }
#content:empty::before { content: "在這裡撰寫文章…"; color: #69796f; pointer-events: none; }
#status:empty { display: none; }
#status { color: #9a311f; }
.publish { margin-top: 18px; background: #15634b; color: #fff; padding: 9px 18px; border-color: #15634b; }
.publish:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #15634b; outline-offset: 2px; }

:root { background: #f5f6f3; }
[hidden] { display: none !important; }
nav { width: min(1240px, calc(100% - 40px)); }
main { width: min(1040px, calc(100% - 40px)); }
.workspace { width: min(1240px, calc(100% - 40px)); padding-top: 28px; }
.masthead { padding: 28px 0 32px; border-bottom: 2px solid #21382c; margin-bottom: 24px; }
.masthead h1 { font-family: Georgia, "Microsoft JhengHei", serif; font-size: clamp(2.3rem, 6vw, 4rem); }
input[type="search"], #subtitle, aside input, textarea {
  background: #fff; border: 1px solid #bac8bf; border-radius: 6px; padding: 8px 10px;
}
textarea { font: inherit; color: inherit; resize: vertical; min-height: 76px; }
.masthead input, .filters input { width: min(100%, 320px); margin-right: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.article-row { background: white; border: 1px solid #d9e1dc; border-radius: 10px; padding: 0; overflow: hidden; }
.article-row img, #cover-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101625;
}
.article-row img { display: block; }
#cover-preview { max-width: 360px; }
.card-copy { padding: 22px; }
.card-copy p:empty, .card-copy small:empty, .dek:empty { display: none; }
body:has(.archive-page) {
  background: #0b2a5a url("/archive-background.jpg") center / cover no-repeat fixed;
}
.archive-page {
  width: min(1220px, calc(100% - 48px));
  padding-top: clamp(28px, 4vw, 58px);
  color: #f7faff;
}
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 296px);
  grid-template-areas: "heading ." "articles search" "articles latest";
  grid-template-rows: auto auto 1fr;
  gap: 18px clamp(24px, 3vw, 42px);
  align-items: start;
}
.archive-main { grid-area: articles; }
.archive-search.article-search {
  grid-area: search;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.archive-sidebar { grid-area: latest; }
.archive-heading {
  grid-area: heading;
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  scroll-margin-top: 105px;
}
.archive-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.archive-cards .article-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #14233b;
  border: 3px solid #fff;
  border-radius: 16px;
}
.archive-cover { display: block; }
.archive-ad-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.archive-ad-link img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: contain; }
.archive-ad-link:hover h2 { color: #075eaf; }
.archive-ad-link p { white-space: pre-line; overflow-wrap: anywhere; }
.archive-cards .card-copy { flex: 1; padding: 16px 17px; }
.archive-cards .card-copy small { display: block; color: #49607d; font-size: .75rem; margin-bottom: 4px; }
.archive-cards .card-copy small:empty { display: none; }
.archive-cards .article-row h2 { font-size: clamp(1rem, 1.7vw, 1.23rem); }
.archive-cards .article-row h2 a { color: #14233b; }
.archive-cards .article-row h2 a:hover { color: #075eaf; }
.archive-cards .card-copy p { margin: 8px 0 0; font-size: .9rem; color: #52627a; overflow-wrap: anywhere; }
.archive-cards .article-row footer { border-top: 1px solid #e2e8f1; padding: 8px 17px; }
.archive-cards time { color: #4d6483; font-size: .8rem; }
.archive-empty { grid-column: 1 / -1; padding: 16px; border-radius: 8px; background: #102d59; }
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-size: .88rem;
}
.archive-pagination button {
  min-height: 36px;
  padding-inline: 10px;
  color: #123562;
  background: #f7faff;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
}
.archive-pagination button:hover:not(:disabled) { background: #deedff; }
.archive-pagination button:disabled { opacity: .58; cursor: default; }
.archive-sidebar h2 {
  margin: 2px 0 12px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid #ffcf69;
  color: #ffda85;
  font-size: 1.2rem;
}
.archive-sidebar ul { margin: 0; padding: 0; list-style: none; }
.archive-sidebar li { padding-block: 10px; border-bottom: 1px solid #ffffff30; }
.archive-sidebar a { color: inherit; text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.archive-sidebar a:hover { text-decoration: underline; text-underline-offset: .2em; }
.archive-sidebar time { display: block; color: #c8ddfa; font-size: .78rem; margin-top: 2px; }
.archive-page :focus-visible { outline: 2px solid #ffcf69; outline-offset: 2px; }
.archive-cards :focus-visible { outline-color: #075eaf; outline-offset: -2px; }
@media (max-width: 850px) {
  .archive-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "search" "articles" "latest";
    grid-template-rows: auto;
  }
}
@media (max-width: 530px) {
  .archive-page { width: calc(100% - 28px); }
  .archive-cards { grid-template-columns: minmax(0, 1fr); }
}
small { color: #15634b; font-weight: 700; }
.reading { max-width: 760px; margin-inline: auto; }
.reading h1 { margin-top: 8px; }
.dek { font-size: 1.2rem; color: #42584d; }
.byline { display: flex; gap: 10px; flex-wrap: wrap; }
.reading footer { border-top: 1px solid #d9e1dc; margin-top: 28px; padding-top: 8px; overflow-wrap: anywhere; }
.reading footer a { display: block; }
body:has(.article-page) {
  background: #fff;
}
body:has(.article-page[data-theme="sports"]) {
  background: #f7f9fc url("/sports-page-bg.jpg?v=abstract") center / cover no-repeat fixed;
}
.article-page {
  width: 100%;
  padding-top: clamp(24px, 5vw, 56px);
}
.article-page[data-theme="sports"] {
  padding-top: 0;
}
.article-hero {
  height: clamp(130px, 20vw, 300px);
  margin-bottom: 40px;
  background: url("/sports-background.jpg") center 54% / min(100%, 1920px) auto no-repeat;
  mask-image: linear-gradient(to bottom, #000 64%, #000b 78%, transparent 100%);
}
@media (max-width: 820px) {
  .article-hero { height: calc(100vw / 3); }
}
.article-main, .article-latest {
  position: relative;
}
[data-theme="sports"] .article-main::before, [data-theme="sports"] .article-latest::after {
  content: "";
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  width: clamp(54px, 5.2vw, 78px);
  aspect-ratio: 1;
  background: url("/sports-balls.png") var(--ball-position) center / 200% 100% no-repeat;
  filter: drop-shadow(0 5px 6px #1e3f6b35);
  animation: article-ball-float 3.8s ease-in-out infinite alternate;
}
[data-theme="sports"] .article-main::before {
  --ball-position: right;
  --ball-angle: -16deg;
  top: -32px;
  left: -33px;
}
[data-theme="sports"] .article-latest::after {
  --ball-position: left;
  --ball-angle: 18deg;
  top: -29px;
  right: -28px;
  animation-delay: -1.6s;
}
@keyframes article-ball-float {
  from { transform: translateY(0) rotate(var(--ball-angle)); }
  to { transform: translateY(-8px) rotate(calc(var(--ball-angle) + 18deg)); }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="sports"] .article-main::before, [data-theme="sports"] .article-latest::after {
    animation: none;
    transform: rotate(var(--ball-angle));
  }
}
.article-layout {
  display: grid;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  align-items: start;
  gap: clamp(24px, 3vw, 44px);
}
.article-main .reading {
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4vw, 56px);
  background: #fff;
  color: #182538;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  box-shadow: 0 8px 24px #16355d0e;
}
[data-theme="sports"] .article-main .reading {
  background: linear-gradient(115deg, #164f91 0 70%, #e46a24 70% 83%, #157755 83%) top / 100% 4px no-repeat, #fff;
}
.article-main h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.022em;
  text-wrap: pretty;
}
.article-main .dek { color: #45566d; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.article-main .byline { align-items: baseline; font-size: .875rem; color: #475a73; }
.article-main .byline span { color: #243c5e; font-weight: 750; }
.article-main .prose {
  margin-top: 24px;
  padding-top: 18px;
  border-color: #dce5f0;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.article-main .prose :is(h2, h3) { margin-block: 1.65em .55em; }
.article-main .prose [data-article-block="match-pick"] > h3 { margin-block: 0 8px; }
.article-main .prose h2 { font-size: 1.45em; }
.article-main .prose figure { margin-block: 1.75rem; }
.article-main .prose figure img { border-radius: 9px; }
.article-sidebar { display: grid; gap: 18px; }
.article-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.article-ad:not([hidden]) {
  display: block;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  color: #182538;
  text-decoration: none;
  box-shadow: 0 8px 24px #16355d22;
}
.article-ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  object-fit: contain;
}
[data-theme="sports"] .article-sidebar { gap: 36px; }
.article-search, .article-latest {
  background: #fff;
  color: #182538;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 8px 24px #16355d0e;
}
.article-search { display: flex; gap: 8px; }
.article-search input[type="search"] {
  min-width: 0;
  width: 100%;
  color: #182538;
  background: #f7f9fc;
  border-color: #ccd8e7;
  border-radius: 8px;
}
.article-search input::placeholder { color: #51647c; }
.article-search button {
  flex-shrink: 0;
  padding-inline: 12px;
  color: #fff;
  background: #164f91;
  border-color: #164f91;
  border-radius: 8px;
  font-weight: 750;
}
.article-search button:hover { background: #103e75; }
.article-latest h2 { margin: 0 0 9px; padding-left: 10px; border-left: 3px solid #e46a24; font-size: 1.2rem; }
.article-latest ul { margin: 0; padding: 0; list-style: none; }
.article-latest li + li { border-top: 1px solid #e3eaf3; }
.article-latest a { display: block; padding-block: 13px; color: inherit; font-size: .94rem; line-height: 1.55; text-decoration: none; overflow-wrap: anywhere; }
.article-latest a:hover { color: #164f91; text-decoration: underline; text-underline-offset: .2em; }
.article-latest a[aria-current="page"] { color: #164f91; font-weight: 750; }
.article-sidebar :focus-visible { outline-color: #164f91; }
body:has(.article-page[data-theme="news"]) {
  background: #f8f6f2 url("/news-page-bg.jpg") center / cover no-repeat fixed;
}
.article-page[data-theme="news"] {
  --news-ink: #243449;
  --news-red: #813542;
  --news-border: #e3ded6;
  --news-shadow: 0 6px 18px #30241c0a;
}
[data-theme="news"] .article-main .reading,
[data-theme="news"] :is(.article-search, .article-latest) {
  border-color: var(--news-border);
  border-radius: 7px;
  box-shadow: var(--news-shadow);
}
[data-theme="news"] .article-main .reading {
  border-top: 3px solid var(--news-ink);
}
[data-theme="news"] .article-main h1 { color: var(--news-ink); }
[data-theme="news"] .article-sidebar { gap: 30px; }
[data-theme="news"] .article-search input[type="search"] {
  background: #faf9f6;
  border-color: var(--news-border);
}
[data-theme="news"] .article-search button {
  background: var(--news-ink);
  border-color: var(--news-ink);
}
[data-theme="news"] .article-search button:hover { background: #374a63; }
[data-theme="news"] .article-latest h2 {
  color: var(--news-ink);
  border-left-color: var(--news-red);
}
[data-theme="news"] .article-latest li + li { border-top-color: var(--news-border); }
[data-theme="news"] .article-latest a:is(:hover, [aria-current="page"]) { color: var(--news-red); }
[data-theme="news"] .article-latest::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -8px;
  z-index: 1000;
  width: clamp(52px, 5vw, 76px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/news-paper.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 4px #30241c33);
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="news"] .article-latest::after {
    animation: article-paper-float 4.4s ease-in-out infinite alternate;
  }
}
@keyframes article-paper-float {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-6px) rotate(4deg); }
}
body:has(.article-page[data-theme="classroom"]) {
  background: #18352e url("/classroom-page-bg.jpg") center / cover no-repeat fixed;
}
.article-page[data-theme="classroom"] {
  --note-green: #285847;
  --note-ink: #213b32;
  --note-paper: #fffdf5;
  --note-rule: #d8d7c0;
}
[data-theme="classroom"] .article-main .reading,
[data-theme="classroom"] :is(.article-search, .article-latest) {
  background: var(--note-paper);
  border-color: var(--note-rule);
  box-shadow: 0 8px 20px #071e1740;
}
[data-theme="classroom"] .article-main .reading {
  color: var(--note-ink);
  border-top: 5px solid var(--note-green);
  background: var(--note-paper) url("/classroom-notebook.jpg?v=margin-rules") left top / 100% 32rem repeat-y;
  padding-inline: 9%;
}
[data-theme="classroom"] .article-main::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -8px;
  z-index: 1000;
  width: clamp(48px, 5vw, 76px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/classroom-whistle.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 4px #14251b45);
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="classroom"] .article-main::before {
    animation: article-paper-float 4.4s ease-in-out infinite alternate;
  }
}
[data-theme="classroom"] .article-main .prose {
  border-top-color: var(--note-rule);
  line-height: 2rem;
}
[data-theme="classroom"] .prose :is(h2, h3) {
  color: var(--note-green);
  text-decoration: underline;
  text-decoration-color: #b5c9ac;
  text-underline-offset: .24em;
}
[data-theme="classroom"] .prose li::marker { color: var(--note-green); }
[data-theme="classroom"] .prose :is(blockquote, .article-takeaway) {
  background: #f3ebc8;
  padding: 10px 14px;
  border-inline-start: 3px solid #a58b42;
}
[data-theme="classroom"] .article-search input[type="search"] {
  background: #fbfaf0;
  border-color: var(--note-rule);
}
[data-theme="classroom"] .article-search button {
  background: var(--note-green);
  border-color: var(--note-green);
}
[data-theme="classroom"] .article-search button:hover { background: #1a4335; }
[data-theme="classroom"] .article-latest h2 {
  color: var(--note-ink);
  border-left-color: var(--note-green);
}
[data-theme="classroom"] .article-latest li + li { border-top-color: var(--note-rule); }
[data-theme="classroom"] .article-latest a:is(:hover, [aria-current="page"]) { color: var(--note-green); }
body:has(.article-page[data-theme="gaming"]) {
  background: #170e33 url("/gaming-page-bg.jpg") center / cover no-repeat fixed;
}
.article-page[data-theme="gaming"] {
  --gaming-panel: #17132c;
  --gaming-border: #70609a;
  --gaming-cyan: #8ae9fa;
  --gaming-pink: #ff8acb;
  --gaming-text: #f5efff;
  padding-top: clamp(40px, 5vw, 66px);
}
[data-theme="gaming"] .article-main .reading,
[data-theme="gaming"] :is(.article-search, .article-latest) {
  color: var(--gaming-text);
  border-color: var(--gaming-border);
  border-radius: 12px;
  background: var(--gaming-panel);
  box-shadow: 0 8px 28px #0b061b73, 0 0 16px #b752dd26;
}
[data-theme="gaming"] .article-main .reading {
  background: linear-gradient(100deg, #4be5f4, #8647e9 52%, #ed509e) top / 100% 4px no-repeat, var(--gaming-panel);
}
[data-theme="gaming"] .article-main .prose {
  border: 1px solid #e6e0f7;
  border-radius: 8px;
  background: #fcfaff;
  color: #241a35;
  padding: clamp(14px, 2.5vw, 24px);
}
[data-theme="gaming"] :is(.dek, .byline, .byline time) { color: #cfc5e7; }
[data-theme="gaming"] :is(.byline span, .reading footer a) { color: var(--gaming-cyan); }
[data-theme="gaming"] .reading footer { border-color: var(--gaming-border); color: var(--gaming-text); }
[data-theme="gaming"] .article-search input[type="search"] {
  background: #241c40;
  border-color: var(--gaming-border);
  color: var(--gaming-text);
}
[data-theme="gaming"] .article-search input::placeholder { color: #d2c7e8; }
[data-theme="gaming"] .article-search button {
  background: var(--gaming-cyan);
  border-color: var(--gaming-cyan);
  color: #18142b;
}
[data-theme="gaming"] .article-search button:hover { background: #b5f5ff; }
[data-theme="gaming"] .article-latest h2 { color: var(--gaming-pink); border-left-color: var(--gaming-pink); }
[data-theme="gaming"] .article-latest li + li { border-top-color: #ffffff25; }
[data-theme="gaming"] .article-latest a:is(:hover, [aria-current="page"]) { color: var(--gaming-cyan); }
[data-theme="gaming"] :focus-visible { outline-color: var(--gaming-pink); }
[data-theme="gaming"] .article-main::before {
  content: "";
  position: absolute;
  top: -33px;
  right: -9px;
  z-index: 1000;
  width: clamp(72px, 8vw, 110px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/gaming-controller.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 7px #2dceee66);
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="gaming"] .article-main::before {
    animation: article-paper-float 4.4s ease-in-out infinite alternate;
  }
}
@media (width > 820px) and (min-height: 450px) {
  .article-sidebar {
    align-self: stretch;
    align-content: start;
    grid-auto-rows: max-content;
  }
  .article-sidebar-sticky {
    position: sticky;
    top: 102px;
    z-index: 1;
    max-height: calc(100dvh - 122px);
  }
  .article-sidebar-sticky .article-ad {
    flex-shrink: 0;
    max-height: 55dvh;
    overflow-y: auto;
  }
  .article-sidebar-sticky .article-ad img { max-height: 24dvh; }
  .article-sidebar-sticky .article-latest:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .article-latest h2 { flex-shrink: 0; }
  .article-latest ul {
    overflow-y: auto;
    padding-inline: 4px;
    margin-inline: -4px;
  }
}
@media (max-width: 820px) {
  body:has(.article-page[data-theme="sports"]) { background-size: auto 100%; }
  [data-theme="sports"] .article-main::before { top: -31px; left: -9px; }
  [data-theme="sports"] .article-latest::after { top: -27px; right: -9px; }
  .article-layout { width: calc(100% - 28px); grid-template-columns: minmax(0, 1fr); }
}
.page-title, .filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.page-title h1 { margin: 0; }
.filters { justify-content: flex-start; margin: 22px 0 16px; }
.primary { background: #15634b; color: white; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.article-dashboard .page-title { margin-bottom: 20px; }
.ai-job-progress {
  max-width: 780px;
  margin: 0 18px 18px;
  padding: 18px;
  color: #182538;
  background: #f5f9ff;
  border: 1px solid #d7e5f5;
  border-radius: 12px;
}
.ai-job-progress h2 { margin: 0 0 12px; font-size: 1.15rem; }
.ai-job-progress h3 { margin: 16px 0 4px; font-size: 1rem; }
.ai-job-progress p { margin: 0; overflow-wrap: anywhere; }
.ai-progress-row {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr) 3.2em;
  align-items: center;
  gap: 10px;
  padding-block: 5px;
  font-variant-numeric: tabular-nums;
}
.ai-progress-row progress { width: 100%; height: 12px; accent-color: #1762ac; }
.ai-progress-row span:last-child { text-align: right; }
.ai-generation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ai-generation-panel { min-width: 0; }
.ai-news-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 16px; }
.ai-news-results:empty { display: none; }
.ai-news-card { min-width: 0; padding: 14px; overflow-wrap: anywhere; }
.ai-news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ai-news-card h3 { font-size: 1rem; margin: 10px 0 6px; }
.ai-news-card p { font-size: .86rem; color: #52617a; }
.ai-news-card button { padding: 8px 13px; }
.ai-generation-panel > h2, .ai-generation-history > h2 {
  margin: 0;
  padding: 17px 20px;
  border-bottom: 1px solid var(--admin-line);
  font-size: 1.12rem;
}
.ai-generation-panel > .filters { min-height: 100px; align-content: center; }
.ai-publication-schedule { margin: 0 16px 12px; color: #52617a; font-size: .875rem; line-height: 1.5; }
.ai-generation-panel .ai-job-progress { max-width: none; margin: 0 16px 16px; }
.ai-generation-panel .ai-job-progress h3:first-child { margin-top: 0; }
.ai-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ai-progress-header h3 { margin: 0; }
.ai-progress-header time {
  padding: 4px 9px;
  border-radius: 7px;
  background: #e3edf9;
  color: #174b84;
  font: 650 .9rem/1.4 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.ai-generation-panel .ai-job-progress a { display: inline-block; margin-top: 10px; }
.ai-generation-history { margin-top: 20px; }
.ai-generation-history > p { padding-inline: 20px; color: #8e2828; }
.ai-generation-history > p:empty { display: none; }
[data-ai-history] { list-style: none; margin: 0; padding: 0; }
[data-ai-history] > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 20px;
  overflow-wrap: anywhere;
}
[data-ai-history] > li + li { border-top: 1px solid var(--admin-line); }
[data-ai-history] p { margin: 4px 0 0; color: #52617a; }
.ai-job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
[data-ai-panel-actions]:not(:empty) { margin-top: 12px; }
.ai-job-actions button { min-height: var(--admin-control-height); padding: 8px 12px; }
[data-ai-history] .ai-job-actions button:nth-child(2) { color: #a12639; }
.ai-job-actions button:last-child:not(:only-child):enabled { color: #fff; background: #1762ac; border-color: #1762ac; }
.ai-job-actions .ai-job-cancel { color: #a12639; border-color: #e9bbc1; background: #fff5f5; }
.ai-job-progress .ai-job-action-notice { margin-top: 8px; color: #8e2828; font-size: .875rem; }
.ai-job-detail {
  width: min(760px, calc(100% - 28px));
  max-height: min(84dvh, 860px);
  padding: 0;
  overflow: auto;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  box-shadow: 0 24px 80px #10233f55;
  color: #172a46;
  background: #fff;
}
.ai-job-detail::backdrop { background: #11264270; }
.ai-job-detail > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid #dce5f1;
  background: #f5f8fc;
}
.ai-job-detail > header h2 { margin: 0; font-size: 1rem; }
.ai-job-detail > header button { min-height: 40px; padding: 7px 14px; }
.ai-job-detail > [data-ai-detail] {
  display: block;
  padding: clamp(16px, 3vw, 30px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.ai-job-detail [data-ai-detail] > h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; }
.ai-job-detail [data-ai-detail] > h4 { margin: 22px 0 6px; font-size: 1.03rem; }
.ai-job-detail [data-ai-detail] > p { margin: 0 0 14px; white-space: pre-line; }
.ai-job-detail [data-ai-detail] > h3 + p { padding: 8px 12px; border-radius: 8px; color: #385878; background: #edf4fc; font-size: .875rem; }
@media (max-width: 1100px) {
  .ai-generation-grid { grid-template-columns: minmax(0, 1fr); }
  [data-ai-history] > li { grid-template-columns: minmax(0, 1fr); }
}
.admin-shell {
  --admin-line: #d8e3f0;
  --admin-ink: #162c4b;
  --admin-muted: #4e6581;
  --admin-card-shadow: 0 5px 20px rgba(21, 55, 94, .055);
  --admin-control-height: 42px;
  --admin-control-radius: 8px;
  --admin-control-edge: #c9d6e8;
  display: grid;
  grid-template-columns: clamp(212px, 16vw, 256px) minmax(0, 1fr);
  min-height: 100dvh;
  color: var(--admin-ink);
  background: linear-gradient(145deg, #ebf2fb 0, #f5f8fc 420px);
}
.admin-shell > main { min-width: 0; }
.admin-shell > .workspace {
  width: min(1440px, calc(100% - clamp(32px, 5vw, 80px)));
  margin-inline: auto;
  padding-block: clamp(24px, 3vw, 42px);
}
.admin-shell .article-dashboard .page-title {
  gap: 12px 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-line);
}
.admin-shell .page-title h1 { font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.22; }
.admin-shell :is(.admin-articles, .admin-form, .admin-category-form, .analytics-card, .ai-generation-panel, .ai-generation-history, .ai-media-history) {
  min-width: 0;
  border-color: var(--admin-line);
  border-radius: 14px;
  box-shadow: var(--admin-card-shadow);
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  align-self: start;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: linear-gradient(168deg, #142b4a, #101e34 72%);
  color: #e4edfb;
}
.admin-brand {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 2px 10px 16px;
  border-bottom: 1px solid #ffffff24;
  color: #b8cbe6;
  font-size: .8rem;
}
.admin-brand img { display: block; object-fit: contain; max-width: 100%; }
.admin-sidebar nav {
  display: grid;
  width: 100%;
  min-height: 0;
  margin: 0;
  align-content: start;
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  overflow-y: auto;
  padding-block: 14px;
}
.admin-sidebar .admin-nav-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.admin-sidebar :is(a, summary) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  font-size: .9rem;
  text-decoration: none;
}
.admin-sidebar summary {
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: #f2f6fc;
  font-weight: 680;
}
.admin-sidebar summary::-webkit-details-marker { display: none; }
.admin-sidebar summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.admin-nav-group[open] summary::after { transform: rotate(45deg); }
.admin-sidebar :is(a, summary):hover, .admin-nav-group[open] summary { background: #203a5b; }
.admin-sidebar .admin-nav-group[open] { background: #172d49; }
.admin-sidebar :is(a, summary):focus-visible { outline: 2px solid #9cc6ff; outline-offset: -2px; }
.admin-nav-links { display: grid; gap: 2px; margin: 4px 8px 8px 16px; padding-inline-start: 7px; border-inline-start: 1px solid #506b8d; }
.admin-sidebar .admin-nav-links a { min-height: 36px; color: #deebfa; }
.admin-sidebar nav > form { margin: 0; }
.admin-sidebar nav > form button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #607793;
  border-radius: 8px;
  color: #f1f6fe;
  background: transparent;
}
.admin-sidebar nav > form button:hover { background: #203a5b; }
.admin-sidebar a[aria-current="page"] { color: #fff; background: #235897; box-shadow: inset 3px 0 #8bc4ff; font-weight: 750; }
.admin-nav-group:has(a[aria-current="page"]) > summary { color: #a9d1ff; }
.admin-category-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 22px;
}
.admin-category-form {
  padding: 16px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}
.admin-category-form h2 { margin: 0 0 14px; font-size: 1.15rem; }
.admin-category-form label { display: grid; gap: 5px; margin-block: 0 13px; font-size: .9rem; }
.admin-category-form :is(input, select, textarea) {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e3;
  border-radius: 6px;
}
.admin-category-form button { border: 0; }
.admin-category-form button:disabled { opacity: .6; }
.admin-category-status { margin: 8px 0 0; font-size: .88rem; color: #3b506d; }
.admin-category-status:empty { display: none; }
@media (max-width: 850px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 12px 16px; }
  .admin-brand { display: flex; align-items: center; padding: 0 4px 9px; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-block: 8px 0; }
  .admin-sidebar nav > a { grid-column: 1 / -1; }
  .admin-category-layout { grid-template-columns: minmax(0, 1fr); }
}
.article-dashboard .page-title h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.admin-articles {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  box-shadow: 0 4px 18px #1c36500a;
}
.admin-articles .filters { margin: 0; padding: 16px 18px; gap: 10px 14px; }
.admin-shell .filters:has(> label) { align-items: flex-end; }
.admin-shell :is(.filters, .admin-form) > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: .9rem;
  font-weight: 650;
}
.admin-shell :is(.filters, .admin-form) > label :is(input, select, textarea) { max-width: 100%; }
.admin-shell :is(.filters, .admin-form, .admin-category-form, .analytics-filters) :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  box-sizing: border-box;
  min-height: var(--admin-control-height);
  margin: 0;
  border: 1px solid var(--admin-control-edge);
  border-radius: var(--admin-control-radius);
  padding: 8px 10px;
  font: 400 .9375rem/1.4 system-ui, sans-serif;
  color: var(--admin-ink);
  background: #fff;
}
.admin-shell :is(.filters, .admin-form, .admin-category-form, .analytics-filters) :is(input:not([type="checkbox"], [type="radio"]), select):not([multiple]) {
  height: var(--admin-control-height);
}
.admin-shell :is(.filters, .admin-form, .page-title, .admin-category-form, .analytics-filters) :is(button, a.primary) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--admin-control-height);
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--admin-control-radius);
  font-size: .9375rem;
  line-height: 1.25;
}
.admin-shell :is(.filters, .admin-form, .admin-category-form, .analytics-filters) :is(input, select, textarea):focus-visible {
  outline: 2px solid #4389cd;
  outline-offset: 2px;
}
.admin-form {
  display: grid;
  align-items: start;
  gap: 16px 18px;
  padding: clamp(16px, 2vw, 24px);
}
.admin-ad-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--admin-line);
}
.admin-settings-panel { max-width: 960px; }
.admin-settings-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-form :is(input, textarea) { width: 100%; }
.admin-form textarea { resize: vertical; }
.admin-form-wide, .admin-form-note, .admin-form-actions { grid-column: 1 / -1; }
.admin-form-note { margin: 0; color: #52617a; font-size: .875rem; line-height: 1.6; }
.admin-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
}
.admin-form-actions > [role="status"]:empty { display: none; }
.admin-shell .admin-form input[type="file"] { padding: 4px 7px; }
.admin-form input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-inline-end: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #eaf1fa;
  color: #174b84;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .admin-settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .admin-ad-form, .admin-settings-form { grid-template-columns: minmax(0, 1fr); }
}
.admin-shell .filters [role="status"]:empty,
.admin-shell [data-ai-search-status]:empty { display: none; }
.admin-shell [data-ai-search-status], .admin-shell [data-ai-result] { margin-inline: 18px; }
.admin-shell [data-ai-result] { display: inline-block; margin-block-end: 14px; }
.admin-shell [data-ai-matches] .filters { align-items: center; border-top: 1px solid var(--admin-line); }
.admin-shell [data-ai-matches] .filters > p { flex-basis: 100%; margin: 0; line-height: 1.6; }
.analytics-dashboard { padding-bottom: 30px; }
.analytics-filters, .analytics-totals, .analytics-breakdowns { margin-bottom: 16px; }
.analytics-filters, .analytics-filters fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.analytics-filters { padding: 14px 18px; }
.analytics-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.analytics-filters fieldset[hidden] { display: none; }
.analytics-filters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.analytics-filters :is(select, input) { padding: 7px; border: 1px solid #cbd5e3; border-radius: 6px; background: #fff; }
.analytics-filters .primary { border: 0; cursor: pointer; }
.analytics-period { color: #52617a; font-size: .88rem; }
.analytics-totals, .analytics-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.analytics-card { padding: clamp(14px, 2vw, 25px); color: #203a60; }
.analytics-card h2 { margin: 0 0 12px; font-size: 1.08rem; }
.analytics-card strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.analytics-line { display: block; width: 100%; height: 245px; }
.analytics-detail { color: #52617a; font-size: .88rem; }
.analytics-detail ul { max-height: 16rem; overflow: auto; }
.analytics-breakdowns { margin-top: 16px; }
.analytics-pie { width: min(100%, 155px); aspect-ratio: 1; margin: 12px auto 18px; border-radius: 50%; background: #eaf0f8; }
.analytics-breakdowns ul { margin: 0; padding: 0; list-style: none; }
.analytics-breakdowns li { display: flex; align-items: center; gap: 8px; margin-block: 5px; }
.analytics-swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@media (max-width: 540px) {
  .analytics-breakdowns { grid-template-columns: 1fr; }
}
.admin-articles .filters input { margin-right: 0; }
.admin-article-count { margin-inline-start: auto; font-size: .88rem; color: #52617a; }
.admin-table-scroll { overflow-x: auto; }
.admin-table-scroll:focus-visible { outline-offset: -2px; }
.admin-article-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: start;
  font-size: .9rem;
}
.admin-category-table { min-width: 580px; }
.admin-article-table.admin-category-table th:first-child { width: 24%; }
.admin-article-table :is(th, td) {
  padding: 12px 14px;
  border-top: 1px solid #e4eaf3;
  text-align: start;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.admin-article-table thead { color: #3b506d; background: #f4f7fc; }
.admin-article-table th:first-child { width: 38%; }
.admin-article-table tbody tr:hover { background: #f8faff; }
.admin-article-table a { color: #174b84; text-decoration: none; }
.admin-article-table a:hover { text-decoration: underline; }
.admin-video-identity { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.admin-video-thumbnail { flex: 0 0 72px; width: 72px; height: 43px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #eaf0f8; color: #52617a; font-size: .72rem; }
.admin-video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.admin-ads-table .admin-video-thumbnail { width: 96px; height: 48px; }
.admin-ads-table :is(th, td):first-child { width: 46px; text-align: center; }
.admin-ads-table :is(th, td):nth-child(2) { width: 124px; }
.admin-ads-table th[scope="row"] { width: 38%; }
.admin-video-table thead th { white-space: nowrap; }
.admin-video-table thead th:first-child, .admin-video-table td:first-child { width: 46px; text-align: center; }
.admin-article-selection :is(th, td):first-child { width: 46px; text-align: center; }
.admin-article-selection th[scope="row"] { width: 32%; }
.admin-article-delete { color: #a12639; }
.admin-article-delete:disabled { opacity: .5; }
.admin-video-table th[scope="row"] { width: 32%; }
.admin-video-table .admin-article-actions { white-space: nowrap; }
.admin-video-delete { color: #a12639; }
.admin-video-delete:disabled { opacity: .5; }
.video-upload-poster { display: block; width: min(100%, 260px); max-height: 180px; object-fit: contain; border-radius: 8px; }
.admin-video-edit { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid #dce3ee; border-radius: 12px; color: #203a60; }
.admin-video-edit::backdrop { background: #172b4866; }
.admin-video-edit form { border: 0; }
.admin-video-edit form > div { display: flex; justify-content: flex-end; gap: 8px; }
.admin-video-edit [role="status"]:empty { display: none; }
.admin-video-comments { width: min(520px, calc(100% - 28px)); max-height: 80dvh; border: 1px solid #dce3ee; border-radius: 12px; color: #203a60; }
.admin-video-comments::backdrop { background: #172b4866; }
.admin-video-comments > div { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.admin-video-comments h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.admin-video-comments ul { margin: 0; padding: 0; list-style: none; }
.admin-video-comments li { border-top: 1px solid #dce3ee; padding: 8px 0; }
.admin-video-comments li p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-video-comment-actions { display: flex; gap: 6px; margin-top: 6px; }
.page-editor footer { flex-wrap: wrap; }
.page-edit-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #174b84;
  font: inherit;
  cursor: pointer;
}
.page-edit-link:hover { text-decoration: underline; }
.page-editor {
  width: min(1500px, calc(100% - 28px));
  max-width: none;
  height: min(920px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  color: #203a60;
  background: #fff;
}
.page-editor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.page-editor::backdrop { background: #172b4866; }
.page-editor :is(header, footer) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.page-editor header h2 { margin: 0; font-size: 1.15rem; }
.page-editor button { cursor: pointer; }
.page-editor footer { border-top: 1px solid #dce3ee; }
.page-editor-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 245px; border-top: 1px solid #dce3ee; }
.page-editor iframe { display: block; width: 100%; height: 100%; border: 0; }
.page-editor iframe[data-preview-size="mobile"] { max-width: 390px; justify-self: center; }
.page-editor-fields { padding: 14px; overflow: auto; border-inline-start: 1px solid #dce3ee; background: #f7f9fc; }
.page-editor-fields label { display: grid; gap: 6px; margin-bottom: 14px; }
.page-editor-fields :is(input, textarea) { width: 100%; padding: 8px; border: 1px solid #cbd5e3; border-radius: 6px; font: inherit; }
.page-editor-fields textarea { min-height: 95px; resize: vertical; }
@media (max-width: 760px) {
  .page-editor-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .page-editor-fields { max-height: 30vh; border-inline-start: 0; border-top: 1px solid #dce3ee; }
}
.admin-article-table time { display: block; color: #52617a; font-size: .8rem; white-space: nowrap; }
.admin-article-table .admin-scheduled { margin-top: 4px; }
.admin-article-table .badge { display: inline-block; white-space: nowrap; }
.admin-article-table .badge[data-state="已發布"] { background: #e5f4e9; color: #205c37; }
.admin-article-table .badge[data-state="已排程"] { background: #e9edff; color: #3a4693; }
.admin-article-table .badge[data-state="待審"] { background: #fff0d7; color: #74420b; }
.admin-article-actions { white-space: nowrap; }
.ig-admin { margin-block: 18px; }
.ig-admin-header, .ig-admin-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px clamp(12px, 2vw, 22px);
}
.ig-admin-header h2 { margin: 0; font-size: 1.12rem; }
.ig-admin :is(.ig-admin-header, .ig-admin-status) p { margin: 4px 0 0; color: var(--admin-muted); font-size: .9rem; }
.ig-admin .admin-article-table { min-width: 590px; }
.ig-admin .admin-article-table th:first-child { width: 46%; }
.ig-admin-status { border-top: 1px solid var(--admin-line); background: #f7faff; }
.ig-admin-status p { overflow-wrap: anywhere; }
.ig-admin button[hidden] { display: none; }
.ig-admin button { min-height: var(--admin-control-height); }
.ig-admin-sample { margin: 0; padding: 0 clamp(12px, 2vw, 22px) 16px; }
.ig-admin-progress:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px 20px;
  padding: 14px clamp(12px, 2vw, 22px);
  color: var(--admin-muted);
  font-size: .875rem;
}
.ig-admin-progress progress { display: block; width: 100%; margin-top: 6px; accent-color: #1468d6; }
.admin-article-table tbody tr:hover { background: #edf5ff; }
.ai-generation-history > [data-ai-clear-history] { margin-block: 4px 10px; }
.admin-article-actions a + a { margin-inline-start: 6px; }
.admin-articles-empty { padding: 12px 18px; color: #52617a; }
.ai-media-history > :is(.ai-media-description, .ai-media-list-status) {
  margin: 12px 20px; color: #52617a; font-size: .88rem; line-height: 1.7;
}
.ai-media-table { min-width: 860px; table-layout: fixed; }
.ai-media-table th:first-child { width: 29%; }
.ai-media-table th:last-child { width: 18%; }
.ai-media-table tbody th { font-weight: 650; }
.ai-media-table :is(th, td) { vertical-align: top; overflow-wrap: anywhere; }
.ai-generation-history > [data-ai-clear-history] { margin-inline: 20px; max-width: calc(100% - 40px); }
.ai-media-history > h2 { margin: 0; padding: 18px 20px 4px; font-size: 1.12rem; }
.ai-generation-panel :is(p, a), .ai-generation-history li, .analytics-breakdowns li { overflow-wrap: anywhere; }
.analytics-totals { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.analytics-breakdowns ul { max-height: 20rem; overflow: auto; }
@media (max-width: 680px) {
  .ai-media-table { min-width: 0; }
  .ai-media-table :is(th, td) { padding-inline: 7px; }
  .ai-media-table button { white-space: normal; max-width: 100%; }
}
.ai-media-edit { display: block; width: fit-content; margin-top: 10px; font-weight: 400; font-size: .82rem; }
.ai-media-table .ai-media-detail { margin: 9px 0; white-space: pre-line; color: #52617a; font-size: .83rem; line-height: 1.7; }
.ai-media-badge { background: #edf2f8; color: #4b607a; font-weight: 600; }
.ai-media-badge[data-status="completed"] { background: #e5f4e9; color: #205c37; }
.ai-media-badge:is([data-status="running"], [data-status="pending"]) { background: #e8f1fe; color: #174b84; }
.ai-media-badge:is([data-status="retry"], [data-status="blocked"]) { background: #fff0d7; color: #74420b; }
.ai-media-badge:is([data-status="failed"], [data-status="timed_out"]) { background: #fdecef; color: #a12639; }
.ai-media-error { color: #a12639; font-size: .83rem; line-height: 1.7; }
.ai-media-error summary { cursor: pointer; }
.ai-media-error p { margin: 7px 0; }
.ai-media-table .ai-job-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ai-media-table .ai-job-actions button { margin: 0; padding: 7px 10px; font-size: .82rem; }
.ai-media-table .ai-media-cost-note { color: #68768b; font-size: .76rem; line-height: 1.6; margin: 8px 0 0; }
.ai-media-muted { color: #68768b; }
.ai-media-history > [data-media-more] { margin: 14px 20px; }
@media (max-width: 600px) {
  .ai-media-history .admin-table-scroll { padding: 0 12px 12px; }
  .ai-media-table, .ai-media-table tbody { display: block; min-width: 0; width: 100%; }
  .ai-media-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ai-media-table tbody { display: grid; gap: 12px; }
  .ai-media-table tbody tr { display: grid; gap: 12px; border: 1px solid #e4eaf3; border-radius: 9px; padding: 14px; }
  .ai-media-table tbody :is(th, td) { display: block; width: auto; border: 0; padding: 0; }
  .ai-media-table tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #3b506d; font-size: .8rem; font-weight: 600; }
  .ai-media-table time { white-space: normal; }
}
.badge { white-space: nowrap; border-radius: 99px; padding: 3px 10px; background: #e8f0eb; font-size: .85rem; }
.editor-top, .preview-bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: #fff; border: 1px solid #d9e1dc; border-radius: 8px; }
.editor-top #status { margin-left: auto; font-size: .85rem; }
.editor-top .publish { margin-top: 0; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; margin-top: 18px; }
.writing { background: white; padding: clamp(12px, 3vw, 30px); border: 1px solid #d9e1dc; border-radius: 10px; }
.writing > label { display: block; font-weight: 650; margin: 14px 0 6px; }
#subtitle { width: 100%; margin-top: 10px; }
.toolbar { position: sticky; top: 60px; z-index: 2; }
#content { min-height: 390px; }
#content figcaption { min-height: 1.5em; padding-inline: 6px; background: #f2f6f2; }
#content figcaption:has(> br:only-child)::before { content: "在這裡填寫圖說、攝影或來源"; color: #52635a; pointer-events: none; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid #bac8bf; padding: 6px 8px; }
aside details { background: white; border: 1px solid #d9e1dc; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
aside summary { cursor: pointer; font-weight: 730; }
aside label { display: block; margin-top: 10px; font-size: .9rem; }
aside input, aside textarea { display: block; width: 100%; margin: 3px 0 7px; }
aside img { max-width: 100%; }
#outline button, #versions button { display: block; max-width: 100%; margin-top: 6px; overflow-wrap: anywhere; }
dialog { padding: 0; width: min(900px, calc(100% - 24px)); max-height: 88dvh; border: 1px solid #bac8bf; border-radius: 12px; }
dialog.mobile { width: min(390px, calc(100% - 24px)); }
dialog::backdrop { background: rgb(14 24 19 / .65); }
#preview-body { padding: clamp(16px, 4vw, 34px); }
@media (max-width: 780px) {
  .compose { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .editor-top { position: static; }
  .masthead select { margin-top: 8px; }
}
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid #cbdad0;
  border-radius: 7px;
  background: #e2ede5;
  max-width: 100%;
}
.format-help {
  margin: 0;
  padding: 7px 14px;
  border-bottom: 1px solid #e2eae4;
  color: #52635a;
  font-size: .85rem;
}
.block-editor { position: relative; }
.block-editor #content { padding-inline-start: 48px; }
.block-editor #content > :is(p, div, h2, h3, h4, h5, h6, blockquote) { min-height: 30px; }
#block-buttons { position: absolute; inset: 0 auto 0 0; width: 43px; pointer-events: none; }
#block-buttons button {
  position: absolute; left: 9px; pointer-events: auto;
  width: 28px; height: 28px; padding: 0; line-height: 1;
  border-color: #cbdad0; background: #eef4ef; color: #15634b;
}
#block-buttons button:hover { background: #dcebe0; }
.editor-menu {
  position: fixed; z-index: 10; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px; padding: 8px; width: min(290px, calc(100vw - 16px)); max-height: calc(100dvh - 16px);
  overflow: auto; background: white; border: 1px solid #bac8bf; border-radius: 10px;
  box-shadow: 0 8px 28px #17231e26;
}
.editor-menu button { text-align: left; }
.editor-menu button:hover { background: #eef4ef; }
.prose figure[style*="text-align: center"] img { margin-inline: auto; }

:root { background: #f0f3f8; color: #18243a; }
header { border-color: #dce3ee; }
.brand { color: #162b50; }
.workspace .writing, .workspace aside details, .editor-top, .article-row {
  border-color: #dce3ee;
  box-shadow: 0 4px 18px #1c36500a;
}
.workspace .writing, .workspace aside details { border-radius: 14px; }
.workspace aside summary { color: #203a60; }
.toolbar { background: #f5f7fc; border-color: #dce3ee; gap: 6px; }
.toolbar-group {
  background: #fff; border-color: #dce3ee; border-radius: 8px;
  padding: 5px 7px; gap: 4px;
}
.tool-label { color: #52617a; font-size: .75rem; font-weight: 750; white-space: nowrap; padding-inline: 4px; }
.toolbar :is(button, select, .color) { border-color: transparent; background: transparent; font-size: .88rem; }
.toolbar :is(button, select, .color):hover, .editor-menu button:hover { background: #eaf1ff; color: #163f86; }
.editor-menu, .link-popover {
  position: fixed; z-index: 10; width: min(330px, calc(100vw - 16px));
  border: 1px solid #d2dced; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 38px #162b5030;
}
.editor-menu { display: block; padding: 5px 10px; }
.editor-menu section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 6px 0; }
.editor-menu section + section { border-top: 1px solid #e4eaf4; }
.menu-label { grid-column: 1 / -1; }
.editor-menu button { border-color: transparent; font-size: .88rem; }
.link-popover { padding: 10px; }
.link-popover > label { display: block; margin: 0 0 5px; color: #273e64; font-size: .83rem; }
.link-row { display: flex; padding: 3px; border: 1px solid #849fda; border-radius: 7px; }
.link-row:focus-within { outline: 2px solid #c5d5fa; }
.link-row input { width: 100%; min-width: 0; outline: none; border: 0; padding: 4px 7px; }
.link-row button, .primary, .publish { color: white; background: #214b91; border-color: #214b91; }
.link-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 7px; }
.link-actions button { border-color: transparent; font-size: .8rem; }
#link-error { margin: 4px 0; color: #9a311f; font-size: .8rem; }
#link-error:empty { display: none; }
.prose a, .prose a :is(span, font, strong, em, b, i, mark), .reading footer a {
  color: #143b80 !important;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.prose :is([data-article-block="match-pick"], [data-match-heading]) a {
  color: #cae7ff !important;
}
.prose a[data-source-link] {
  color: inherit !important;
  text-decoration-style: dotted;
  text-decoration-color: #71849b;
}
.prose a[data-source-link]:is(:hover, :focus-visible) {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
#block-buttons button { background: #eef3fe; border-color: #d2dff7; color: #214b91; }
.audit-scores, .audit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.audit-scores strong { flex: 1; text-align: center; padding: 9px 5px; border-radius: 8px; background: #eef3fe; color: #214b91; font-size: .85rem; }
#audit-results ul { padding-inline-start: 18px; font-size: .82rem; }
#audit-results li + li { margin-top: 5px; }
#optimize, #apply-optimization { background: #214b91; color: white; border-color: #214b91; }
#apply-optimization:disabled { opacity: .5; cursor: default; }
.optimize-body { padding: 22px; }
.article-takeaway { padding: 12px 16px; background: #eef3fe; border-inline-start: 3px solid #214b91; }
.prose .spread-tutorial nav {
  display: block;
  width: 100%;
  min-height: auto;
  margin: 24px 0;
  padding: 14px 20px;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #f2f7fd;
}
.prose .spread-tutorial nav h2 { margin-block: 0 6px; font-size: 1.05em; }
.prose .spread-tutorial nav ol { margin: 0; padding-inline-start: 1.45em; }
.prose .spread-tutorial section { scroll-margin-top: 90px; }
.prose .spread-tutorial > figure:first-child { margin-top: 12px; }
.prose .spread-tutorial figure img { width: 100%; }
.prose .spread-tutorial figcaption { margin-top: 8px; font-size: .9em; }
.prose .spread-tutorial .video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0b1525;
}
.prose .spread-tutorial .note,
.prose .spread-tutorial details {
  padding: 12px 16px;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
}
.prose .spread-tutorial .note { background: #fff8e9; border-color: #efd699; }
.prose .spread-tutorial details { background: #f2f7fd; }
.prose .spread-tutorial summary { cursor: pointer; color: #184a88; font-weight: 750; }
.prose .spread-tutorial details p { margin: 8px 0 0; }
.prose .spread-tutorial .table-wrap { overflow-x: auto; margin-block: 18px; }
.prose .spread-tutorial table { min-width: 390px; background: #fff; color: #182e48; }
.prose .spread-tutorial caption { padding: 8px; text-align: left; background: #e8f2fc; font-weight: 750; }
.prose .spread-tutorial :is(th, td) { padding: 8px; }
.prose .spread-tutorial .win { color: #08603b; font-weight: 750; }
.prose .spread-tutorial .loss { color: #9c2d3f; font-weight: 750; }
.prose .spread-tutorial .scoreboard { padding: 14px; border-radius: 12px; background: #152f4c; color: #f1f6fd; }
.prose .spread-tutorial .scoreboard figcaption { color: inherit; margin-bottom: 8px; }
.prose .spread-tutorial .score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prose .spread-tutorial .score-grid div { text-align: center; border-radius: 7px; padding: 5px; background: #254967; }
.prose .spread-tutorial .score-grid :is(small, strong) { display: block; color: #e2f7ff; }
.prose .spread-tutorial .score-grid strong { font-size: 1.55rem; }
.prose .spread-tutorial .score-logic { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.check-row { padding: 8px; border: 1px solid #dce3ee; border-radius: 8px; margin-top: 8px; background: #f8faff; }
#find-dialog { max-width: 480px; }
#replace-form label { display: block; margin-block: 10px; }
#replace-form input { display: block; width: 100%; padding: 8px; border: 1px solid #bac8bf; border-radius: 6px; }
[data-article-block]:not([data-article-block="match-pick"]) {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background: #f5f8fc;
}
[data-article-block] h3 { margin: 0 0 .65rem; }
.prose [data-article-block="news-reminder"] { background: linear-gradient(120deg, #0b1d37, #174171); border-color: #28507d; color: #f1f7ff; max-width: 42rem; }
.prose [data-article-block="news-reminder"] h3 { color: #ffda86; }
.prose [data-article-block="news-reminder"] p { margin: 0; color: inherit; }
[data-article-block] ul { margin: 0; padding-inline-start: 1.4rem; }
[data-article-block] li + li { margin-top: .4rem; }
[data-article-block="line"] img {
  display: block;
  width: min(100%, 200px);
  height: auto;
}

:root {
  --button-ink: #173c6b;
  --button-edge: #cbd9eb;
  --button-radius: 10px;
  --button-primary: linear-gradient(145deg, #1871c7, #164780);
  --button-shadow: 0 3px 8px #173c6b23;
}
:where(button, .primary, .publish, .baccarat-lesson-cta, .site-nav-admin, .admin-article-actions a, .baccarat-actions a) {
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
button {
  border-color: var(--button-edge);
  border-radius: var(--button-radius);
  font-weight: 600;
}
button:enabled:where(:not(.baccarat-step-dots button, #block-buttons button)):hover {
  box-shadow: var(--button-shadow);
}
:where(button, .primary, .site-nav-admin, .baccarat-lesson-cta, .admin-article-actions a, .baccarat-actions a):focus-visible {
  outline: 2px solid #3196ee;
  outline-offset: 3px;
}
button:disabled { cursor: default; }
.primary, .publish, .site-nav .site-nav-admin, .link-row button, #optimize, #apply-optimization,
.article-search button {
  min-height: 38px;
  border-radius: var(--button-radius);
  background: var(--button-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--button-shadow);
}
a:is(.primary, .site-nav-admin) { display: inline-flex; align-items: center; justify-content: center; }
:is(a.primary, .site-nav .site-nav-admin):hover,
:is(.primary, .publish, .link-row button, #optimize, #apply-optimization):enabled:hover,
.article-search button:hover {
  filter: brightness(1.09);
  text-decoration: none;
}
[data-theme="news"] .article-search button { --button-primary: linear-gradient(145deg, #3b5371, #23354b); }
[data-theme="classroom"] .article-search button { --button-primary: linear-gradient(145deg, #39745e, #224637); }
[data-theme="gaming"] .article-search button { --button-primary: linear-gradient(145deg, #b6f5ff, #74d8ed); color: #18142b; }
.archive-pagination button { border-radius: var(--button-radius); }
.archive-pagination button:enabled:hover { border-color: #8eb9e4; }
.baccarat-actions :is(a, button) {
  border: 1px solid #edf8ff9c;
  border-radius: var(--button-radius);
  background: #e5f2ff18;
}
.baccarat-actions :is(a, button):first-child {
  background: linear-gradient(145deg, #f8dc9e, #dfad54);
  color: #31220d;
  text-shadow: none;
  border-color: transparent;
}
.baccarat-actions a:hover { filter: brightness(1.12); text-decoration: none; }
.baccarat-actions button:disabled { opacity: .76; }
.baccarat-lesson-finish .baccarat-lesson-cta {
  border-color: transparent;
  border-radius: var(--button-radius);
  background: var(--button-primary);
  color: #fff;
  box-shadow: var(--button-shadow);
  text-decoration: none;
}
.baccarat-lesson-cta:hover { filter: brightness(1.1); }
.baccarat-arrow, .baccarat-step-arrow { border-radius: 50%; }
.baccarat-step-dots button { border-radius: 50%; }
.site-menu > summary { border-radius: var(--button-radius); }
.site-menu > summary:hover { background: #edf5ff; box-shadow: var(--button-shadow); }
.admin-article-actions a {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--button-edge);
  border-radius: 8px;
  background: #f4f8ff;
}
.admin-article-actions a:hover { background: #e4f0ff; text-decoration: none; }
#unpublish { border-color: #f0c8c8; color: #8e2828; background: #fff1f1; }
@media (prefers-reduced-motion: reduce) {
  :where(button, .primary, .publish, .baccarat-lesson-cta, .site-nav-admin, .admin-article-actions a, .baccarat-actions a) { transition: none; }
}
.article-end {
  display: grid;
  gap: 16px;
  margin-block: 20px;
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-neighbors a {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f5f9ff;
  color: #153558;
  border: 1px solid #c9d9ee;
  border-radius: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-neighbors a:hover { border-color: #2662ad; }
.article-neighbors a:only-child { grid-column: span 2; }
.article-neighbors small { font-weight: 700; color: #486482; }

.match-cards { grid-template-columns: minmax(0, 1fr); }
.match-section + .match-section { margin-top: 28px; }
.match-section > h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.match-section > p:not(.archive-empty) { color: #c8ddfa; font-size: .9rem; }
.match-report-link h3 { margin: 0; overflow-wrap: anywhere; }
.match-feature { font-size: 1.0625rem; }
.match-feature [data-article-block="match-pick"] { max-width: none; margin: 0; }
.match-feature .primary { gap: 8px; margin-top: 16px; }
.match-report-index, .match-games, .match-game-picks { list-style: none; padding: 0; }

.match-report-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 20px;
  color: #edf8ff;
  text-decoration: none;
}
.match-report-link:hover h3, .match-report-link:focus-visible h3 { color: #9ce6ff; }
.match-report-link small { display: block; margin-top: 5px; color: #b7d1ea; }
.match-report-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.match-report-pagination a {
  padding: 5px 10px;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
  color: #123562;
  background: #f7faff;
  text-decoration: none;
}
.match-report-pagination a:hover { background: #deedff; }
.match-report {
  padding: clamp(0px, 1vw, 12px);
  color: #edf8ff;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.match-report a:not(.article-neighbors a) { color: #a5eaff; }
.match-report .match-meta { color: #b7d1ea; }
.match-glass-panel {
  border: 1px solid #9edaff36;
  border-radius: 18px;
  background: linear-gradient(145deg, #244875b8, #0c2049d9 70%);
  box-shadow: inset 0 1px 0 #e4f5ff22, 0 12px 36px #020b254d;
  backdrop-filter: blur(16px);
}
.match-report-index .match-week-link {
  border-color: #77dcff79;
  background: linear-gradient(120deg, #165172da, #182653e0);
}
.match-card-heading h3 > small { display: inline-block; font-weight: 400; font-size: .72em; }
.match-report-cover {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: clamp(34px, 6vw, 76px) 16px;
  margin-block: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, #47b6fc58, transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 30px, #b5e6ff09 31px 32px),
    linear-gradient(145deg, #1a4273db, #091b43e8);
}

.match-report-cover strong {
  color: #f1fbff;
  font-size: clamp(25px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 0 32px #65cfff85;
}
.match-report-cover time,
.match-units { font-variant-numeric: tabular-nums; }
.match-report-cover time {
  color: #9ce6ff;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(18px, 4vw, 30px);
  letter-spacing: .12em;
}
.match-report > :is(.match-ad, .match-report-section, .match-latest, .article-neighbors) { margin-top: 20px; }
.match-report :is(h2, h3) { margin: 0; color: inherit; }
.match-report h2 { font-size: clamp(20px, 3vw, 25px); }
.match-report-section, .match-latest { padding: clamp(14px, 3vw, 25px); }
.match-games, .match-leagues { display: grid; gap: 12px; margin: 16px 0 0; }
.match-games > li, .match-leagues > div { padding: clamp(12px, 2.5vw, 20px); }
.match-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.match-card-heading h3 { font-size: clamp(16px, 2.4vw, 20px); }
.match-card-heading h3 span { color: #a5cce7; font-size: .8em; }
.match-card-heading .match-meta { margin: 0; }
.match-game-picks { margin: 14px 0; }
.match-game-picks li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-top: 1px solid #9edaff29; }
.match-units { color: #b9d5f1; font-weight: 800; white-space: nowrap; }
.match-units.is-positive { color: #8ff5ce; }
.match-units.is-negative { color: #ffadbb; }
.match-week-breakdown > p { margin-block: 8px 0; }
.match-latest li { margin-bottom: 10px; }
.match-ad img { width: 100%; height: auto; display: block; }

@media (max-width: 520px) {
  .article-neighbors { grid-template-columns: minmax(0, 1fr); }
  .article-neighbors a:only-child { grid-column: auto; }
}

/* Constrain the cover in the server-rendered article before the reader loads. */
body:not(.admin-shell) #app > article > img { display: block; max-width: 100%; height: auto; }

@media (max-width: 760px) {
  .site-header { padding: 6px 8px 0; }
  .site-nav { padding: 5px 8px; border-radius: 12px; }
  .site-nav .site-member-button { min-height: 44px; }
  .site-member-status:not(:empty) {
    width: max-content;
    max-width: calc(100vw - 76px);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-menu-links {
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100dvh - 78px);
    overscroll-behavior: contain;
    padding: 6px;
  }
  .site-menu-links a { display: flex; align-items: center; min-height: 44px; }
  .site-menu-links > a + a { border-top: 1px solid #e6eef7; }
  .site-menu-links .site-nav-dropdown { border-inline-start: 2px solid #dceaf7; padding: 0; }
  .member-dialog { max-height: calc(100dvh - 24px); }
  .member-dialog-close { width: 44px; height: 44px; }
  .member-panel :is(h1, h2) { margin-inline-end: 42px; }
  .member-page-links .site-member-button { min-height: 44px; }

  .home-main-page :is(#root, .casino-rating-section) { overflow-x: clip; }
  .home-main-page .casino-rating-two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-main-page .casino-rating-content { min-width: 0; }
  .home-main-page .casino-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-main-page .casino-review-stack-reveal { width: min(100%, 320px); height: 420px; min-width: 0; }
  .home-main-page .casino-review-stack-area { width: min(100%, 300px); }
  .home-main-page .splash-cursor-layer { width: 100vw; }
  .home-main-page .floating-actions { bottom: max(16px, env(safe-area-inset-bottom)); }

  .article-page { overflow-x: clip; }
  .article-layout { width: calc(100% - 24px); gap: 18px; }
  .article-layout :is(.article-main, .article-sidebar, .reading, .prose) { min-width: 0; }
  .article-main .reading { padding: clamp(15px, 4.5vw, 28px); }
  .article-main h1 { font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.32; }
  .article-main .prose { font-size: 1.0625rem; line-height: 1.82; }
  .article-main .prose h2 { font-size: 1.25em; }
  :is(.article-main, .admin-shell) .prose :is(iframe, video, table, pre) { max-width: 100%; }
  :is(.article-main, .admin-shell) .prose :is(table, pre) { display: block; overflow-x: auto; }
  .article-main .prose figure { margin-block: 1.25rem; }
  .article-main .prose [data-article-block] { padding-inline: 14px; }
  .article-search input[type="search"],
  .video-gallery-header input[type="search"],
  .video-watch .video-watch-tools input[type="search"],
  .video-comments textarea { font-size: 1rem; }
  .article-search button, .archive-pagination button { min-height: 44px; }
  .archive-heading { font-size: clamp(1.55rem, 6vw, 2rem); }
  .archive-cards .card-copy { padding: 14px; }
  .archive-cards .article-row h2 { line-height: 1.45; }
  .article-latest a { display: block; padding-block: 7px; }
  .match-report-pagination a { display: grid; align-items: center; min-height: 44px; }
  .match-feature [data-article-block="match-pick"] { padding: 14px; }

  .short-videos .video-gallery-header form { width: 100%; }
  .video-gallery-header :is(button, nav a), .video-pagination a { display: grid; align-items: center; min-height: 44px; }
  .video-watch-actions button { min-height: 44px; }
  .video-watch-tools form { background: #101823b8; }
  .video-watch-tools :is(button, a), .video-comments header button { min-height: 44px; }
  .video-controls .video-seek { top: -10px; height: 22px; }
  .video-control-row { gap: 6px; }
  .video-control-row button { width: 44px; min-height: 40px; }
  .video-feed-item .video-comments[open],
  .video-watch .video-comments[open] {
    inset: auto 0 0;
    width: 100%;
    height: min(76dvh, 620px);
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid #454545;
    border-radius: 16px 16px 0 0;
  }
  .baccarat-step-dots button { min-width: 32px; min-height: 32px; }
  .site-footer-inner { width: calc(100% - 32px); padding-top: 32px; }
  .site-footer-grid { gap: 26px 14px; font-size: .9375rem; }
  .site-footer-grid li { overflow-wrap: anywhere; }
  .site-footer-social { gap: 6px 16px; }
  .site-footer-social a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .site-footer-copyright { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  .admin-shell { --admin-control-height: 44px; }
  .admin-shell > .workspace { width: calc(100% - 24px); padding-block: 18px 32px; }
  .admin-sidebar { position: relative; z-index: 4; padding: 8px 12px; }
  .admin-brand { padding-bottom: 7px; }
  .admin-brand img { width: 82px; height: 29px; }
  .admin-sidebar nav {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }
  .admin-sidebar nav > a { grid-column: auto; }
  .admin-sidebar nav:has(.admin-nav-group[open]) { padding-bottom: 60px; }
  .admin-sidebar :is(a, summary) { min-height: 44px; gap: 4px; padding: 6px; }
  .admin-sidebar summary::after { flex: none; width: 6px; height: 6px; }
  .admin-sidebar .admin-nav-links {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
    margin: 0;
    border: 1px solid #506b8d;
    border-radius: 9px;
    background: #10233f;
    box-shadow: 0 12px 26px #10233f50;
  }
  .admin-sidebar .admin-nav-links a { min-height: 44px; padding-inline: 5px; overflow-wrap: anywhere; }

  .admin-shell :is(.compose, .admin-form, .ai-generation-grid, .analytics-dashboard) { min-width: 0; }
  .admin-shell .compose { grid-template-columns: minmax(0, 1fr); }
  .admin-shell :is(.writing, .compose > aside, .editor, .ai-generation-panel, .ai-generation-history) { min-width: 0; }
  .admin-shell :is(.page-title, .editor-top, .preview-bar, .admin-form-actions, .ai-job-actions) { gap: 8px; }
  .admin-shell :is(.page-title, .filters, .editor-top, .preview-bar, dialog, .admin-form, .toolbar, .studio-actions) button,
  .admin-shell :is(.page-title a.primary, .studio-download) { min-height: 44px; }
  .admin-shell :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), select, textarea, #content) {
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
  }
  .admin-shell input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: #075eaf; }
  .admin-shell .editor-top > a { flex-basis: 100%; }
  .admin-shell .editor-top #status { order: 1; flex-basis: 100%; margin: 0; }
  .admin-shell .toolbar-group { flex: 1 1 100%; }
  .admin-shell .tool-label { flex-basis: 100%; }
  .admin-shell .toolbar button { padding-inline: 9px; }
  .admin-shell :is(.admin-article-actions, .admin-video-comment-actions, .studio-actions) { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-shell .admin-article-actions :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
  .admin-shell .page-editor :is(header, footer) { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .admin-shell .page-editor-fields { max-height: 26dvh; }
  .admin-shell .analysis-studio { padding-inline: 0; }
  .admin-shell .studio-settings { grid-template-columns: minmax(0, 1fr); }
  .admin-shell .admin-table-scroll { overscroll-behavior-inline: contain; }
  .admin-table-scroll[aria-label="頁面管理表格"] .admin-article-table { min-width: 0; }
  .admin-table-scroll[aria-label="垃圾桶表格"] .admin-article-table { min-width: 510px; }
  .admin-category-table { min-width: 460px; }
  .admin-table-scroll[aria-label="頁面管理表格"] :is(th, td),
  .admin-category-table :is(th, td) { padding-inline: 8px; }
}

@media (max-width: 600px) {
  /* Keep selection, metadata and actions together on the most used lists. */
  .admin-table-scroll:has(:is(.admin-article-selection, .admin-video-table, .admin-ads-table)) { padding: 0 10px 10px; }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) {
    display: block;
    min-width: 0;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) thead { display: block; background: none; }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) thead th {
    border: 0;
    padding: 8px 0;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) thead th:not(:first-child) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) thead th:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) thead th:first-child::after { content: "全選"; }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody {
    display: grid;
    gap: 9px;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 6px 8px;
    padding: 10px 10px 10px 40px;
    border: 1px solid #dce5f1;
    border-radius: 10px;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody :is(th, td) {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody th[scope="row"] {
    grid-column: 1 / -1;
    font-size: 1rem;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody td:first-child:not([colspan]) {
    position: absolute;
    inset: 10px auto auto 10px;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody :is(td:last-child, td:has(time), td[colspan]) {
    grid-column: 1 / -1;
  }
  :is(.admin-article-selection, .admin-video-table, .admin-ads-table) tbody time { white-space: normal; }
  .admin-ads-table tbody td:nth-child(2) { grid-column: span 2; }
  .admin-video-table tbody td:nth-child(4)::before { content: "觀看 "; }
  .admin-video-table tbody td:nth-child(5)::before { content: "評論 "; }
  .admin-video-table tbody td:nth-child(6)::before { content: "收藏 "; }
  .admin-video-table tbody td:nth-child(7)::before { content: "分享 "; }
  .admin-article-selection tbody td:nth-child(7)::before { content: "觀看 "; }
}
