@font-face {
  font-family: Kanit;
  src: url("../assets/Kanit-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url("../assets/Kanit-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --page: #05172d;
  --card: #071627;
  --panel: #112b47;
  --panel-2: #0b2038;
  --gold: #e9bd5a;
  --gold-light: #ffe6a1;
  --silver: #dce7f0;
  --silver-deep: #aebfd0;
  --blue: #3a9fd6;
  --cream: #f0f5f9;
  --muted: #bfd0de;
  --line: rgba(220, 231, 240, .28);
  --soft-line: rgba(191, 215, 236, .17);
  --font-thai: Kanit, "Leelawadee UI", Tahoma, sans-serif;
  --angle: 0deg;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 116, 186, .45), transparent 33%),
    radial-gradient(circle at 8% 48%, rgba(233, 189, 90, .08), transparent 30%),
    linear-gradient(135deg, #05172d, #092745 50%, #041326);
  font: 400 16px/1.7 var(--font-thai);
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.page-shell {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 28px;
  padding: 8px 8px 46px;
}
.portal-card, .article-card { min-width: 0; width: 100%; }
.portal-card {
  position: relative;
  max-width: 470px;
  padding: 20px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(191, 215, 236, .62);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(77, 161, 218, .13), transparent 22%), var(--card);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .05);
}
.portal-card::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(58, 159, 214, .25) 68%, var(--silver) 74%, var(--gold-light) 78%, var(--blue) 82%, transparent 90% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-run 4.2s linear infinite;
}

.brand-header { text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  font-size: clamp(43px, 13vw, 57px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 1;
  filter: drop-shadow(0 6px 13px rgba(77, 170, 229, .3));
}
.brand span:first-child { color: var(--silver); text-shadow: 0 2px 0 #506d86; }
.brand span:last-child { color: var(--gold-light); text-shadow: 0 2px 0 #81642b; }
.brand-kicker { margin: 5px 0 2px; color: var(--silver-deep); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
h1 { max-width: 360px; margin: 0 auto 12px; font-size: 18px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
h1 span { color: var(--gold-light); }

.hero-media {
  position: relative;
  aspect-ratio: 1.12 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 240, .82);
  border-radius: 20px;
  background: #0b2340;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .46), 0 0 32px rgba(66, 152, 210, .16);
}
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--blue) 76%, var(--silver) 80%, var(--gold-light) 84%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-run 5.4s linear infinite reverse;
}
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 15, 34, .5), transparent 32%, transparent 48%, rgba(4, 14, 32, .68) 74%, rgba(4, 13, 31, .88)); }
.hero-media figcaption { position: absolute; bottom: 12px; left: 12px; right: 12px; color: var(--cream); font-size: clamp(22px, 6.5vw, 28px); font-weight: 700; line-height: 1.26; text-align: center; text-shadow: 0 3px 10px #06101e, 0 2px 0 #715327; }
.hero-media figcaption strong { color: var(--gold-light); font-size: 1.22em; }

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin: 10px 0;
  padding: 6px 8px;
  color: var(--silver);
  border: 1px solid var(--soft-line);
  background: linear-gradient(90deg, #0b2038, #173759, #0b2038);
  font-size: 12px;
  white-space: nowrap;
}
.entry-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(233, 189, 90, .5); }
.entry-meta-divider { width: 1px; height: 13px; background: var(--line); }

