/* The Tsumida Games home, https://tsumida.ai/games/ (public/games/index.html, since 2026-11-15).
   The look is Laundry Defense's loading screen: warm washi paper, a soft gold wash behind the words, the ink
   warrior big on the right breathing in, small Japanese-feeling type. Each game hangs on the paper as a scroll
   (kakejiku): two rods, a cloth mount in the game's own colour (--c1/--c2), its art, a title slip, a seal for its
   state. Its own file and class names: nothing here is shared with games.css, the hub or the game pages.
   Bump ?v= in index.html on every edit. */
@font-face{font-family:'Kaisei Decol L';src:url(/fonts/KaiseiDecol-Latin.woff) format('woff');font-display:swap}
@font-face{font-family:'Zen Antique Soft L';src:url(/fonts/ZenAntiqueSoft-Latin.woff) format('woff');font-display:swap}
/* Yuji Syuku cut down to the page's own Japanese (tools/games-home-art.py), vertical forms included */
@font-face{font-family:'Tsumida Brush';src:url(/games/img/home/jp.woff2?v=1) format('woff2');font-display:swap;unicode-range:U+3000-30FF,U+4E00-9FFF}

:root{
  --paper:#f5eddb; --paper-2:#efe4cc; --ink:#2a1d14; --ink-2:#5d4b3b; --faint:#9b8a74;
  --shu:#b8322a; --kin:#e3b55b; --rod:#3b2a1e;
  --head:'Kaisei Decol L','Hiragino Mincho ProN','Yu Mincho',Georgia,serif;
  --text:'Zen Antique Soft L','Hiragino Mincho ProN','Yu Mincho',Georgia,serif;
  --brush:'Tsumida Brush','Yuji Syuku','Hiragino Mincho ProN','Yu Mincho',serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--text);-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the paper: a gold wash like a sun through it, a breath of red low on the right, and grain */
.gh{position:relative;min-height:100vh;min-height:100svh;overflow:hidden;isolation:isolate;display:flex;flex-direction:column}
.gh::before{content:"";position:absolute;inset:0;z-index:-2;background:
  radial-gradient(56% 44% at 30% 22%,rgba(233,186,92,.46),rgba(233,186,92,0) 72%),
  radial-gradient(40% 30% at 86% 78%,rgba(184,50,42,.07),rgba(184,50,42,0) 70%),
  linear-gradient(180deg,#f8f1e0 0%,#f1e7d1 100%);
  animation:wash 9s ease-in-out infinite alternate}
.gh::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.gh-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 28px}

/* the top line: the studio's seal */
.gh-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:22px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-2)}
.gh-top a{text-decoration:none}
.gh-top a:hover{color:var(--shu)}
.gh-mark{display:flex;align-items:center;gap:10px;color:var(--ink)}
.gh-mark img{width:34px;height:34px;border-radius:9px}

/* the hero: the logo and one brush line on the left, the warrior on the right, fading into the paper at her feet */
.gh-hero{position:relative;height:clamp(270px,34vh,350px);display:flex;align-items:center}
.gh-brand{position:relative;z-index:1;max-width:min(430px,56%);animation:rise .7s .15s ease-out both}
.gh-brand .logo{width:clamp(230px,27vw,360px);margin-left:-8px;filter:drop-shadow(0 10px 14px rgba(90,58,30,.16))}
.gh-brand .jp{display:block;margin:6px 0 0 6px;font:400 clamp(17px,2vw,22px)/1.2 var(--brush);letter-spacing:.42em;color:rgba(42,29,20,.86)}
.gh-brand p{margin:14px 0 0 6px;font-size:clamp(14px,1.35vw,16px);line-height:1.7;color:var(--ink-2);max-width:25em}
.gh-warrior{position:absolute;right:max(-18px,calc(50% - 600px));top:-46px;width:clamp(250px,31vw,420px);pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000 62%,rgba(0,0,0,0) 97%);mask-image:linear-gradient(180deg,#000 62%,rgba(0,0,0,0) 97%);
  animation:arrive .9s .1s ease-out both}
