/* punk-ray.css — THUD CORE's Raypunk (run 2, 2026-10-15; the owner: «4th skin in Raypunk style please»): the atomic age's
   dream of the future. Chrome bezels, a cherry-red enamel pinstripe, an atomic teal glow, an amber dial-light; the count an
   orbit of dots, the score orbited, each readiness plate marked with an atom. Cherry red is trim alone, never a state (red
   is the wrong answer's); Ukraine's blue and yellow stay the accent (teal) and the reward (amber). Its faces are THUD's own
   shelf (fonts/, through fonts.css and thud-def.css): Rubik's rounded bold for titles, a little slanted where the name
   stands, as a 1950s badge is; Montserrat's capitals for labels (Futura's cousin, the space age's face); Inter for text.
   Nothing new to load, and none is put on what a card teaches. The name in the intro is here, not punk.css: the sheet is
   the whole skin. */
html[data-palette="ray"] {
  --caps: "Montserrat DEF", "Montserrat", var(--face);
  --display: "Rubik", "Inter DEF", var(--face);
  --ui: "Inter DEF", "Inter", var(--face);
  --gold: #ffb14a;
  --gold-hot: #fff1cc;
  --teal: #52dcc6;
  --cherry: #e8384f;
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe8ec 18%, #9aa9b1 46%, #f4f8fa 52%, #b7c3c9 74%, #eef3f5 100%);
  /* the glass: a chrome bezel, bright above and steel below; a teal glow for its sheen */
  --rim: rgba(236, 246, 250, .72);
  --rim-soft: rgba(150, 180, 190, .22);
  --rim-far: rgba(70, 92, 102, .55);
  --hi: rgba(220, 250, 245, .14);
  --glass-top: rgba(150, 240, 225, .06);
  --spot: rgba(110, 230, 210, .2);
  --sheen: rgba(230, 250, 255, .16);
  /* a chrome highlight along a panel's top, lit teal at its middle */
  --horizon: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34) 22%, rgba(82, 220, 198, .7) 50%, rgba(255, 255, 255, .34) 78%, transparent);
  --atom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%2352dcc6' stroke-width='1.3' opacity='.62'%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2'/%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2' transform='rotate(60 20 20)'/%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2' transform='rotate(120 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.8' fill='%23e8384f'/%3E%3C/svg%3E");
}
html[data-look="milk"][data-palette="ray"] {
  --gold: #8a4e00;
  --teal: #068573;
  --cherry: #c21d38;
  --rim: rgba(120, 140, 150, .6);
  --rim-soft: rgba(150, 170, 180, .2);
  --rim-far: rgba(40, 60, 66, .3);
  --hi: rgba(255, 255, 255, .75);
  --spot: rgba(200, 245, 235, .38);
  --horizon: linear-gradient(90deg, transparent, rgba(6, 133, 115, .45) 50%, transparent);
  --atom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23068573' stroke-width='1.3' opacity='.55'%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2'/%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2' transform='rotate(60 20 20)'/%3E%3Cellipse cx='20' cy='20' rx='17' ry='6.2' transform='rotate(120 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.8' fill='%23c21d38'/%3E%3C/svg%3E");
}
html[data-palette="ray"] body { font-family: var(--ui); }

/* titles in Rubik's rounded bold; labels Montserrat's capitals, tracked wide; numbers Rubik's, lining */
html[data-palette="ray"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .brief__title) {
  font-family: var(--display); font-weight: 700; letter-spacing: -.012em; }
html[data-palette="ray"] .caps { font-family: var(--caps); font-weight: 700; letter-spacing: .22em; }
html[data-palette="ray"] :is(.def-cell b, .fr-arc__n, .fr-tiles b, .fr-tile b) { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
html[data-palette="ray"] .def-brand b { font-family: var(--display); font-weight: 700; font-style: oblique 9deg; letter-spacing: .06em; }
html[data-palette="ray"] .def-brand i { font-family: var(--caps); font-weight: 700; letter-spacing: .26em; }

/* the panels: smoked glass in a chrome bezel, a chrome highlight along the top, lit teal at its middle */
html[data-palette="ray"] .glass:not(.chip):not(.tabbar):not(.btn):not(.def-cell):not(.fr-tile) {
  background-image: var(--horizon), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% 1px, 100% 100%; background-repeat: no-repeat; background-position: 0 0, 0 0; }
/* the readiness plates: each marked with an atom in its corner, its nucleus a drop of cherry enamel */
html[data-palette="ray"] :is(.def-cell, .fr-tile) {
  background-image: var(--atom), var(--horizon), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 28px 28px, 100% 1px, 100% 100%; background-position: calc(100% - 9px) 9px, 0 0, 0 0; background-repeat: no-repeat; border-radius: 20px; }

/* the strategies' covers: a polished chrome frame with a cherry-red pinstripe inside it, a 1950s dashboard's trim */
html[data-palette="ray"] .def-card { border-radius: 22px; outline: 1px solid rgba(232, 56, 79, .55); outline-offset: -7px; }
html[data-palette="ray"] .def-card::before { padding: 1.5px;
  background: linear-gradient(160deg, #ffffff, #b9c6cc 22%, #5c6b72 46%, #f2f6f8 54%, #8e9ca3 78%, #e6edf0); }
html[data-palette="ray"] .def-card:hover { box-shadow: 0 0 0 1px rgba(82, 220, 198, .45), 0 0 26px -8px rgba(82, 220, 198, .5), var(--cast); }
html[data-palette="ray"] .def-card__n { color: var(--teal); }

/* the primary: cream enamel warming to amber, a chrome ring round it, its dial-light lit */
html[data-palette="ray"] .btn--primary { border-radius: 999px; font-weight: 700; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 var(--btn-rim), inset 0 -10px 16px -10px var(--btn-deep), 0 0 0 1.5px rgba(214, 226, 232, .72), 0 10px 26px -10px rgba(255, 170, 60, .55); }
html[data-look="milk"][data-palette="ray"] .btn--primary {
  box-shadow: inset 0 1px 0 var(--btn-rim), inset 0 -10px 16px -10px var(--btn-deep), 0 0 0 1.5px rgba(110, 128, 136, .5), 0 8px 20px -10px rgba(190, 110, 20, .45); }

/* the count: an orbit of dots for its track, its bar lit teal */
html[data-palette="ray"] .ring__track { stroke-dasharray: .1 3.6; stroke-linecap: round; }
html[data-palette="ray"] .fr-arc .ring__bar { filter: drop-shadow(0 0 7px rgba(82, 220, 198, .7)) drop-shadow(0 0 16px rgba(232, 56, 79, .22)); }
/* the Debrief's score in its rim (PUNK.md call 41, ART.md §8): an atomic-age radio dial's mirror-polished chrome, stepped
   round a thin ring of cherry enamel, a Firefly bezel cut round by cut_rims.py (scripts/rims.json «ray»); it took the place
   of the skin's orbits */
html[data-palette="ray"] .fr-arc, html[data-palette="ray"] .fr-res .fr-arc { margin: 38px 0 36px; }
html[data-palette="ray"] .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/ray/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }

/* the hero: the name in polished chrome by night (lit teal), in deep space ink by day; a little slanted, as a badge is */
html[data-palette="ray"] .def-hero__title { font-style: oblique 7deg; }
html:not([data-look="milk"])[data-palette="ray"] .def-hero__title { background-image: var(--chrome); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(82, 220, 198, .32)); }
html:not([data-look="milk"])[data-palette="ray"] .def-hero__eyebrow { color: var(--acc-ink); }

/* the name in the intro: chrome, its rule teal with a cherry heart */
html[data-palette="ray"] .intro__thud { font-family: "Rubik", "Inter DEF", sans-serif; font-weight: 700; font-style: oblique 8deg; letter-spacing: .04em;
  background-image: linear-gradient(180deg, #ffffff 0%, #e4edf0 24%, #8fa1aa 48%, #f6fafb 53%, #9fb0b8 76%, #52dcc6 100%); }
html[data-palette="ray"] .intro__arms > i { background-image: linear-gradient(180deg, #ffffff 0%, #e4edf0 24%, #8fa1aa 48%, #f6fafb 53%, #9fb0b8 76%, #52dcc6 100%); }
html[data-palette="ray"] .intro__def { font-family: "Montserrat DEF", "Montserrat", sans-serif; font-weight: 700; letter-spacing: .5em; }
html[data-palette="ray"] .intro__rule { background: linear-gradient(90deg, transparent, #52dcc6, #e8384f, #52dcc6, transparent); }

/* ── the companion's burst (RAM.md §7, thud.js burst): stardust that twinkles out, and an orbit widening round the bird with its one
   bright electron ── */
[data-ram="ray"] .petal { left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #effffc !important; box-shadow: 0 0 6px 2px rgba(110, 250, 230, .75); }
[data-ram="ray"] .petal.p2 { background: #ffd27c !important; box-shadow: 0 0 6px 2px rgba(255, 196, 110, .7); }
.orbit { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 1.5px solid rgba(82, 220, 198, .85);
  opacity: 0; pointer-events: none; animation: ram-orbit-out 1.2s var(--ease-out) both; }
.orbit b { position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #e8384f;
  box-shadow: 0 0 6px #e8384f; transform-origin: 3px 43px; animation: ram-electron 1.2s linear both; }
@keyframes ram-orbit-out { 0% { opacity: 0; transform: scale(.4, .16); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35, .54); } }
@keyframes ram-electron { to { transform: rotate(540deg); } }

/* the primary key (punk.css «the primary key»): its chrome ring */
html[data-palette="ray"] { --key-ring: 0 0 0 1.5px rgba(214, 226, 232, .72); }
html[data-look="milk"][data-palette="ray"] { --key-ring: 0 0 0 1.5px rgba(110, 128, 136, .5); }
