﻿/* Villa Sirocco (a fictional villa, a Repliwave demo). The site is the villa's floor plan, drawn as a blueprint.
   Tap a pillow for each guest: the bedrooms in use light up, and the price follows the rooms that are opened.
   Blueprint blue, white line, lamp gold. Bodoni Moda for headings, Geist Mono for labels and figures, Geist for text; Arabic uses the system font.
   Logical properties only, so Arabic mirrors by itself (the plan is a drawing and keeps its orientation). Breakpoints: base (375), 768, 1280. */
:root { --bg: #0f3354; --fg: #eef3f5; --acc: #2e5f8a; --acc2: #f0c16b; --card: #fff; --card-fg: #1c2b33; --line: rgba(238, 243, 245, .22); --soft: rgba(238, 243, 245, .78); --focus: #f0c16b;
  --display: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif; --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar: 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'DejaVu Sans', sans-serif;
  --hw: 400; --ls: -.03em; --r: 1.2rem; --gut: clamp(1.1rem, 4vw, 4rem); --foot-bg: #0a2238; --foot-fg: #eef3f5; --foot-mark: #f0c16b; --bg-light: #eef3f5; --chip-bg: #fff; --chip-fg: #1c2b33; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
body { background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[dir='rtl'] body, [dir='rtl'] input, [dir='rtl'] textarea, [dir='rtl'] button { font-family: var(--ar); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--focus, var(--acc)); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 60; background: var(--fg); color: var(--bg); padding: .5rem .9rem; }
.skip:focus { inset-inline-start: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--hw); letter-spacing: var(--ls); }
[dir='rtl'] h2, [dir='rtl'] h3 { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.wrap { max-width: 86rem; margin-inline: auto; padding-inline: var(--gut); }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: max(.5rem, env(safe-area-inset-top)) var(--gut) .5rem; background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { font: var(--hw) 1.25rem/1 var(--display); letter-spacing: var(--ls); text-decoration: none; white-space: nowrap; }
.menu { display: none; gap: 1.5rem; margin-inline-start: auto; }
.menu a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.langs { display: flex; }
.langs button { background: none; border: 0; font: 400 .74rem/1 var(--mono); padding: .5rem .45rem; min-width: 2.3rem; min-height: 2.75rem; cursor: pointer; opacity: .75; border-radius: 99px; }
.langs button[lang='ar'] { font-family: var(--ar); font-size: .95rem; }
.langs button[aria-pressed='true'] { opacity: 1; background: var(--fg); color: var(--bg); }
.badge { display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.75rem; font-size: .78rem; text-decoration: none; border: 1px solid currentColor; border-radius: 99px; padding: .5rem .85rem; }
.badge .full { display: none; }
@media (min-width: 560px) { .badge .full { display: inline; } .badge .short { display: none; } }
@media (min-width: 900px) { .menu { display: flex; } .tools { margin-inline-start: 1.2rem; } }
.kicker { font: 400 .78rem/1.4 var(--mono); color: var(--acc2, var(--acc)); margin-bottom: .3rem; }
[dir='rtl'] .kicker { font-family: var(--ar); font-size: .92rem; }
.lead { color: var(--soft); max-width: 48ch; margin-top: .5rem; font-size: 1rem; }
[dir='rtl'] .lead { line-height: 1.9; }
.card > * { min-width: 0; }
.card { background: var(--card); color: var(--card-fg); --line: color-mix(in srgb, var(--card-fg) 18%, transparent); --soft: color-mix(in srgb, var(--card-fg) 70%, transparent); border-radius: var(--r); padding: 1.3rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .8rem; color: var(--soft); }
.card input[type=text], .card input[type=email], .card textarea { width: 100%; background: #fff; border: 1px solid color-mix(in srgb, var(--card-fg) 32%, transparent); border-radius: calc(var(--r) * .5); padding: .7rem .9rem; font-size: 1rem; min-height: 2.9rem; color: var(--card-fg); }
.card textarea { resize: vertical; }
.card [aria-invalid='true'] { border-color: #b3261e; }
.err { font-size: .78rem; color: #b3261e; min-height: 1em; }
.cta { display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 500; text-decoration: none; text-align: center; border: 1px solid currentColor; border-radius: var(--pill, 99px); padding: .85rem 1.4rem; min-height: 3rem; cursor: pointer; background: transparent; color: inherit; transition: background-color .25s, color .25s, border-color .25s, opacity .25s; }
.cta.primary { background: var(--acc); border-color: var(--acc); color: #fff; width: 100%; }
.cta.primary:hover { background: var(--card-fg); border-color: var(--card-fg); }
.cta.primary:disabled { opacity: .35; pointer-events: none; }
.cta.light { background: var(--bg-light, #fff); border-color: var(--bg-light, #fff); color: var(--foot-bg); }
.textlink { background: none; border: 0; padding: 0; min-height: 2.75rem; cursor: pointer; font-size: .9rem; color: var(--acc); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; justify-self: start; text-align: start; }
.small { font-size: .8rem; color: var(--soft); }
.ref { display: inline-grid; gap: .15rem; padding: .7rem 1rem; background: color-mix(in srgb, var(--card-fg) 7%, transparent); border-radius: calc(var(--r) * .6); justify-self: start; }
.ref b { font: 600 1.3rem/1.1 var(--mono); }
.ref span { font-size: .74rem; color: var(--soft); }
.done h3 { font-size: 1.7rem; line-height: 1.1; }
[dir='rtl'] .done h3 { font-size: 1.35rem; line-height: 1.5; }
.done dl { display: grid; gap: .5rem; margin: 0; }
.done dt { font-size: .74rem; color: var(--soft); }
.done dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.row::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; justify-items: center; gap: .1rem; min-width: 3.6rem; min-height: 3.4rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: calc(var(--r) * .6); background: transparent; cursor: pointer; font-size: .72rem; color: var(--soft); }
.day b { font: 600 1.05rem/1 var(--mono); color: var(--card-fg); }
.day[aria-pressed='true'] { background: var(--acc); border-color: var(--acc); color: #fff; }
.day[aria-pressed='true'] b { color: #fff; }
.day:disabled { opacity: .32; cursor: default; }
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; }
[dir='rtl'] .sec h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.3; }
.rules { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .8rem; max-width: 46ch; color: var(--soft); }
.rules li { padding-inline-start: 1.2rem; position: relative; }
.rules li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--acc); }
.qchips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.qchips button { background: var(--chip-bg, #fff); color: var(--chip-fg, #222); border: 0; border-radius: var(--pill, 99px); padding: .8rem 1.3rem; min-height: 3rem; cursor: pointer; text-align: start; font-size: clamp(1rem, 1.7vw, 1.2rem); transition: background-color .25s, color .25s; }
.qchips button:hover { background: var(--acc); color: #fff; }
.foot { background: var(--foot-bg); color: var(--foot-fg); padding-top: clamp(3rem, 7vw, 5rem); overflow: clip; }
.foot .wrap { display: grid; gap: 1.4rem; justify-items: start; }
.foot-note { max-width: 44ch; opacity: .9; }
.wordmark { font: var(--hw) clamp(2.6rem, 13vw, 13rem)/.85 var(--display); letter-spacing: var(--ls); white-space: nowrap; text-align: center; color: var(--foot-mark); margin-top: 2.5rem; padding-bottom: 5rem; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.pop { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }

.card :focus-visible, .paper :focus-visible { outline-color: var(--acc); }
.house { padding-block: clamp(1rem, 2vw, 1.8rem) clamp(2.5rem, 5vw, 4.5rem); background-image: linear-gradient(rgba(238, 243, 245, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 243, 245, .05) 1px, transparent 1px); background-size: 28px 28px; }
.intro { display: grid; gap: .6rem 2.5rem; align-items: end; margin-bottom: 1.2rem; }
@media (min-width: 860px) { .intro { grid-template-columns: auto 1fr; } .intro > div:last-child { max-width: 30rem; justify-self: end; } }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .9; }
.intro h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; font-style: italic; color: var(--acc2); }
[dir='rtl'] .intro h2 { font-style: normal; line-height: 1.5; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.board { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .board { grid-template-columns: minmax(0, max(32rem, calc((100svh - 15.5rem) * 1.44))) 25rem; justify-content: space-between; gap: 2.5rem; align-items: start; } }
.planbox { border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); background: radial-gradient(90% 80% at 50% 30%, #1a4f7d, #0b2740); overflow: hidden; }
/* the plan is a model seen from above and to one side: stacked drawings, tilted in real 3D */
#plan { position: relative; aspect-ratio: 720 / 500; perspective: 1500px; perspective-origin: 50% 10%; touch-action: manipulation; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(4%) rotateX(calc(50deg + var(--ty, 0deg))) rotateZ(calc(-14deg + var(--tz, 0deg))) scale(.9); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.ly { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ly.base { filter: drop-shadow(0 calc(var(--u, .6) * 50px) calc(var(--u, .6) * 40px) rgba(0, 8, 20, .7)); }
@media (max-width: 700px) { #plan { aspect-ratio: 720 / 600; } .tilt { transform: translateY(2%) rotateX(calc(28deg + var(--ty, 0deg))) rotateZ(calc(-5deg + var(--tz, 0deg))) scale(.9); } }
#plan .wall { fill: none; stroke: #f4f8fa; stroke-width: 5; stroke-linejoin: round; }
#plan .thin { fill: none; stroke: rgba(238, 243, 245, .6); stroke-width: 1.3; }
#plan .dash { fill: rgba(238, 243, 245, .04); stroke: rgba(238, 243, 245, .5); stroke-width: 1.3; stroke-dasharray: 6 6; }
#plan text { font: 500 12px var(--mono); fill: rgba(238, 243, 245, .75); text-anchor: middle; dominant-baseline: central; }
#plan text.rm { font-size: 13px; transition: fill .5s; }
#plan .glow { fill: #f0c16b; opacity: 0; transition: opacity .7s; }
#plan .glow.on { opacity: .26; }
#plan text.rm.on { fill: #f8dfa6; }
#plan .win { stroke: rgba(238, 243, 245, .5); stroke-width: 9; stroke-linecap: round; transition: stroke .7s; }
#plan .win.on { stroke: #f0c16b; }
#plan .lamp { opacity: 0; transition: opacity .8s; }
#plan .lamp.on { opacity: 1; animation: lamp 4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .8; } }
#plan .sl { pointer-events: auto; }
#plan text.tb { font: 600 11px var(--mono); letter-spacing: .12em; fill: #eef3f5; } #plan text.tbs { font: 500 9.5px var(--mono); letter-spacing: .08em; fill: rgba(238, 243, 245, .75); }
/* on arrival the model starts as a flat plan and rises into three dimensions */
@property --lift { syntax: '<number>'; inherits: true; initial-value: 1; }
.tilt { animation: rise 1.9s cubic-bezier(.2, .8, .2, 1) .25s backwards; }
@keyframes rise { from { --lift: 0; transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(.8); } }

#plan .sl { cursor: pointer; outline: none; }
#plan .sl .hit { fill: transparent; }
#plan .sl .pillow { fill: rgba(238, 243, 245, .06); stroke: #eef3f5; stroke-width: 1.6; stroke-dasharray: 5 4; transition: fill .4s, stroke .4s; }
#plan .sl .blanket { fill: rgba(238, 243, 245, .04); stroke: rgba(238, 243, 245, .55); stroke-width: 1.3; transition: fill .5s; }
#plan .sl .plus { stroke: #eef3f5; stroke-width: 2; stroke-linecap: round; transition: opacity .3s; }
#plan .sl .head, #plan .sl .body, #plan .sl .zz { opacity: 0; transition: opacity .4s; }
#plan .sl:hover .pillow, #plan .sl:focus-visible .pillow { fill: rgba(240, 193, 107, .3); stroke: #f0c16b; }
#plan .sl.on .pillow { fill: #fbf3df; stroke: #fbf3df; stroke-dasharray: none; }
#plan .sl.on .blanket { fill: rgba(240, 193, 107, .55); }
#plan .sl.on .plus { opacity: 0; }
#plan .sl.on .head { opacity: 1; fill: #c98f5a; }
#plan .sl.on .body { opacity: .35; fill: #5b3a1a; }
#plan .sl.on .zz { opacity: 1; fill: #f8dfa6; font: 600 13px var(--mono); animation: zz 3.2s ease-in-out infinite; }
@keyframes zz { 0% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(7px, -16px); opacity: 0; } }
#plan .wave { fill: none; stroke: rgba(238, 243, 245, .55); stroke-width: 1.5; stroke-dasharray: 26 14; animation: wave 7s linear infinite; }
#plan .wave.w2 { animation-duration: 10s; stroke: rgba(238, 243, 245, .32); }
@keyframes wave { to { stroke-dashoffset: -80; } }
.card { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
@media (min-width: 1080px) { .card { position: sticky; top: 4.6rem; } }
.card h2 { font-size: 2rem; line-height: 1; }
[dir='rtl'] .card h2 { font-size: 1.55rem; line-height: 1.4; }
.roomline { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; list-style: none; padding: 0; }
.roomline li { font-size: .8rem; padding: .3rem .7rem; border-radius: 99px; border: 1px dashed var(--line); color: var(--soft); }
.roomline li.on { border-style: solid; border-color: #d39b2c; background: #fbf3df; color: #5b3a1a; }
.priceline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; font-size: .92rem; color: var(--soft); }
.priceline b { font: 500 1.05rem/1.2 var(--mono); color: var(--card-fg); white-space: nowrap; }
.priceline.total { border-top: 1px solid var(--line); padding-top: .8rem; }
.priceline.total b { font-size: 1.7rem; letter-spacing: -.03em; }
[dir='rtl'] .priceline b { font-family: var(--ar); }
.moons { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.moon { aspect-ratio: 1; min-height: 2.75rem; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; border-radius: 50%; }
.moon i { width: 62%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--card-fg) 35%, transparent); transition: background-color .3s, box-shadow .3s, transform .3s; }
.moon.on i { background: #f0c16b; box-shadow: inset -5px -3px 0 rgba(91, 58, 26, .22); }
.moon:hover i { transform: scale(1.15); }
.checks { display: grid; gap: .3rem; }
.check { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; cursor: pointer; font-size: .92rem; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--acc); flex: none; }
.check span { flex: 1; }
.check b { font: 500 .85rem/1 var(--mono); color: var(--soft); white-space: nowrap; }
.card .field > span { overflow-wrap: anywhere; }
.warn { font-size: .86rem; color: #9a2b1f; }
.paper { background: #eef3f5; color: #1c2b33; --soft: rgba(28, 43, 51, .75); }
.two { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .two { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; } .two .rules { margin-top: .6rem; } }
.ocean { background: #2e5f8a; --soft: rgba(238, 243, 245, .88); }
.ocean .qchips button:hover { background: #0f3354; }

/* finish: weight and light on everything you can press, steadier numerals, cleaner type */
body { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { text-wrap: balance; }
output, time, .price, .mono, .qtotal b, .priceline b, .ref b, .num { font-variant-numeric: tabular-nums; }
.cta, .chip, .day, .slot, .sw, .quick, .wchip, .qchips button, .chips button, .nudge button, .qty button, .moon, .langs button { transition-property: background-color, color, border-color, transform, box-shadow, opacity; transition-duration: .2s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.cta:active, .chip:active, .day:active, .slot:active, .sw:active, .quick:active, .wchip:active, .qchips button:active, .chips button:active, .nudge button:active { transform: translateY(1px) scale(.985); }
.cta.primary, .cta.terra { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 22px -14px rgba(0, 0, 0, .65); }
.cta.primary:hover, .cta.terra:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 26px -14px rgba(0, 0, 0, .7); transform: translateY(-1px); }
.card, .panel, .summary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .06), 0 22px 44px -26px rgba(0, 0, 0, .5), 0 60px 90px -70px rgba(0, 0, 0, .45); }
input[type=text], input[type=email], input[type=tel], textarea { transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
input[type=text]:focus-visible, input[type=email]:focus-visible, input[type=tel]:focus-visible, textarea:focus-visible { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.day[aria-pressed='true'], .slot[aria-pressed='true'], .chip[aria-pressed='true'] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 14px -10px rgba(0, 0, 0, .6); }

/* talk: the assistant shown as a conversation; facts as numbered cards; the footer name fitted to its width */
:root { --t-acc: #2e5f8a; --t-bg: #2e5f8a; --t-fg: #eef3f5; }
.talk { background: var(--t-bg) !important; color: var(--t-fg) !important; }
.talk .lead { color: color-mix(in srgb, var(--t-fg) 82%, transparent) !important; }
.talkgrid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .talkgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.chat { position: relative; background: #fffdf9; color: #1d2422; border-radius: 1.6rem; padding: 1.3rem; display: grid; gap: 1rem; max-width: 34rem; width: 100%; justify-self: end; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 4px rgba(0, 0, 0, .08), 0 30px 60px -30px rgba(0, 0, 0, .55), 0 70px 90px -70px rgba(0, 0, 0, .5); transform: rotate(-.6deg); }
[dir='rtl'] .chat { transform: rotate(.6deg); }
.chat .who { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(29, 36, 34, .1); }
.chat .av { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--t-acc) 60%, #fff), var(--t-acc) 62%, color-mix(in srgb, var(--t-acc) 70%, #000)); color: #fff; font-weight: 600; font-size: 1.15rem; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.chat .who strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.chat .who small { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(29, 36, 34, .65); }
.chat .who small::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 3px rgba(63, 174, 106, .2); }
.chat .bubble { justify-self: start; max-width: 90%; background: color-mix(in srgb, var(--t-acc) 9%, #f4f1ea); border-radius: 1.2rem; border-start-start-radius: .3rem; padding: .85rem 1.05rem; font-size: 1.02rem; line-height: 1.5; }
.chat .qchips { display: flex; flex-wrap: wrap; margin-top: 0 !important; justify-content: flex-end; gap: .45rem; }
.chat .qchips button { background: transparent !important; color: var(--t-acc) !important; border: 1.5px solid color-mix(in srgb, var(--t-acc) 55%, transparent) !important; border-radius: 1.2rem !important; border-end-end-radius: .3rem !important; padding: .6rem 1rem !important; min-height: 2.75rem; font: 500 .95rem/1.3 var(--sans, inherit) !important; text-align: start; }
[dir='rtl'] .chat .qchips button { font-family: var(--ar) !important; }
.chat .qchips button:hover { background: var(--t-acc) !important; color: #fff !important; border-color: var(--t-acc) !important; }
.rules { counter-reset: rule; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); max-width: none !important; gap: .7rem !important; }
.rules li { counter-increment: rule; padding: 1rem 1.1rem 1.1rem !important; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: .9rem; background: color-mix(in srgb, currentColor 3%, transparent); line-height: 1.5; }
.rules li::before { content: counter(rule, decimal-leading-zero) !important; position: static !important; display: block; width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; font: 500 .74rem/1 ui-monospace, 'Geist Mono', Menlo, monospace; letter-spacing: .06em; opacity: .6; margin-bottom: .55rem; }
.wordmark { font-size: min(13rem, calc(150vw / var(--chars, 12))) !important; }

/* polish 2: brand mark, the confirmation moment, paper grain, sections that ease in */
.mark { display: none; flex: none; width: 1.75rem; height: 1.75rem; color: inherit; margin-inline-end: -.45rem; }
.mark svg { width: 100%; height: 100%; display: block; }
@media (min-width: 480px) { .mark { display: block; } }
.okmark { width: 3.2rem; height: 3.2rem; color: var(--t-acc); display: block; }
.okmark circle { fill: color-mix(in srgb, var(--t-acc) 10%, transparent); stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 151; stroke-dashoffset: 151; animation: okdraw .65s cubic-bezier(.6, 0, .2, 1) forwards; }
.okmark path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okdraw .4s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes okdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .okmark circle, .okmark path { stroke-dashoffset: 0; } }
.ref, .ordernum { position: relative; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, var(--t-acc) 6%, transparent) !important; padding-inline: 1.3rem 2.6rem !important; }
.ref::after, .ordernum::after { content: ''; position: absolute; inset-inline-end: .8rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent); }
body::after { content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.1 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .sec > .wrap, .talk .chat { animation: easein linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes easein { from { opacity: 0; transform: translateY(34px); } } } }
.tile { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .tile { transform: perspective(800px) rotateX(7deg) translateY(-6px); box-shadow: 0 34px 40px -26px rgba(43, 42, 38, .55); }

/* narrow phones (320-400px): keep the top bar on one line, nothing wider than the screen */
@media (max-width: 400px) {
  .bar { gap: .5rem; }
  .brand { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tools { gap: .25rem; flex: none; }
  .langs button { min-width: 1.9rem; padding: .5rem .25rem; font-size: .7rem; }
  .badge { padding: .5rem .6rem; font-size: .72rem; }
}

@media (max-width: 400px) { .moons { grid-template-columns: repeat(7, minmax(0, 1fr)); } .moon { min-height: 0; min-width: 0; } }