.gh-warrior img{width:100%;transform-origin:45% 78%;animation:breathe 5.6s 1s ease-in-out infinite alternate}

/* "choose a game": one brush line with the words in the middle */
.gh-choose{display:flex;align-items:center;gap:18px;margin:24px 0 34px;font-size:12px;letter-spacing:.3em;text-transform:uppercase;color:var(--ink-2)}
.gh-choose::before,.gh-choose::after{content:"";flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,rgba(42,29,20,0),rgba(42,29,20,.5) 30%,rgba(42,29,20,.5) 70%,rgba(42,29,20,0))}
.gh-choose .jp{font:400 20px/1 var(--brush);letter-spacing:.2em;text-transform:none;color:var(--shu)}

/* the scrolls */
.gh-scrolls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:46px;align-items:start;max-width:1040px;margin:0 auto;padding:0 10px 10px;list-style:none}
.gh-scrolls li{min-width:0}
.gh-scrolls li:nth-child(2){margin-top:30px}
.scroll{--c1:#e9a23b;--c2:#c97f22;--tx:#fff8ea;--delay:0s;display:block;position:relative;color:inherit;text-decoration:none;
  transform-origin:50% -26px;animation:sway 7.5s ease-in-out infinite alternate;animation-delay:var(--delay);-webkit-tap-highlight-color:transparent}
/* the cord and its nail */
.scroll::before{content:"";position:absolute;left:50%;top:-26px;width:74px;height:27px;transform:translateX(-50%);
  background:linear-gradient(to bottom right,rgba(0,0,0,0) calc(50% - 1px),var(--rod) calc(50% - 1px),var(--rod) calc(50% + 1px),rgba(0,0,0,0) calc(50% + 1px)) left/50% 100% no-repeat,
             linear-gradient(to bottom left,rgba(0,0,0,0) calc(50% - 1px),var(--rod) calc(50% - 1px),var(--rod) calc(50% + 1px),rgba(0,0,0,0) calc(50% + 1px)) right/50% 100% no-repeat}