.action-stack { display: grid; gap: 8px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.action svg { width: 20px; flex: 0 0 20px; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: translateY(0); }
.action-primary { color: #102441; background: linear-gradient(125deg, #fff0b8, var(--gold) 54%, #b27b24); box-shadow: 0 10px 28px rgba(233, 189, 90, .2), inset 0 1px rgba(255,255,255,.5); }
.action-secondary { color: var(--silver); border-color: var(--silver-deep); background: linear-gradient(110deg, rgba(39, 100, 149, .25), rgba(13, 36, 65, .6)); }
.action-secondary:hover { border-color: var(--silver); }
.action:focus-visible, .support-link:focus-visible, .brand:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.link-notice { min-height: 20px; margin: 4px 0 0; color: var(--silver-deep); font-size: 11px; line-height: 1.6; text-align: center; }
.link-notice.is-active { color: var(--gold-light); }

.info-panel { margin-top: 13px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 15px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.info-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 53px; padding: 8px 11px; border-bottom: 1px solid var(--soft-line); }
.info-row:last-child { border-bottom: 0; }
.info-icon { display: grid; place-items: center; width: 27px; height: 27px; color: var(--silver); border: 1px solid rgba(184,211,232,.3); border-radius: 8px; background: rgba(73,151,207,.13); }
.info-icon svg { width: 16px; }
.info-label, .info-row strong { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.info-label { color: var(--silver); font-weight: 700; }
.info-row strong { color: var(--gold-light); text-align: right; }
.support-link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin-top: 7px; color: var(--muted); font-size: 16px; font-weight: 700; }
.support-link svg { width: 18px; }
.support-link:hover { color: var(--gold-light); }
.card-foot { display: flex; align-items: center; gap: 9px; padding-top: 11px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 11px; }
.age { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: var(--silver); border: 1px solid var(--silver-deep); border-radius: 50%; font-size: 10px; font-weight: 900; }

.article-card { max-width: 760px; padding: 25px 20px 22px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #102b49, #091b31 28%, #08182a); box-shadow: 0 22px 65px rgba(0,0,0,.32); }
.article-eyebrow { display: inline-block; margin-bottom: 8px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.article-card h2, .article-card h3 { color: var(--cream); font-weight: 700; line-height: 1.45; }
.article-card h2 { margin: 0 0 14px; font-size: clamp(23px, 6vw, 31px); }
.article-card h3 { margin: 0 0 10px; font-size: 20px; }
.article-card p { margin: 0 0 15px; color: var(--muted); font-size: 16px; line-height: 1.78; }
.article-head p { margin-bottom: 0; }
.article-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.article-section p:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--soft-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { min-height: 52px; display: flex; align-items: center; padding: 10px 2px; color: var(--silver); font-size: 16px; font-weight: 700; cursor: pointer; }
.faq details p { padding: 0 2px 15px; }
.article-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--soft-line); color: var(--silver-deep); font-size: 13px; line-height: 1.6; }

@media (max-width: 480px) {
  .info-row { grid-template-columns: 27px minmax(0, 1fr); }
  .info-row strong { grid-column: 2; margin-top: -5px; text-align: left; }
}
@media (max-width: 360px) {
  .portal-card { padding-inline: 12px; }
  .entry-meta { font-size: 11px; gap: 5px; }
  .article-card { padding-inline: 17px; }
}
@media (min-width: 700px) {
  .page-shell { gap: 36px; padding: 32px 24px 64px; }
  .portal-card { padding: 30px 22px 23px; border-radius: 32px; }
  .hero-media { aspect-ratio: 1 / 1; border-radius: 24px; }
  .article-card { padding: 34px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .portal-card::after, .hero-media::after { animation: none; }
}
@keyframes border-run { to { --angle: 360deg; } }

/* Black / Pink palette; dimensions and vertical shortlink structure stay as v9. */
:root {
  --page: #0b090d;
  --card: #120d15;
  --panel: #241724;
  --panel-2: #19111b;
  --gold: #ff3595;
  --gold-light: #ffa3cf;
  --silver: #fff0f7;
  --silver-deep: #d2afc3;
  --blue: #d64b9b;
  --cream: #fff7fb;
  --muted: #dec9d6;
  --line: rgba(255, 178, 217, .38);
  --soft-line: rgba(255, 178, 217, .2);
}
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(218, 38, 121, .3), transparent 34%),
    radial-gradient(circle at 8% 48%, rgba(255, 89, 168, .08), transparent 31%),
    linear-gradient(135deg, #0b090d, #1b101c 52%, #08080b);
}
.portal-card {
  border-color: rgba(255, 163, 207, .66);
  background: linear-gradient(180deg, rgba(255, 73, 153, .12), transparent 22%), var(--card);
  box-shadow: 0 30px 90px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.07);
}
.portal-card::after {
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(255,53,149,.25) 68%, #fff0f7 74%, var(--gold-light) 78%, var(--gold) 82%, transparent 90% 100%);
}
.brand { filter: drop-shadow(0 6px 14px rgba(255,53,149,.34)); }
.brand span:first-child { color: #fff0f7; text-shadow: 0 2px 0 #8d6278; }
.brand span:last-child { color: #ff8dc5; text-shadow: 0 2px 0 #812853; }
.hero-media {
  border-color: rgba(255, 191, 223, .86);
  background: #21101e;
  box-shadow: 0 16px 42px rgba(0,0,0,.48), 0 0 32px rgba(255,53,149,.19);
}
.hero-media::after {
  background: conic-gradient(from var(--angle), transparent 0 70%, #ff3595 76%, #fff0f7 80%, #ff9dcc 84%, transparent 90%);
}
.hero-photo { object-position: center 26%; }
.hero-shade { background: linear-gradient(180deg, rgba(12,5,13,.2), transparent 31%, transparent 43%, rgba(15,4,15,.65) 72%, rgba(11,5,12,.93)); }
.hero-media figcaption { text-shadow: 0 3px 12px #100711, 0 2px 0 #7a2855; }
.entry-meta { background: linear-gradient(90deg, #241421, #4c213c, #241421); }
.entry-dot { box-shadow: 0 0 12px rgba(255,53,149,.8); }
.action-primary {
  color: #220b19;
  background: linear-gradient(125deg, #ffd4e9, #ff5ca9 52%, #d91e77);
  box-shadow: 0 10px 28px rgba(255,53,149,.26), inset 0 1px rgba(255,255,255,.5);
}
.action-secondary {
  border-color: #ff9dcc;
  background: linear-gradient(110deg, rgba(120,34,78,.33), rgba(28,13,25,.7));
}
.info-icon { border-color: rgba(255,178,217,.32); background: rgba(255,53,149,.12); }
.article-card {
  background: linear-gradient(180deg, #241626, #170f1b 28%, #100d14);
  box-shadow: 0 22px 65px rgba(0,0,0,.38);
}

/* Onyx Pink identity: retain the order and sizing of the shortlink layout. */
:root {
  --page: #09090d;
  --card: #101016;
  --panel: #1b1921;
  --panel-2: #14131a;
  --gold: #ff4ba3;
  --gold-light: #ffb5d9;
  --silver: #f7f2f7;
  --silver-deep: #c9bdc9;
  --blue: #e277b6;
  --cream: #faf8fb;
  --muted: #d4c9d3;
  --line: rgba(240, 190, 222, .34);
  --soft-line: rgba(240, 190, 222, .17);
}
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,75,163,.18), transparent 30%),
    radial-gradient(circle at 95% 42%, rgba(180,100,150,.09), transparent 28%),
    linear-gradient(145deg, #09090d, #111018 52%, #08090c);
}
.portal-card {
  border-color: rgba(239,202,224,.59);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,75,163,.08), transparent 23%), var(--card);
}
.portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 118px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #f4d9e9, var(--gold), transparent);
  box-shadow: 0 0 19px rgba(255,75,163,.55);
}
.portal-card::after { background: conic-gradient(from var(--angle), transparent 0 62%, rgba(255,75,163,.18) 68%, #f8dcec 75%, #ff75ba 79%, transparent 88% 100%); }
.brand-header { position: relative; }
.brand {
  font-style: normal;
  font-size: clamp(42px, 12vw, 53px);
  letter-spacing: -2px;
  filter: drop-shadow(0 6px 18px rgba(255,75,163,.25));
}
.brand span:first-child { color: #f6f3f7; text-shadow: 0 2px 0 #827486; }
.brand span:last-child { color: #ff71b6; text-shadow: 0 2px 0 #953d6d; }
.brand-kicker { color: #e5b1cf; letter-spacing: 3px; }
.hero-media { border-color: rgba(247,214,232,.82); border-radius: 12px; background: #18121a; }
.hero-media::after { border-radius: inherit; background: conic-gradient(from var(--angle), transparent 0 70%, #ff5ca9 76%, #f6e5f0 80%, #ff8fc5 84%, transparent 90%); }
.hero-photo { object-position: center center; }
.hero-shade { background: linear-gradient(180deg, rgba(11,8,14,.09), transparent 43%, rgba(12,8,14,.08) 53%, rgba(8,6,10,.79) 83%, rgba(8,6,10,.94)); }
.hero-tag {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 15px;
  padding: 5px 9px;
  border: 1px solid rgba(255,220,237,.58);
  background: rgba(12,9,14,.55);
  color: #f8e5ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
}
.hero-media figcaption { left: 18px; right: 16px; bottom: 16px; text-align: left; font-size: clamp(21px, 6vw, 27px); line-height: 1.2; text-shadow: 0 3px 12px #050408; }
.hero-media figcaption::before { content: ""; display: block; width: 45px; height: 2px; margin-bottom: 8px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero-media figcaption strong { color: #ff9acb; font-size: 1.1em; }
.entry-meta { border-color: rgba(255,172,213,.2); background: #1b1520; color: #e5d7e2; letter-spacing: .3px; }
.action-primary { background: linear-gradient(110deg, #ffc6e2, #ff77ba 46%, #ed3994); color: #200d19; }
.action-secondary { border-color: #cfaac3; background: #151219; }
.info-panel { background: linear-gradient(180deg, #1d1923, #15131b); border-radius: 9px; }
.info-row { border-color: rgba(244,180,218,.14); }
.info-icon { border-radius: 4px; background: #3a2031; color: #ffc6e2; }
.article-card { border-radius: 14px; background: linear-gradient(180deg, #19151d, #111017 28%, #0f0e13); }
@media (min-width: 700px) { .portal-card { border-radius: 19px; } .hero-media { border-radius: 13px; } .article-card { border-radius: 18px; } }
