/* Laundry Defense's own pages (/games/laundrydefense/, its Japanese twin /games/laundrydefense/ja/, /games/laundrydefense/privacy, /games/laundrydefense/support): a night courtyard.
   /games/games.css is loaded first and gives the layout: the top bar, the footer, the .page text layout, .card,
   .chips. This file turns its cream paper into the game's night (Carson, 2026-11-15: "laundry defense website can
   be like a dark mode based one"): it re-sets the shared tokens on <body class="ld">, so every rule in games.css
   that reads --bg, --ink, --muted and the rest comes out dark without being copied here, then adds the game page's
   own parts (.ld-*). Dark is the only look; it does not follow the reader's light or dark setting.
   In games.css --ink is both the text colour and every border. Here --ink is the text (warm paper white) and
   --edge is the border, so each bordered thing games.css draws is given --edge below.
   The sky: stars at the top (a tile, plus two small sets that twinkle; bright only above the words and clear of the menu's row, faint behind the text), a wash of moonlight, and at the very bottom
   the game's own night courtyard, faded up into the sky. The pages end on its lawn.
   Bump ?v= in all four pages on every edit. */
.ld {
  color-scheme:dark;
  --bg:#0b1130; --bg2:#101a44; --card:#141d49; --well:#0f1638;
  --line:#060a1e;                                  /* the hard shadow under every card */
  --ink:#f6efe0; --muted:#b7c0e0; --faint:#8791bb;
  --edge:#3b4a92;                                  /* borders */
  --lamp:#ffcf6b;                                  /* lantern light: links, kickers, numbers */
  --red:var(--lamp); --red-deep:var(--lamp);       /* games.css paints links and kickers with these */
  --g:#8fc4ff; --gd:var(--lamp); --sun:#ffd447; --dusk:#161033;   /* --dusk: text on a lit (yellow) button */
  --night:#0a0e20; --night2:#27357a;
  position:relative; min-height:100vh; padding-bottom:max(13vw,132px);
  background:
    linear-gradient(to bottom, #0b1130 0, rgba(11,17,48,.9) 26%, rgba(11,17,48,.35) 62%, rgba(11,17,48,0) 86%) bottom center / 100% max(25.5vw,230px) no-repeat,
    url(/games/laundrydefense/img/courtyard.webp?v=1) bottom center / max(100%,900px) auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='380'%3E%3Ccircle cx='119' cy='6' r='1.4' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='119' cy='14' r='0.9' fill='%23fff' opacity='0.83'/%3E%3Ccircle cx='37' cy='15' r='0.7' fill='%23cfe0ff' opacity='0.6'/%3E%3Ccircle cx='213' cy='109' r='0.7' fill='%23cfe0ff' opacity='0.6'/%3E%3Ccircle cx='214' cy='51' r='0.6' fill='%23cfe0ff' opacity='0.33'/%3E%3Ccircle cx='256' cy='57' r='0.5' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='682' cy='72' r='0.7' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='212' cy='55' r='0.5' fill='%23cfe0ff' opacity='0.33'/%3E%3Ccircle cx='547' cy='6' r='1.4' fill='%23fff' opacity='0.81'/%3E%3Ccircle cx='446' cy='23' r='1.1' fill='%23fff' opacity='0.63'/%3E%3Ccircle cx='273' cy='93' r='1.1' fill='%23cfe0ff' opacity='0.67'/%3E%3Ccircle cx='670' cy='93' r='1.1' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='317' cy='229' r='0.5' fill='%23ffeebf' opacity='0.15'/%3E%3Ccircle cx='201' cy='9' r='0.7' fill='%23ffeebf' opacity='0.92'/%3E%3Ccircle cx='101' cy='181' r='0.7' fill='%23cfe0ff' opacity='0.2'/%3E%3Ccircle cx='316' cy='38' r='0.7' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='211' cy='11' r='1.1' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='124' cy='122' r='0.6' fill='%23fff' opacity='0.26'/%3E%3Ccircle cx='656' cy='276' r='0.5' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='170' cy='22' r='0.9' fill='%23cfe0ff' opacity='0.74'/%3E%3Ccircle cx='528' cy='143' r='0.6' fill='%23ffeebf' opacity='0.24'/%3E%3Ccircle cx='506' cy='343' r='0.7' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='501' cy='265' r='0.5' fill='%23cfe0ff' opacity='0.12'/%3E%3Ccircle cx='29' cy='338' r='0.6' fill='%23cfe0ff' opacity='0.12'/%3E%3Ccircle cx='485' cy='216' r='0.6' fill='%23fff' opacity='0.16'/%3E%3Ccircle cx='388' cy='6' r='1.1' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='584' cy='13' r='0.7' fill='%23fff' opacity='0.92'/%3E%3Ccircle cx='309' cy='229' r='0.7' fill='%23fff' opacity='0.15'/%3E%3Ccircle cx='575' cy='120' r='0.7' fill='%23cfe0ff' opacity='0.26'/%3E%3Ccircle cx='203' cy='26' r='0.7' fill='%23cfe0ff' opacity='0.35'/%3E%3Ccircle cx='482' cy='43' r='0.6' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='539' cy='59' r='0.6' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='710' cy='318' r='0.6' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='688' cy='6' r='0.7' fill='%23fff' opacity='0.84'/%3E%3Ccircle cx='393' cy='14' r='1.1' fill='%23ffeebf' opacity='0.63'/%3E%3Ccircle cx='252' cy='115' r='0.6' fill='%23fff' opacity='0.27'/%3E%3Ccircle cx='633' cy='6' r='1.1' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='376' cy='77' r='0.9' fill='%23cfe0ff' opacity='0.71'/%3E%3Ccircle cx='207' cy='62' r='0.5' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='308' cy='46' r='0.7' fill='%23ffeebf' opacity='0.33'/%3E%3Ccircle cx='225' cy='11' r='0.7' fill='%23cfe0ff' opacity='0.94'/%3E%3Ccircle cx='466' cy='285' r='0.7' fill='%23ffeebf' opacity='0.12'/%3E%3Ccircle cx='431' cy='164' r='0.5' fill='%23fff' opacity='0.22'/%3E%3Ccircle cx='308' cy='93' r='1.4' fill='%23fff' opacity='0.88'/%3E%3Ccircle cx='283' cy='36' r='0.6' fill='%23ffeebf' opacity='0.34'/%3E%3Ccircle cx='255' cy='286' r='0.7' fill='%23ffeebf' opacity='0.12'/%3E%3Ccircle cx='242' cy='68' r='0.9' fill='%23ffeebf' opacity='0.79'/%3E%3Ccircle cx='690' cy='262' r='0.7' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='559' cy='6' r='1.4' fill='%23cfe0ff' opacity='0.93'/%3E%3Ccircle cx='269' cy='106' r='1.1' fill='%23cfe0ff' opacity='0.87'/%3E%3Ccircle cx='571' cy='172' r='0.5' fill='%23cfe0ff' opacity='0.21'/%3E%3Ccircle cx='588' cy='7' r='0.9' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='425' cy='7' r='1.1' fill='%23fff' opacity='0.66'/%3E%3Ccircle cx='67' cy='233' r='0.6' fill='%23fff' opacity='0.15'/%3E%3C/svg%3E") top center / 720px 380px repeat-x,
    radial-gradient(70% 460px at 80% 0, rgba(86,112,220,.36), rgba(86,112,220,0) 70%),
    linear-gradient(180deg, #080d26 0, #0e1740 420px, #0b1130 1000px);
  background-color:#0b1130;
}
.ld::before, .ld::after { content:""; position:absolute; z-index:-1; top:0; left:0; width:2px; height:2px; border-radius:50%; pointer-events:none; animation:ld-twinkle 4.6s ease-in-out infinite alternate }
.ld::before { box-shadow:50vw 13px 0 .5px #ffeebf, 63vw 8px 0 0 #cfe0ff, 72vw 74px 0 .5px #ffeebf, 32vw 18px 0 .5px #fff, 88vw 22px 0 0 #fff, 37vw 7px 0 0 #cfe0ff, 53vw 90px 0 .5px #cfe0ff, 15vw 72px 0 0 #fff }
.ld::after { box-shadow:19vw 79px 0 0 #cfe0ff, 34vw 7px 0 .5px #fff, 61vw 18px 0 0 #ffeebf, 54vw 18px 0 0 #ffeebf, 92vw 13px 0 0 #cfe0ff, 95vw 83px 0 0 #cfe0ff, 52vw 14px 0 .5px #ffeebf, 46vw 9px 0 0 #cfe0ff; animation-delay:-2.3s; animation-duration:5.8s }
@keyframes ld-twinkle { from { opacity:.15 } to { opacity:1 } }
@keyframes ld-glow { from { opacity:.55 } to { opacity:1 } }
.ld ::selection { background:var(--lamp); color:var(--dusk) }
.ld a:hover { color:#fff }
.ld a:focus-visible { outline:3px solid var(--sun); outline-offset:3px; border-radius:4px }

/* the shared parts, on the night */
.ld .top nav { gap:4px 16px }
.ld .brand { flex:none }
.ld .brand img, .ld footer .made img, .ld-app img { border-color:var(--edge) }
.ld .top nav a.on { color:var(--lamp) }
.ld .kicker { color:var(--lamp) }
.ld .chips li { background:var(--card); border-color:var(--edge); color:var(--ink) }
.ld .page .card { border-color:var(--edge); box-shadow:0 8px 0 var(--line) }
.ld .page footer { position:relative; border-top-color:var(--edge); margin-top:104px }
.ld .page footer a { margin-right:0 }   /* games.css spaces footer links apart; here the one link ends a sentence */
.ld footer .made img { background:#fff }   /* the mark is ink on nothing: it needs its paper */
/* .wrap's padding shorthand outranks games.css's `section`, so the sections' space is set here */
.ld section.wrap { padding:68px 22px 0 }
.ld footer.wrap { margin-top:20px }

/* the stone lantern from the game's garden: it stands on the text pages' footer rule, and in the night card */
.ld .page footer::before, .ld .page footer::after { content:""; position:absolute; pointer-events:none }
.ld .page footer::after { right:18px; bottom:calc(100% - 2px); width:62px; aspect-ratio:200/246; background:url(/games/laundrydefense/img/lantern.webp?v=1) center / contain no-repeat }
/* the glow stays inside the page's 22px side padding, so a phone never scrolls sideways */
.ld .page footer::before { right:-21px; bottom:calc(100% - 34px); width:140px; height:140px; border-radius:50%; background:radial-gradient(closest-side, rgba(255,196,96,.42), rgba(255,196,96,.12) 55%, rgba(255,196,96,0)); animation:ld-glow 3.4s ease-in-out infinite alternate }
/* the moon, by the title of the text pages */
.ld .page { position:relative }
.ld .page::before { content:""; position:absolute; top:112px; right:26px; width:54px; height:54px; border-radius:50%; background:radial-gradient(circle at 36% 34%, #fffbe6 0, #f6e7b4 58%, #dcc88c 100%); box-shadow:0 0 0 9px rgba(255,236,170,.07), 0 0 0 22px rgba(255,236,170,.04), 0 0 70px 20px rgba(255,226,150,.22); pointer-events:none }
.ld .page h1 { padding-right:84px }

/* the top: the game's own TITLE SCENE ("look A, title screen", Carson 2026-11-21: "more impactful CTA, looks really
   templated"). The moonlit courtyard with the washing on its line, the logo big in the middle, the lead and two chunky
   download buttons in the scene, and Honomi and Carson seen from behind in the bottom corners, watching the washing.
   Words and buttons are in the game's rounded face. The intro sits under the scene. */
.ld-hero { padding-top:24px }
.ld-scene { position:relative; overflow:hidden; isolation:isolate; text-align:center; border:4px solid #1d1838; border-radius:32px; padding:40px 24px 36px; background:var(--night); box-shadow:0 12px 0 var(--line), 0 30px 90px rgba(70,100,230,.3) }
.ld-scene .ld-bg { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 30% }
.ld-scene::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(8,13,38,.15) 0%, rgba(8,13,38,0) 40%, rgba(8,13,38,.6) 78%, rgba(8,13,38,.92) 100%) }
.ld-logo { margin:0 auto; width:min(560px,82%); animation:ld-bob 3s ease-in-out infinite alternate }
.ld-logo img { width:100%; filter:drop-shadow(0 10px 24px rgba(0,0,0,.5)) }
.ld-out { position:absolute; top:22px; right:24px; z-index:2; font-family:var(--round); font-weight:900; font-size:15px; letter-spacing:.08em; text-transform:uppercase; color:#1d1838; background:var(--sun); border:3px solid #1d1838; border-radius:999px; padding:7px 16px; box-shadow:0 4px 0 #1d1838; transform:rotate(6deg); white-space:nowrap }
.ld-lead { font-family:var(--round); font-weight:900; font-size:clamp(26px,3.6vw,40px); line-height:1.15; margin:18px auto 6px; max-width:16em; text-wrap:balance; color:#fff; text-shadow:0 3px 0 #1d1838, 0 0 30px rgba(0,0,0,.6) }
.ld-lead em { font-style:normal; color:var(--sun); white-space:nowrap }
.ld-sub { font-family:var(--round); font-weight:900; font-size:16px; color:#cfe2ff; margin:0 0 24px; text-shadow:0 2px 0 rgba(0,0,0,.6) }
.ld-cta { position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:center; gap:14px }
.ld-btn { display:inline-flex; align-items:center; gap:12px; text-decoration:none; color:#1d1838; font-family:var(--round); font-weight:900; font-size:21px; line-height:1.05; text-align:left; padding:14px 26px 14px 20px; border:4px solid #1d1838; border-radius:20px; box-shadow:0 7px 0 #1d1838, 0 14px 30px rgba(0,0,0,.35); transition:transform .12s, box-shadow .12s }
.ld-btn:hover { transform:translateY(-3px); box-shadow:0 10px 0 #1d1838, 0 18px 34px rgba(0,0,0,.4) }
.ld-btn:active { transform:translateY(4px); box-shadow:0 3px 0 #1d1838 }
.ld-btn svg { width:30px; height:30px; flex:none }
.ld-btn small { display:block; font-size:13px; opacity:.8 }
.ld-btn.apple { background:linear-gradient(#ffe27a,var(--sun)); animation:ld-pulse 2.4s ease-in-out infinite }
.ld .ld-btn.apple:hover { color:#1d1838 }
.ld-btn.google { background:linear-gradient(#ff9cbd,#ff5d8f); color:#fff } .ld-btn.google small { opacity:.92 } .ld .ld-btn.google:hover { color:#fff }
.ld-promise { position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin:18px 0 0; padding:0; list-style:none; font-family:var(--round); font-weight:900; font-size:15px; color:#f6efe0 }
.ld-promise li { display:flex; align-items:center; gap:8px }
.ld-promise li::before { content:""; width:10px; height:10px; border-radius:50%; background:var(--lamp); box-shadow:0 0 10px rgba(255,207,107,.7) }
.ld-who { position:absolute; bottom:0; z-index:1; width:min(17%,170px) }
.ld-who.hono { left:4% } .ld-who.carson { right:4%; width:min(15%,150px); transform:scaleX(-1) }   /* flipped so he looks in at the washing too (Carson 2026-11-21) */
.ld-intro { color:var(--muted); font-size:18px; margin:26px auto 0; max-width:42em; text-align:center }
@keyframes ld-bob { from { transform:translateY(0) } to { transform:translateY(-10px) } }
@keyframes ld-pulse { 0%,100% { transform:scale(1) } 50% { transform:scale(1.035) } }
/* the store badges (games.css .stores/.store), on the night: paper white with dark words, in the night card */
.ld .store { background:#fff; color:var(--dusk); border-color:#fff3c0; box-shadow:0 5px 0 var(--line) }
.ld a.store:hover { color:var(--dusk) }

/* the game in four numbers */
/* ON THE LINE ("look A", Carson 2026-11-21: "make the website more fun and themed to the game"). The numbers row and the
   four "what is in it" cards are washing pegged to a clothesline: each piece is one plain fabric colour behind the words
   (the stripes live only on the hem, so they never cross the text), both pegs sit on its LEFT half, and a character
   stands behind it and peeks over its RIGHT shoulder, so no peg ever covers one. Every character is used once on the
   page (tools/laundrydefense-art.py LINE_ART). Numbers and card titles are in the game's own face, M PLUS Rounded 1c
   Black, cut to what they say (rerun `laundrydefense-art.py line` after changing those words). */
@font-face { font-family:"LD Rounded"; src:url(/games/laundrydefense/fonts/rounded-8c5b5db88b.woff2) format("woff2"); font-weight:900; font-display:swap }
.ld { --round:"LD Rounded","Hiragino Maru Gothic ProN","Arial Rounded MT Bold",-apple-system,sans-serif; --cloth-ink:#1d1838; --cloth-muted:#4a4266 }
.ld-line { position:relative }
.ld-line::before { content:""; position:absolute; left:-14px; right:-14px; height:34px; border-top:3px solid #d8cdb4; border-radius:50% / 100% 100% 0 0; transform:scaleY(-1); filter:drop-shadow(0 2px 0 rgba(0,0,0,.35)); pointer-events:none }
.ld-line .pal { position:absolute; z-index:0; height:auto; filter:drop-shadow(0 5px 9px rgba(0,0,0,.42)) }
.ld-line .f-pink   { --fab:#ffe8ef; --hem:#ff9fbf; --stitch:#f6c6d6 }
.ld-line .f-white  { --fab:#ffffff; --hem:#ffc3d6; --stitch:#f1d9e2 }
.ld-line .f-sky    { --fab:#e2f1ff; --hem:#8ec9ff; --stitch:#c3dff7 }
.ld-line .f-mint   { --fab:#e1f8ef; --hem:#6fdcbc; --stitch:#bfe9d9 }
.ld-line .f-butter { --fab:#fff4cf; --hem:#ffd25e; --stitch:#f2dd9c }
/* a peg: two of them on every piece, at 12% and 46% of its width */
.ld-nums .cloth::before, .ld-nums .cloth::after { content:""; position:absolute; top:-15px; width:12px; height:31px; border-radius:4px; background:linear-gradient(90deg,#c98a4c,#e7ae6e 45%,#b97a3e); box-shadow:0 2px 0 rgba(0,0,0,.3); z-index:2 }
@keyframes ld-sway { from { transform:rotate(var(--r0,-1.4deg)) } to { transform:rotate(var(--r1,1.4deg)) } }

/* the numbers: four cloths */
.ld-nums { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin:30px 0 0; padding:82px 0 0; list-style:none }
.ld-nums::before { top:52px }
.ld-nums li { position:relative; display:flex; flex-direction:column; transform-origin:30% 0; animation:ld-sway 3.4s ease-in-out infinite alternate }
.ld-nums li:nth-child(2) { --r0:1.6deg; --r1:-1.2deg; animation-duration:3.9s }
.ld-nums li:nth-child(3) { --r0:-1deg; --r1:2deg; animation-duration:3.1s }
.ld-nums li:nth-child(4) { --r0:1.4deg; --r1:-1.6deg; animation-duration:4.2s }
.ld-nums .pal { right:10px; top:-56px; width:74px }
.ld-nums li.f-sky .pal { top:-80px }   /* the broom is tall and thin: lifted so the bristles show, not only the handle */
.ld-nums .cloth { position:relative; z-index:1; flex:1; background:var(--fab); color:var(--cloth-ink); border-radius:6px 6px 14px 14px; padding:24px 18px 38px; box-shadow:0 10px 24px rgba(0,0,0,.35);
  background-image:linear-gradient(to top, transparent 0 22px, var(--stitch) 22px 24px, transparent 24px), repeating-linear-gradient(90deg, var(--hem) 0 14px, transparent 14px 28px);
  background-size:100% 100%, 100% 16px; background-position:0 0, 0 100%; background-repeat:no-repeat }
.ld-nums .cloth::before { left:12% } .ld-nums .cloth::after { left:46% }
.ld-nums b { display:block; font-family:var(--round); font-size:clamp(40px,5.2vw,56px); line-height:1; font-weight:900; color:var(--cloth-ink); font-variant-numeric:tabular-nums }
.ld-nums span { display:block; margin-top:6px; font-weight:800; font-size:14px; line-height:1.35; color:var(--cloth-muted) }

.ld h2.big { font-size:clamp(28px,4.4vw,40px); line-height:1.1; letter-spacing:-.02em; margin:0 0 26px; font-weight:900 }

/* the trailers, in the page's own language only (English here, Japanese on /games/laundrydefense/ja/): the action trailer
   FIRST (the 20 s vertical reel, a YouTube Short, 9:16; Carson 2026-11-21: on the left, and first on a phone), then the
   full game trailer (16:9). Columns of 81:256 give the two frames the same height (9/16 of one width against 16/9 of
   the other). The order is the markup's, so the stacked phone layout keeps it too. */
.ld-films { display:grid; grid-template-columns:minmax(0,81fr) minmax(0,256fr); gap:20px; align-items:start }
.ld-films figure { margin:0 }
.ld-film { border:2.5px solid var(--edge); border-radius:22px; overflow:hidden; background:var(--night); aspect-ratio:16/9; box-shadow:0 8px 0 var(--line) }
/* a trailer is its poster and a big play button; a tap plays it in the overlay below (ld.js) */
.ld-play { position:relative; display:block; cursor:pointer }
.ld-play img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease, filter .35s ease }
.ld-play::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,13,38,0) 55%, rgba(8,13,38,.45)); pointer-events:none }
.ld-playbtn { position:absolute; left:50%; top:50%; z-index:1; width:92px; height:92px; margin:-46px 0 0 -46px; border-radius:50%; background:var(--sun); border:4px solid #1d1838; box-shadow:0 7px 0 #1d1838, 0 16px 40px rgba(0,0,0,.45); transition:transform .15s ease }
.ld-playbtn::before { content:""; position:absolute; left:34px; top:24px; border-style:solid; border-width:18px 0 18px 30px; border-color:transparent transparent transparent #1d1838 }
.ld-films .tall .ld-playbtn { width:76px; height:76px; margin:-38px 0 0 -38px } .ld-films .tall .ld-playbtn::before { left:28px; top:19px; border-width:15px 0 15px 25px }
.ld-play:hover img { transform:scale(1.04); filter:brightness(1.08) }
.ld-play:hover .ld-playbtn { transform:scale(1.1) }
.ld-play:focus-visible { outline:3px solid #fff; outline-offset:4px }
/* the overlay: the whole window, dark, the player as big as fits; a click outside it, the X or Esc closes it */
.ld-theater { width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:rgba(5,8,24,.94); color:#fff; overflow:hidden }
.ld-theater[open] { display:grid; place-items:center }
.ld-theater::backdrop { background:rgba(5,8,24,.6) }
.ld-screen { display:grid; place-items:center; width:100%; height:100%; padding:64px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)) }
.ld-screen iframe { display:block; border:0; border-radius:18px; background:#000; box-shadow:0 30px 120px rgba(0,0,0,.6) }
.ld-screen.wide iframe { width:min(calc(100vw - 32px), calc((100dvh - 96px) * 16 / 9)); aspect-ratio:16/9 }
.ld-screen.tall iframe { height:min(calc(100dvh - 96px), calc((100vw - 32px) * 16 / 9)); aspect-ratio:9/16 }
.ld-x { position:absolute; top:max(14px, env(safe-area-inset-top, 0px)); right:max(14px, env(safe-area-inset-right, 0px)); z-index:1; width:46px; height:46px; border-radius:50%; border:3px solid #1d1838; background:var(--sun); box-shadow:0 4px 0 #1d1838; cursor:pointer }
.ld-x::before, .ld-x::after { content:""; position:absolute; left:50%; top:50%; width:20px; height:3.5px; margin:-1.75px 0 0 -10px; border-radius:2px; background:#1d1838; transform:rotate(45deg) }
.ld-x::after { transform:rotate(-45deg) }
.ld-x:focus-visible { outline:3px solid #fff; outline-offset:3px }
html.ld-locked { overflow:hidden }
.ld-films figcaption { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:18px 4px 0; font-weight:900; font-size:16px }
.ld-films figcaption a { font-weight:800; font-size:14px }
.ld-films figcaption span { font-weight:800; font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums }
.ld-films .tall .ld-film { aspect-ratio:9/16 }
.ld-films .tall figcaption { margin-top:18px; flex-direction:column; align-items:flex-start; gap:2px }   /* the narrow column: the name, then the link under it */

/* what is in the game: four cards, point form */
/* the four cards: sheets on a second line, a character behind each */
.ld-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:110px 28px; padding-top:112px }
.ld-grid::before { top:82px }
.ld-hang { position:relative; display:flex; flex-direction:column; transform-origin:30% 0; animation:ld-sway 5s ease-in-out infinite alternate; --r0:-.7deg; --r1:.7deg }
.ld-hang:nth-child(even) { --r0:.7deg; --r1:-.5deg; animation-duration:5.7s }
.ld-hang .pal { right:18px; top:-104px; width:126px }
.ld-card { position:relative; z-index:1; flex:1; background:var(--fab); color:var(--cloth-ink); border-radius:8px 8px 18px 18px; padding:30px 28px 48px; box-shadow:0 14px 30px rgba(0,0,0,.4);
  background-image:linear-gradient(to top, transparent 0 30px, var(--stitch) 30px 32px, transparent 32px), repeating-linear-gradient(90deg, var(--hem) 0 18px, transparent 18px 36px);
  background-size:100% 100%, 100% 22px; background-position:0 0, 0 100%; background-repeat:no-repeat }
.ld-card::before, .ld-card::after { content:""; position:absolute; top:-16px; width:13px; height:34px; border-radius:4px; background:linear-gradient(90deg,#c98a4c,#e7ae6e 45%,#b97a3e); box-shadow:0 2px 0 rgba(0,0,0,.3); z-index:2 }
.ld-card::before { left:12% } .ld-card::after { left:46% }
.ld-card h3 { margin:0 120px 12px 0; font-family:var(--round); font-size:23px; line-height:1.2; font-weight:900; color:var(--cloth-ink) }
.ld-card ul { margin:0; padding:0; list-style:none; color:#342d4f }
.ld-card li { position:relative; padding-left:24px; margin:8px 0; font-weight:500 } .ld-card li:last-child { margin-bottom:0 }
.ld-card li::before { content:""; position:absolute; left:0; top:.55em; width:12px; height:12px; border-radius:50%; background:var(--hem); box-shadow:inset -2px -2px 0 rgba(0,0,0,.18) }

/* the store screenshots: the first and the last wide, two to a row between them */
.ld-shots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
.ld-shots figure { margin:0; border:2.5px solid var(--edge); border-radius:22px; overflow:hidden; background:var(--night); aspect-ratio:2868/1320; box-shadow:0 8px 0 var(--line) }
.ld-shots figure:first-child, .ld-shots figure:last-child { grid-column:1 / -1; border-radius:28px }
.ld-shots img { width:100%; height:100% }

/* play anywhere: the promises as chips, then the night card with the logo and the store badges, lit by two lanterns */
.ld-any .chips { margin:0 0 30px }
.ld-night { position:relative; background:radial-gradient(60% 70% at 50% 30%, rgba(255,200,104,.2), rgba(255,200,104,0) 72%), linear-gradient(180deg,var(--night2) 0%,#182257 55%,#0f1640 100%); border:2.5px solid #5a6cc4; border-radius:32px; padding:34px 26px 38px; text-align:center; color:#fff; box-shadow:0 12px 0 var(--line), 0 30px 90px rgba(70,100,230,.25) }
.ld-night::before, .ld-night::after { content:""; position:absolute; bottom:22px; width:84px; aspect-ratio:200/246; background:url(/games/laundrydefense/img/lantern.webp?v=1) center / contain no-repeat; filter:drop-shadow(0 0 22px rgba(255,190,90,.5)); pointer-events:none }
.ld-night::before { left:30px } .ld-night::after { right:30px; transform:scaleX(-1) }
.ld-night img { width:min(420px,78%); margin:0 auto }
.ld-night p { margin:14px auto 0; max-width:30em; color:#c9d3ee; font-size:17px }
.ld-night p.when { margin-top:6px; color:#fff; font-size:clamp(22px,3.4vw,30px); font-weight:900; letter-spacing:-.015em; line-height:1.2 }
.ld-night .stores { justify-content:center; margin-top:22px }
.ld-night .links { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:24px }
.ld-night .links a { background:var(--lamp); color:var(--dusk); text-decoration:none; font-weight:900; font-size:15px; border:2.5px solid #fff3c0; border-radius:999px; padding:10px 22px; box-shadow:0 4px 0 rgba(0,0,0,.45) }
.ld-night .links a:hover { background:#fff; color:var(--dusk) }

/* the language switch: the other page's language, last in the menu */
.ld .top nav a.lang { border:2px solid var(--edge); border-radius:999px; padding:2px 12px; color:var(--ink) }
.ld .top nav a.lang:hover { border-color:var(--lamp); color:var(--lamp) }

/* the Japanese page (lang="ja"): a Japanese face first, no tightened tracking (it crowds kana), headlines broken at
   phrases where the browser can (auto-phrase) and balanced elsewhere */
.ld:lang(ja) { font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,-apple-system,BlinkMacSystemFont,sans-serif }
.ld:lang(ja) h1, .ld:lang(ja) h2, .ld:lang(ja) h3, .ld:lang(ja) .ld-lead, .ld:lang(ja) .ld-nums b, .ld:lang(ja) .ld-night p.when { letter-spacing:0 }
.ld:lang(ja) h1, .ld:lang(ja) h2, .ld:lang(ja) h3, .ld:lang(ja) .ld-lead, .ld:lang(ja) .ld-sub, .ld:lang(ja) .ld-night p.when { word-break:auto-phrase; text-wrap:balance }
.ld:lang(ja) .ld-intro, .ld:lang(ja) .ld-card li { line-height:1.75 }
.ld:lang(ja) .ld-night img { width:min(380px,72%); margin-bottom:14px }   /* the Japanese wordmark is cropped tight (no glow margin like logo.webp) */

/* the two text pages: the game's icon and name under the title */
.ld-app { display:flex; align-items:center; gap:10px; margin:0 0 20px; font-weight:800; font-size:14px; color:var(--muted) }
.ld-app img { width:30px; height:30px; border-radius:9px; border:1.5px solid var(--edge) }

@media (max-width:900px) {
  .ld-nums { grid-template-columns:repeat(2,minmax(0,1fr)); gap:100px 16px }
  .ld-grid { grid-template-columns:minmax(0,1fr) }
  /* once the rows wrap, one rope across the top would leave the lower rows hanging from nothing: every piece carries
     its own length of rope at its pegs instead, and the lengths meet across the gaps, so each row has its line.
     A straight rope cannot sway with its washing, so the pieces hold still here. */
  .ld-line::before { display:none }
  .ld-nums li, .ld-hang { animation:none }
  .ld-nums li::before, .ld-hang::before { content:""; position:absolute; z-index:0; left:-12px; right:-12px; top:-4px; border-top:3px solid #d8cdb4; filter:drop-shadow(0 2px 0 rgba(0,0,0,.35)); pointer-events:none }
  .ld-hang::before { left:-18px; right:-18px }   /* to just inside the page margin (22px): no sideways scroll */
  .ld-night::before, .ld-night::after { display:none }
}
@media (max-width:640px) {
  /* a phone shows the courtyard's left corner (the azaleas and the stepping stones), not a strip of plain lawn */
  .ld { background-image:
    linear-gradient(to bottom, #0b1130 0, rgba(11,17,48,.9) 26%, rgba(11,17,48,.35) 62%, rgba(11,17,48,0) 86%),
    url(/games/laundrydefense/img/courtyard-900.webp?v=1),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='380'%3E%3Ccircle cx='119' cy='6' r='1.4' fill='%23fff' opacity='0.61'/%3E%3Ccircle cx='119' cy='14' r='0.9' fill='%23fff' opacity='0.83'/%3E%3Ccircle cx='37' cy='15' r='0.7' fill='%23cfe0ff' opacity='0.6'/%3E%3Ccircle cx='213' cy='109' r='0.7' fill='%23cfe0ff' opacity='0.6'/%3E%3Ccircle cx='214' cy='51' r='0.6' fill='%23cfe0ff' opacity='0.33'/%3E%3Ccircle cx='256' cy='57' r='0.5' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='682' cy='72' r='0.7' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='212' cy='55' r='0.5' fill='%23cfe0ff' opacity='0.33'/%3E%3Ccircle cx='547' cy='6' r='1.4' fill='%23fff' opacity='0.81'/%3E%3Ccircle cx='446' cy='23' r='1.1' fill='%23fff' opacity='0.63'/%3E%3Ccircle cx='273' cy='93' r='1.1' fill='%23cfe0ff' opacity='0.67'/%3E%3Ccircle cx='670' cy='93' r='1.1' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='317' cy='229' r='0.5' fill='%23ffeebf' opacity='0.15'/%3E%3Ccircle cx='201' cy='9' r='0.7' fill='%23ffeebf' opacity='0.92'/%3E%3Ccircle cx='101' cy='181' r='0.7' fill='%23cfe0ff' opacity='0.2'/%3E%3Ccircle cx='316' cy='38' r='0.7' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='211' cy='11' r='1.1' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='124' cy='122' r='0.6' fill='%23fff' opacity='0.26'/%3E%3Ccircle cx='656' cy='276' r='0.5' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='170' cy='22' r='0.9' fill='%23cfe0ff' opacity='0.74'/%3E%3Ccircle cx='528' cy='143' r='0.6' fill='%23ffeebf' opacity='0.24'/%3E%3Ccircle cx='506' cy='343' r='0.7' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='501' cy='265' r='0.5' fill='%23cfe0ff' opacity='0.12'/%3E%3Ccircle cx='29' cy='338' r='0.6' fill='%23cfe0ff' opacity='0.12'/%3E%3Ccircle cx='485' cy='216' r='0.6' fill='%23fff' opacity='0.16'/%3E%3Ccircle cx='388' cy='6' r='1.1' fill='%23fff' opacity='0.73'/%3E%3Ccircle cx='584' cy='13' r='0.7' fill='%23fff' opacity='0.92'/%3E%3Ccircle cx='309' cy='229' r='0.7' fill='%23fff' opacity='0.15'/%3E%3Ccircle cx='575' cy='120' r='0.7' fill='%23cfe0ff' opacity='0.26'/%3E%3Ccircle cx='203' cy='26' r='0.7' fill='%23cfe0ff' opacity='0.35'/%3E%3Ccircle cx='482' cy='43' r='0.6' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='539' cy='59' r='0.6' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='710' cy='318' r='0.6' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='688' cy='6' r='0.7' fill='%23fff' opacity='0.84'/%3E%3Ccircle cx='393' cy='14' r='1.1' fill='%23ffeebf' opacity='0.63'/%3E%3Ccircle cx='252' cy='115' r='0.6' fill='%23fff' opacity='0.27'/%3E%3Ccircle cx='633' cy='6' r='1.1' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='376' cy='77' r='0.9' fill='%23cfe0ff' opacity='0.71'/%3E%3Ccircle cx='207' cy='62' r='0.5' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='308' cy='46' r='0.7' fill='%23ffeebf' opacity='0.33'/%3E%3Ccircle cx='225' cy='11' r='0.7' fill='%23cfe0ff' opacity='0.94'/%3E%3Ccircle cx='466' cy='285' r='0.7' fill='%23ffeebf' opacity='0.12'/%3E%3Ccircle cx='431' cy='164' r='0.5' fill='%23fff' opacity='0.22'/%3E%3Ccircle cx='308' cy='93' r='1.4' fill='%23fff' opacity='0.88'/%3E%3Ccircle cx='283' cy='36' r='0.6' fill='%23ffeebf' opacity='0.34'/%3E%3Ccircle cx='255' cy='286' r='0.7' fill='%23ffeebf' opacity='0.12'/%3E%3Ccircle cx='242' cy='68' r='0.9' fill='%23ffeebf' opacity='0.79'/%3E%3Ccircle cx='690' cy='262' r='0.7' fill='%23fff' opacity='0.12'/%3E%3Ccircle cx='559' cy='6' r='1.4' fill='%23cfe0ff' opacity='0.93'/%3E%3Ccircle cx='269' cy='106' r='1.1' fill='%23cfe0ff' opacity='0.87'/%3E%3Ccircle cx='571' cy='172' r='0.5' fill='%23cfe0ff' opacity='0.21'/%3E%3Ccircle cx='588' cy='7' r='0.9' fill='%23fff' opacity='0.93'/%3E%3Ccircle cx='425' cy='7' r='1.1' fill='%23fff' opacity='0.66'/%3E%3Ccircle cx='67' cy='233' r='0.6' fill='%23fff' opacity='0.15'/%3E%3C/svg%3E"),
    radial-gradient(70% 460px at 80% 0, rgba(86,112,220,.36), rgba(86,112,220,0) 70%),
    linear-gradient(180deg, #080d26 0, #0e1740 420px, #0b1130 1000px);
    background-position:bottom center, bottom left, top center, 0 0, 0 0 }
  /* a phone: the scene grows downward so Honomi and Carson stand under the buttons; the sticker moves to the left
     corner, clear of the logo's crow; each button takes the full width */
  .ld-scene { border-radius:24px; padding:30px 16px 150px }
  .ld-who { width:26% } .ld-who.carson { width:22% }
  .ld-out { top:12px; right:auto; left:12px; font-size:12px; transform:rotate(-6deg) }
  .ld-logo { width:min(420px,88%); margin-top:30px }
  .ld-btn { width:100%; justify-content:center; font-size:19px; padding:12px 18px }
  .ld-intro { font-size:17px }
  .ld-films { grid-template-columns:minmax(0,1fr); gap:26px }
  .ld-films .tall { width:min(300px,72%); justify-self:center }
  .ld-film { border-radius:16px; box-shadow:0 6px 0 var(--line) }
  .ld section.wrap { padding-top:50px }
  .ld-shots { grid-template-columns:minmax(0,1fr); gap:14px }
  .ld-shots figure, .ld-shots figure:first-child, .ld-shots figure:last-child { border-radius:16px; box-shadow:0 6px 0 var(--line) }
  .ld-card { padding:28px 20px 46px }
  .ld-card h3 { margin-right:96px }
  .ld-hang .pal { width:104px; top:-86px }
  .ld-night { border-radius:24px; padding:26px 18px 30px }
  .ld .page::before { top:98px; right:22px; width:40px; height:40px }
  .ld .page h1 { padding-right:60px }
}
/* narrow phones: the mark alone, so the three links stay on one row */
@media (max-width:480px) {
  .ld .brand span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
  .ld .top nav { gap:4px 14px }
}
@media (prefers-reduced-motion:reduce) {
  .ld::before, .ld::after, .ld .page footer::before, .ld-nums li, .ld-hang, .ld-logo, .ld-btn.apple { animation:none }
}