.scroll::after{content:"";position:absolute;left:50%;top:-31px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:var(--shu);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.scroll .rod{display:block;position:relative;z-index:2;height:14px;margin:0 -9px;border-radius:7px;background:linear-gradient(180deg,#6a4c37 0%,#3b2a1e 55%,#241812 100%);box-shadow:0 3px 5px rgba(42,29,20,.28)}
.scroll .rod::before,.scroll .rod::after{content:"";position:absolute;top:-2px;width:9px;height:18px;border-radius:3px;background:linear-gradient(180deg,#f0d28a,#b98f45)}
.scroll .rod::before{left:-3px} .scroll .rod::after{right:-3px}
/* the cloth unrolls from the top rod: its row grows from nothing, so the bottom rod rides down with it */
.scroll .mount{display:grid;grid-template-rows:1fr;transition:transform .35s cubic-bezier(.2,.7,.2,1);animation:unroll 1s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.25s + var(--i,0) * .16s)}
.scroll .roll{min-height:0;overflow:hidden}
.scroll .cloth{display:block;padding:14px 14px 16px;color:var(--tx);
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.07) 0 5px,rgba(255,255,255,0) 5px 10px),linear-gradient(180deg,var(--c1),var(--c2));
  box-shadow:inset 0 0 0 1px rgba(42,29,20,.28),inset 0 10px 14px -10px rgba(0,0,0,.35)}
.scroll .art{display:block;position:relative;aspect-ratio:1;overflow:hidden;background:#1a1a1a;box-shadow:0 0 0 2px var(--ink),0 0 0 5px rgba(255,250,235,.55)}
.scroll .art img{position:absolute;max-width:none}
.scroll .art .bg{inset:0;width:100%;height:100%;object-fit:cover;animation:drift 19s ease-in-out infinite alternate}
/* the title slip: the game's name in Japanese, written down the side */
.scroll .slip{position:absolute;top:10px;right:10px;z-index:3;writing-mode:vertical-rl;-webkit-writing-mode:vertical-rl;padding:10px 5px 9px;background:var(--paper);color:var(--ink);
  font:400 clamp(15px,1.5vw,19px)/1.15 var(--brush);letter-spacing:.2em;box-shadow:0 0 0 1px rgba(42,29,20,.75),2px 3px 0 rgba(42,29,20,.25)}
/* the seal: the game's state */
.scroll .seal{position:absolute;left:10px;bottom:10px;z-index:3;padding:5px 11px 4px;border-radius:5px;background:var(--shu);color:#fff6e6;
  font:400 12px/1.2 var(--head);letter-spacing:.16em;text-transform:uppercase;transform:rotate(-3deg);box-shadow:0 2px 0 rgba(42,29,20,.35);transition:transform .25s}
.scroll .seal.soon{background:var(--paper);color:var(--shu);box-shadow:inset 0 0 0 1.5px var(--shu),0 2px 0 rgba(42,29,20,.25)}
.scroll .words{display:block;padding:16px 4px 2px}
.scroll .name{display:block;font:400 clamp(23px,2.3vw,29px)/1.15 var(--head);letter-spacing:.01em}
.scroll .line{display:block;margin-top:7px;font-size:15px;line-height:1.55;opacity:.92;min-height:3.1em}
.scroll .go{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;letter-spacing:.22em;text-transform:uppercase;border-bottom:1.5px solid currentColor;padding-bottom:3px}
.scroll .go i{font-style:normal;display:inline-block;transition:transform .25s}
.scroll .go.none{border-bottom-color:transparent;opacity:.75}

/* a scroll that is a link answers the pointer, a finger and the keyboard */
a.scroll:hover .mount,a.scroll:focus-visible .mount,a.scroll:active .mount{transform:translateY(-7px)}
a.scroll:hover .seal,a.scroll:focus-visible .seal,a.scroll:active .seal{transform:rotate(-3deg) scale(1.1)}
a.scroll:hover .go i,a.scroll:focus-visible .go i,a.scroll:active .go i{transform:translateX(6px)}
a.scroll:hover .art,a.scroll:focus-visible .art,a.scroll:active .art{box-shadow:0 0 0 2px var(--ink),0 0 0 5px rgba(255,250,235,.9)}
a.scroll:focus-visible{outline:3px solid var(--shu);outline-offset:10px;border-radius:4px}

/* Animal Kingdom: every animal, warm */
.scroll.ak{--c1:#efb04c;--c2:#cf8526;--tx:#3a2208}
/* Laundry Defense: the night garden, the logo, a crow in the air and Honomi with her broom */
.scroll.ld{--c1:#2a3a72;--c2:#141c3e;--tx:#eef2ff;--delay:-2.6s}
.scroll.ld .lg{left:3%;top:5%;width:78%;animation:bob 4.2s ease-in-out infinite alternate}
.scroll.ld .crow{left:3%;top:50%;width:33%;transform:scaleX(-1);animation:flap 2.8s ease-in-out infinite alternate}
.scroll.ld .who{right:1%;bottom:-2%;width:47%;transform-origin:50% 100%;animation:breathe 3.6s ease-in-out infinite alternate}
/* Cheesecake Run: mint, the logo, and him with a whole cheesecake, the ground rushing by */
.scroll.cr{--c1:#9fdcc1;--c2:#6fbf9f;--tx:#17382b;--delay:-4.9s}
.scroll.cr .art{background:radial-gradient(70% 60% at 50% 40%,#e2f7ea 0%,#b9e8d1 55%,#93d6b8 100%)}
.scroll.cr .art::before,.scroll.cr .art::after{content:"";position:absolute;left:-40%;width:180%;height:3px;border-radius:3px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.9) 0 46px,rgba(255,255,255,0) 46px 150px);animation:rush 1.5s linear infinite}
.scroll.cr .art::before{top:58%} .scroll.cr .art::after{top:71%;animation-duration:1.1s;opacity:.7}
.scroll.cr .art .ground{position:absolute;left:0;right:0;bottom:0;height:17%;background:linear-gradient(180deg,#f6e3ae,#eccf88)}
.scroll.cr .lg{left:5%;top:7%;width:72%;animation:bob 3.8s ease-in-out infinite alternate}
.scroll.cr .who{left:35%;bottom:5%;width:30%;transform-origin:50% 100%;animation:hop .55s ease-in-out infinite alternate}

/* the foot of the page */
.gh-foot{margin-top:auto;padding:54px 0 34px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2)}
.gh-foot nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.gh-foot a{text-decoration:none} .gh-foot a:hover{color:var(--shu)}
.gh-foot .made{display:flex;align-items:center;gap:8px;color:var(--faint)}
.gh-foot .made img{width:22px;height:22px;border-radius:6px}

@keyframes wash{from{opacity:.86}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes arrive{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
@keyframes breathe{from{transform:scale(1)}to{transform:scale(1.02) translateY(-.4%)}}
@keyframes sway{from{transform:rotate(-.55deg)}to{transform:rotate(.55deg)}}
@keyframes unroll{from{grid-template-rows:0fr}to{grid-template-rows:1fr}}
@keyframes drift{from{transform:scale(1.02)}to{transform:scale(1.1) translate(-1.6%,-1.2%)}}
@keyframes bob{from{transform:translateY(0)}to{transform:translateY(-3.5%)}}
@keyframes flap{from{transform:scaleX(-1) translateY(0) rotate(-3deg)}to{transform:scaleX(-1) translateY(-11%) rotate(4deg)}}
@keyframes hop{from{transform:translateY(0)}to{transform:translateY(-4%)}}
@keyframes rush{from{transform:translateX(0)}to{transform:translateX(-150px)}}

@media (max-width:980px){
  .gh-scrolls{gap:26px}
  .scroll .cloth{padding:11px 11px 14px}
}
/* phones: the scrolls hang one under another, the art a little wider than tall so each fits a screen */
@media (max-width:760px){
  .gh-wrap{padding:0 20px}
  .gh-top{padding-top:16px;font-size:11px;letter-spacing:.14em}
  .gh-hero{height:auto;min-height:290px;padding:26px 0 30px;align-items:flex-start}
  .gh-brand{max-width:62%}
  .gh-brand .logo{width:min(230px,100%)}
  .gh-brand p{font-size:14px;line-height:1.65;max-width:13em}
  .gh-warrior{right:-46px;top:-8px;width:min(250px,64vw)}
  .gh-choose{margin:0 0 40px}
  .gh-scrolls{grid-template-columns:minmax(0,1fr);gap:58px;padding:0 10px 10px;max-width:440px;margin:0 auto}
  .gh-scrolls li:nth-child(2){margin-top:0}
  .scroll .art{aspect-ratio:4/3}
  .scroll.ld .lg{left:13%;top:5%;width:60%}
  .scroll.ld .who{width:38%} .scroll.ld .crow{width:27%;top:44%}
  .scroll.cr .lg{left:13%;width:62%} .scroll.cr .who{left:39%;width:22%}
  .scroll .slip{font-size:17px}
  .scroll .line{min-height:0}
  .gh-foot{padding:46px 0 30px;justify-content:center;text-align:center} .gh-foot nav{justify-content:center}
}
/* stillness for anyone who asked for it: everything is in its final place, nothing moves */
@media (prefers-reduced-motion:reduce){
  .gh::before,.gh-brand,.gh-warrior,.gh-warrior img,.scroll,.scroll .mount,.scroll .art img,.scroll.cr .art::before,.scroll.cr .art::after{animation:none!important}
  .scroll .mount,.scroll .seal,.scroll .go i{transition:none}
}
