/* Tamagumi page: proposal A of board 29 (Tamagumi repo, docs/planches/29-page-du-site.html), chosen
   2026-10-23. The page is a desktop: every block is a window, the pet really walks on the hero's. */
:root {
  --ink: #1a4d80;
  --wall1: #cfeee8;
  --wall2: #f9e3ef;
  --yellow: #fbdb3f;
  /* No web font on this site: rounded system faces where they exist, the system sans otherwise. */
  --display: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font: 16px/1.5 var(--text);
  background: radial-gradient(circle at 12% 18%, #fff 0 2px, transparent 3px) 0 0 / 36px 36px,
    linear-gradient(160deg, var(--wall1), #e8f1fb 45%, var(--wall2)) fixed;
  background-color: #e8f1fb;
}
h1, h2, h3, .disp { font-family: var(--display); }
a { color: inherit; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 6px 10px; border-radius: 8px; }

/* ---------- the top bar, as on the other game pages: brand, sections, way back home ---------- */
.top { max-width: 1100px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; gap: 22px; }
.top .brand { font: 700 22px/1 var(--display); text-decoration: none; }
.top nav { display: flex; gap: 18px; font: 600 14px/1 var(--display); }
.top nav a { text-decoration: none; opacity: .8; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.top .back { margin-left: auto; background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 12px; padding: 9px 14px; font: 600 14px/1 var(--display); text-decoration: none; white-space: nowrap; }
.top .back:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- the windows of the page ---------- */
.owin { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 18px 18px 12px 12px; box-shadow: 6px 6px 0 var(--ink); margin: 0 0 40px; overflow: hidden; }
.owin > .bar { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-bottom: 3px solid var(--ink); font: 600 16px/1 var(--display); }
.owin > .bar i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); display: inline-block; flex: none; }
.owin > .bar .path { margin-left: 8px; font: 500 13px/1 var(--text); opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owin > .in { padding: 24px; }
h2 { font-size: 34px; line-height: 1.05; margin: 0 0 8px; }
.lead { font-size: 17px; margin: 0 0 18px; max-width: 60ch; }
.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }

/* ---------- a desk with a film of the real World ---------- */
.desk-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 14px; }
.hero .desk-wrap { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
.desk { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; overflow: hidden; }
.desk .wall { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, #fff6 0 60px, transparent 61px), linear-gradient(170deg, #bfe6f5, #d9f0e4 60%, #fde2ec); }
.desk .win { position: absolute; border-radius: 10px 10px 4px 4px; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 2.5px solid var(--ink); }
.desk .win .bar { height: 26px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-bottom: 2.5px solid var(--ink); font: 600 13px/1 var(--display); }
.desk .win .bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); }
.desk .win .body { flex: 1; position: relative; padding: 14px 16px; overflow: hidden; }
.desk .line { height: 8px; border-radius: 4px; margin: 0 0 10px; background: #e3ecf6; }
.desk .icon { position: absolute; }
.desk .icon::before { content: ""; position: absolute; inset: 6px 4px 12px; border-radius: 4px 6px 6px 6px; background: var(--yellow); border: 2px solid var(--ink); }
.desk .icon span { position: absolute; left: -10px; right: -10px; bottom: -6px; text-align: center; font: 700 10px/1 var(--text); }
.desk .taskbar { position: absolute; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #fff; border-top: 2.5px solid var(--ink); font: 600 13px/1 var(--text); }
.desk .taskbar .clock { margin-left: auto; }
.desk .taskbar .chip { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--ink); }
.desk .pet { position: absolute; }
.desk .name { position: absolute; transform: translate(-50%, -100%); font: 700 12px/1 var(--text); color: #fff; background: #1a4d80cc; padding: 3px 7px; border-radius: 9px; white-space: nowrap; pointer-events: none; }
.desk .cursor { position: absolute; width: 18px; height: 26px; pointer-events: none; z-index: 20; }
.hero-title { font: 600 33px/1.08 var(--display); margin: 0 0 10px; }
.hero-sub { font-size: 14.5px; margin: 0 0 14px; line-height: 1.45; }
.hero-meta { display: inline-block; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 12px; padding: 8px 13px; font: 600 14px/1 var(--display); }
.unique { text-align: center; }
.unique .disp { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.unique .num { font: 700 14px/1 var(--text); margin: 0; }
.unique .hint { font-size: 12px; margin: 2px 0 0; opacity: .7; }
.flip { position: relative; height: 190px; cursor: pointer; }
.flip img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.caption { margin: 14px 0 30px; font-size: 14px; text-align: center; }

/* ---------- growth tree ---------- */
.eggs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.eggs button { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 10px 4px; cursor: pointer; display: flex; align-items: flex-end; gap: 6px; font: 600 13px var(--display); color: var(--ink); }
.eggs button[aria-pressed="true"] { background: #a1d6df; box-shadow: 3px 3px 0 var(--ink); }
.tree { position: relative; }
.tree svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tree svg path { stroke: var(--ink); stroke-width: 2.5; fill: none; stroke-dasharray: 2 6; stroke-linecap: round; }
.tree .lvl { display: flex; justify-content: space-around; align-items: flex-end; position: relative; margin: 0 0 26px; }
.tree .node { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; flex: 1; }
.tree .node .pic { display: flex; align-items: flex-end; justify-content: center; }
.tree .node b { display: block; font: 600 14px/1.1 var(--display); }
.tree .node small { display: block; opacity: .75; font-size: 11.5px; }

/* ---------- gestures ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; font: 600 13px/1.2 var(--display); }
.chips li:nth-child(3n+1) { background: #f9c8dd; } .chips li:nth-child(3n+2) { background: #a6dcc0; } .chips li:nth-child(3n) { background: #fde89e; }
.moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.moves .cell { position: relative; overflow: hidden; height: 130px; border: 2.5px solid var(--ink); border-radius: 14px; background: linear-gradient(#fff 72%, #e3ecf6 72%); }
.moves .cell img { position: absolute; }
.moves .cell span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 14px var(--display); }

/* ---------- the circle ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post { margin: 0; background: #fde89e; padding: 14px 14px 16px; box-shadow: 3px 4px 0 #1a4d8033; transform: rotate(-1.2deg); font-size: 14.5px; line-height: 1.4; }
.post:nth-child(2) { background: #f9c8dd; transform: rotate(1.4deg); } .post:nth-child(3) { background: #a6dcc0; transform: rotate(.8deg); } .post:nth-child(4) { background: #c8b0e4; transform: rotate(-.6deg); }
.post b { font: 600 17px/1.1 var(--display); display: block; margin: 0 0 4px; }

/* ---------- showcase ---------- */
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 8px; }
.icons figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 8px 4px; border-radius: 12px; }
.icons figure:hover { background: #a1c2eb55; outline: 2px dashed var(--ink); }
.icons figcaption { font: 700 12.5px/1.2 var(--text); text-align: center; }

/* ---------- the taskbar of the page ---------- */
.foot { position: sticky; bottom: 0; background: #fff; border-top: 3px solid var(--ink); display: flex; align-items: center; gap: 14px; padding: 9px 22px; z-index: 5; }
.foot .logo { font: 700 18px var(--display); }
.foot a { font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .clock { margin-left: auto; font: 700 14px var(--text); }

@media (max-width: 820px) {
  .grid2 { grid-template-columns: 1fr; }
  .moves { grid-template-columns: repeat(2, 1fr); }
  h2 { font-size: 28px; }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .foot a .long { display: none; }
}
@media (max-width: 620px) {
  /* Eight adults need about 560 px: below that the tree scrolls sideways inside its window. */
  .tree-box { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
  .tree { min-width: 560px; }
  /* The hero desk shrinks to a third: its title grows in desk pixels to stay readable. */
  .hero-title { font-size: 46px; }
  .hero-sub { display: none; }
  .hero-meta { display: none; }
}
@media (max-width: 520px) {
  .posts { grid-template-columns: 1fr; }
  .owin > .in { padding: 18px 14px; }
  .foot { padding: 9px 16px; gap: 10px; }
}
