:root {
  color-scheme: dark;
  --background: #080808;
  --line: #2c2c2c;
  --text: #f2f2f2;
  --muted: #aeaeae;
  --accent: #f5f5f5;
  --ink: #101010;
  font-family: "DM Sans", "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
:is(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 14px; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 12px; }
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #161616 0%, #080808 72%);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: block; position: relative; width: min(280px, 100%); height: 62px; overflow: hidden; margin-inline: auto; }
.wordmark img { position: absolute; width: 133.333%; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.hero-content { display: flex; align-items: center; justify-content: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { width: 100%; text-align: center; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .13em; margin-bottom: 24px; }
.hero-brand { font-size: 0; line-height: 1; margin-bottom: 30px; }
.hero-actions { display: grid; justify-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 26px; border-radius: 6px; font-size: 15px; font-weight: 600; letter-spacing: .02em; transition: background .18s, transform .18s; }
.hero-actions .button { width: min(100%, 11.25rem); min-height: 3.25rem; padding: 12px 16px; line-height: 1.4; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: #d7d7d7; transform: translateY(-2px); }
.baccarat-rules, .content-guide {
  margin: 20px 0 0;
  padding: clamp(18px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  text-align: left;
  font-size: 1rem;
  line-height: 1.75;
}
.baccarat-rules dt { font-weight: 600; }
.baccarat-rules dd { margin: 4px 0 0; color: var(--muted); }
.baccarat-rules dd + dt { margin-top: 16px; }
h2 { font-size: clamp(29px, 3vw, 39px); font-weight: 500; line-height: 1.5; letter-spacing: -.035em; }
.product-section { padding-block: 64px; background: var(--background); }
.product-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 40px; }
.product-principle { display: flex; flex-direction: column; padding-block: 28px; }
.principle-heading { display: flex; align-items: center; gap: 14px; }
.principle-icon { width: 36px; height: 36px; color: #dedede; transition: color .18s, transform .18s; }
.product-principle h2 { font-size: clamp(1.375rem, 2.25vw, 1.625rem); font-weight: 500; line-height: 1.5; letter-spacing: .035em; }
.product-principle p { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.product-principle > p { min-height: 5.7em; }
.principle-details { margin-top: auto; padding-top: 20px; }
.principle-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #4b4b4b;
  border-radius: 6px;
  background: #111;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.principle-details summary::-webkit-details-marker { display: none; }
.principle-details[open] summary { border-color: #858585; background: #1a1a1a; }
.detail-toggle { width: 18px; height: 18px; }
.toggle-vertical { transition: opacity .18s; }
.principle-details[open] .toggle-vertical { opacity: 0; }
.principle-detail-content { margin-top: 16px; padding: 0; }
.principle-detail-content p { margin: 0; font-size: 1rem; line-height: 1.9; }
.principle-detail-content a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; }
.product-principle:focus-within .principle-icon { color: var(--accent); }
.simple-use-steps {
  margin: 16px 0;
  padding-left: 1.5em;
  color: #d3d3d3;
  font-size: 1rem;
  line-height: 1.9;
}
.simple-use-steps li { padding: 4px 0 4px 4px; }
.principle-detail-content .simple-use-link {
  gap: 10px;
  padding: 10px 16px;
  margin-top: 4px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.simple-use-link svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .product-principle:hover .principle-icon { color: var(--accent); transform: translateY(-2px); }
  .principle-details summary:hover { color: var(--accent); background: #202020; border-color: #858585; }
  .simple-use-link:hover { background: #d7d7d7; }
}
.contact-section { border-top: 1px solid var(--line); background: #111111; padding-top: 62px; }
.contact-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-bottom: 58px; }
.contact-copy .eyebrow { margin-bottom: 17px; }
.contact-copy h2 { font-size: 35px; line-height: 1.45; }
.contact-copy > p:last-child { color: var(--muted); margin-top: 17px; line-height: 1.85; font-size: 16px; }
.contact-actions { display: flex; align-items: center; flex-direction: column; gap: 17px; margin-right: 42px; }
.contact-handle { font-size: 14px; color: #c3c3c3; text-underline-offset: 4px; }
.contact-handle:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #333333; display: flex; align-items: center; gap: 32px; padding-block: 25px max(156px, calc(132px + env(safe-area-inset-bottom))); }
.footer-brand { font-size: 14px; font-weight: 500; letter-spacing: .16em; display: flex; gap: 11px; align-items: center; }
.footer-brand span { font-size: 23px; line-height: 1; }
.footer-bottom small { font-size: 12px; color: #a5a5a5; }
.footer-bottom > a:last-child { margin-left: auto; font-size: 14px; color: #cccccc; padding: 8px 0; }
.floating-actions { position: fixed; right: 26px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 50; display: grid; justify-items: end; gap: 12px; }
.floating-page-link, .floating-contact { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 148px; min-height: 56px; padding: 14px 20px; border: 1px solid #ffffff; border-radius: 100px; box-shadow: 0 6px 30px #0006; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .18s, transform .18s; }
.floating-page-link { min-height: 48px; padding: 10px 20px; border-color: #767676; background: #151515; color: var(--text); }
.floating-contact { background: var(--accent); color: var(--ink); }
.floating-page-link svg, .floating-contact svg { width: 24px; height: 24px; }
.floating-page-link:hover { background: #2b2b2b; transform: translateY(-3px); }
.floating-contact:hover { background: #d7d7d7; transform: translateY(-3px); }
.content-header { padding-block: 32px; border-bottom: 1px solid var(--line); background: #111; }
.content-main { width: min(52rem, calc(100% - 96px)); margin-inline: auto; padding-block: 56px; }
.content-main h1 { margin-bottom: 36px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.5; letter-spacing: .035em; }
.content-article h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
.content-article + .content-article { margin-top: 40px; }
.content-footer { background: #111; }

@media (max-width: 900px) {
  .container { width: calc(100% - 64px); }
  .content-main { width: calc(100% - 64px); }
  .product-principles { gap: 26px; }
  .contact-actions { margin-right: 0; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .wordmark { width: 234px; height: 52px; }
  .hero-content { padding-top: 52px; padding-bottom: 46px; }
  .eyebrow { font-size: 13px; margin-bottom: 20px; }
  .product-section { padding-block: 56px; }
  h2 { font-size: 28px; line-height: 1.55; }
  .product-principles { grid-template-columns: 1fr; gap: 0; }
  .product-principle:first-child { padding-top: 0; }
  .product-principle:last-child { padding-bottom: 0; }
  .product-principle + .product-principle { border-top: 1px solid #535353; }
  .principle-icon { width: 32px; height: 32px; }
  .product-principle p { margin-top: 12px; }
  .product-principle > p { min-height: 0; }
  .principle-details { padding-top: 16px; }
  .principle-detail-content p { margin: 0; }
  .contact-section { padding-top: 45px; }
  .contact-content { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 38px; }
  .contact-copy h2 { font-size: 30px; }
  .contact-actions { align-items: flex-start; gap: 14px; }
  .footer-bottom { gap: 14px; flex-wrap: wrap; padding-top: 23px; padding-bottom: max(144px, calc(126px + env(safe-area-inset-bottom))); }
  .footer-brand { font-size: 12px; }
  .footer-brand span { font-size: 20px; }
  .footer-bottom small { font-size: 12px; }
  .footer-bottom > a:last-child { font-size: 14px; }
  .floating-actions { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .floating-page-link { min-width: 120px; min-height: 48px; gap: 8px; padding: 12px 14px; }
  .floating-page-link svg { width: 20px; height: 20px; }
  .floating-contact { min-width: 0; width: 58px; height: 58px; padding: 14px; }
  .floating-contact span { display: none; }
  .floating-contact svg { width: 27px; height: 27px; }
  .content-header { padding-block: 28px; }
  .content-main { width: calc(100% - 40px); padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, summary, .principle-icon, .toggle-vertical { transition: none !important; }
  .principle-icon { transform: none !important; }
}
