:root {
  --ink: #29243d;
  --muted: #625e72;
  --paper: #f6f4f9;
  --white: #fff;
  --line: #ded9e7;
  --green: #352e59;
  --green-2: #514477;
  --accent: #db6a56;
  --soft: #eae6f2;
}
.brand-mark { font: 15px Georgia,serif; letter-spacing: -2px; width: 48px; height: 48px; }
.brand-mark span { color: #f2b4a6; }
.area-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.area-card { box-shadow: 0 18px 45px #352e591f; }
.area-card-alt { background: #624769; }
.area-card-alt:hover { background: #7a5b82; }
.category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card-open { text-decoration: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--green); }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; }
.filter-bar select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.detail-top { margin-top: 24px; }
.detail-photo.empty-photo { background: var(--soft); }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-list div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.metric-list dt { color: var(--muted); }
.metric-list dd { margin: 0; font-weight: 700; }
.metric-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.metric-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.metric-fields select { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: white; }
.rating-box .form-field { margin-top: 16px; }
.shopping-layout { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 24px; }
.shopping-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.shopping-panel h2 { font: 30px Georgia,serif; margin: 0 0 22px; }
.shopping-choice { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shopping-choice input,.shopping-items input { width: 18px; height: 18px; accent-color: var(--green); }
.shopping-items { list-style: none; padding: 0; margin: 0 0 24px; }
.shopping-items li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.shopping-items label { display: flex; gap: 12px; align-items: center; }
.shopping-items input:checked + span { text-decoration: line-through; color: var(--muted); }
.ingredient-row { display: grid; grid-template-columns: 100px 110px 1fr 42px; gap: 8px; margin: 0 0 8px; }
.ingredient-row input { min-width: 0; min-height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.icon-button { border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 24px; }
#add-ingredient { margin: 8px 0 22px; }
.tag-fieldset { border: 0; padding: 0; margin: 18px 0 24px; display: flex; gap: 12px 18px; flex-wrap: wrap; }
.tag-fieldset legend { margin-bottom: 10px; }
.tag-fieldset label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.tag-fieldset input { width: 18px; height: 18px; accent-color: var(--green); }
.section-heading p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.page-actions { display: flex; align-items: center; gap: 12px; }
.t4-easter { position: relative; width: 68px; height: 48px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); text-decoration: none; }
.t4-easter:hover { background: var(--soft); }
.t4-label { position: absolute; top: 48px; font-size: 11px; font-weight: 750; letter-spacing: 1px; opacity: 0; transform: translateY(-3px); transition: .15s ease; }
.t4-easter:hover .t4-label,.t4-easter:focus-visible .t4-label { opacity: 1; transform: translateY(0); }
.t4-mini { position: relative; width: 50px; height: 27px; display: block; background: #463d72; border: 3px solid #29243d; box-shadow: inset 0 -7px #352e59; image-rendering: pixelated; }
.t4-mini::before { content: ""; position: absolute; left: 4px; top: 3px; width: 13px; height: 8px; background: #9fb2b7; box-shadow: 17px 0 #9fb2b7; }
.t4-mini::after { content: ""; position: absolute; left: 4px; bottom: -8px; width: 9px; height: 7px; background: #211d2d; box-shadow: 30px 0 #211d2d; }
.t4-mini i { position: absolute; right: -4px; top: 8px; width: 4px; height: 8px; background: #d7c8a7; }
.t4-mini b { position: absolute; left: 20px; bottom: 2px; width: 8px; height: 3px; background: #b5a888; }
.game-loading { text-align: center; padding: 80px 0; color: var(--muted); }
.t4-game { max-width: 1000px; margin: 0 auto; }
.game-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.game-heading h1 { font-size: clamp(42px,6vw,64px); }
.game-sound { min-width: 100px; }
.game-stamps { display: flex; gap: 10px; margin: 0 0 18px; }
.game-stamps span { width: 42px; height: 42px; border: 2px dashed #9a94a4; border-radius: 50%; display: grid; place-items: center; font: 700 12px Georgia,serif; color: #898391; transform: rotate(-5deg); }
.game-stamps span:nth-child(even) { transform: rotate(6deg); }
.game-stamps span.earned { border-style: solid; border-color: var(--accent); color: var(--accent); background: #fff7f4; }
.game-shell { background: #29243d; border: 1px solid #201c30; border-radius: 20px; padding: 16px; box-shadow: 0 22px 60px #29243d26; }
.game-hud { max-width: 480px; margin: 0 auto 12px; color: #fff; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.game-hud span { background: #ffffff12; border: 1px solid #ffffff24; border-radius: 7px; padding: 8px; min-width: 0; }
.game-hud small,.game-hud strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-hud small { color: #cbc6d7; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 2px; }
.game-hud strong { font-size: 13px; }
.game-screen { position: relative; width: min(100%,480px); margin: 0 auto; aspect-ratio: 2 / 3; overflow: hidden; background: #706b75; border: 4px solid #17141f; border-radius: 5px; }
.game-screen canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; touch-action: none; }
.game-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; background: #211d2dcc; backdrop-filter: blur(2px); }
.game-card { width: min(100%,370px); padding: 26px; border-radius: 5px; border: 4px solid #29243d; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 8px 8px 0 #17141f; }
.game-card h2 { font: 32px Georgia,serif; margin: 0 0 14px; }
.game-card p { line-height: 1.5; }
.game-card > .primary { margin-top: 12px; }
.game-card > small { display: block; margin-top: 12px; color: var(--muted); }
.game-best { font-size: 13px; color: var(--muted); }
.pixel-t4-large { position: relative; width: 90px; height: 116px; margin: 0 auto 24px; background: #463d72; border: 6px solid #242033; box-shadow: inset 0 -28px #312b53; image-rendering: pixelated; }
.pixel-t4-large::before { content: ""; position: absolute; left: 9px; top: 13px; width: 25px; height: 25px; background: #9fb2b7; box-shadow: 39px 0 #9fb2b7; }
.pixel-t4-large::after { content: ""; position: absolute; left: -10px; top: 26px; width: 5px; height: 24px; background: #17151f; box-shadow: 89px 0 #17151f,0 58px #17151f,89px 58px #17151f; }
.pixel-t4-large span { position: absolute; left: 11px; bottom: 9px; width: 16px; height: 8px; background: #d7c8a7; box-shadow: 49px 0 #d7c8a7; }
.pixel-t4-large i { position: absolute; left: 21px; top: 51px; width: 43px; height: 30px; background: #352e59; }
.pixel-t4-large b { position: absolute; left: 33px; bottom: 8px; width: 18px; height: 5px; background: #b5a888; }
.repair-tools { display: grid; gap: 8px; margin: 18px 0; }
.repair-tools button { width: 100%; }
.repair-status { min-height: 24px; font-weight: 650; }
.game-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.game-stats div { padding: 10px; background: var(--soft); border-radius: 7px; }
.game-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.game-stats dd { margin: 4px 0 0; font-weight: 750; }
.game-controls { max-width: 480px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 12px auto 0; }
.game-controls button { min-height: 54px; border: 1px solid #ffffff2e; border-radius: 7px; color: #fff; background: #ffffff10; font-weight: 700; touch-action: none; user-select: none; }
.game-controls button:first-child,.game-controls button:last-child { font-size: 25px; }
.game-controls button:active { background: #ffffff28; }
.game-note { color: var(--muted); text-align: center; font-size: 13px; margin: 14px 0 0; }
@media (max-width: 800px) { .area-grid,.category-grid,.shopping-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ingredient-row { grid-template-columns: 72px 75px minmax(0,1fr) 36px; gap: 5px; } .ingredient-row input { font-size: 14px; padding: 6px; } .metric-fields { grid-template-columns: 1fr; } .page-actions { width: 100%; justify-content: space-between; } .game-heading { align-items: center; } .game-heading h1 { font-size: 38px; letter-spacing: -1px; } .game-shell { padding: 8px; border-radius: 12px; } .game-hud { gap: 4px; } .game-hud span { padding: 6px 5px; } .game-hud strong { font-size: 11px; } .game-overlay { padding: 15px; } .game-card { padding: 20px 16px; } .pixel-t4-large { transform: scale(.82); margin-top: -8px; margin-bottom: 4px; } }
/* T4 roadtrip: illustrated travel journal and readable driving objects. */
.t4-game { --trip-paper:#f7f1e5; --trip-ink:#283d47; max-width:1040px; }
.game-back { display:block;font-size:13px;color:var(--muted);margin-bottom:22px;text-decoration:none; }
.game-heading { align-items:center;margin-bottom:25px; }
.game-heading .eyebrow { color:#85715c;font-size:11px;letter-spacing:2px; }
.game-heading h1 { font-size:64px; }
.game-route { display:grid;grid-template-columns:repeat(4,1fr);list-style:none;gap:0;padding:0;margin:0 0 24px;border:1px solid #d8d1c5;border-radius:12px;overflow:hidden;background:#fbf8f1; }
.game-route li { display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 8px;padding:13px 16px;border-right:1px solid #d8d1c5; }
.game-route li:last-child { border:0; }
.game-route li>span { grid-row:span 2;font-size:25px; }
.game-route b { font-size:13px; }
.game-route small { font-size:10px;color:#7e776d; }
.game-route li.current { background:#e8e4d4;box-shadow:inset 0 -3px #977c53; }
.game-route li.earned small::after { content:' ✓';color:#4c7a62; }
.roadtrip-layout { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(240px,1fr);gap:28px;align-items:start; }
.game-shell { background:#283c46;border-color:#283c46;padding:12px;border-radius:14px;box-shadow:0 15px 35px #283c4620; }
.game-hud { grid-template-columns:1fr 1fr 1.3fr;max-width:none;gap:8px;margin-bottom:10px; }
.game-hud small { color:#bfcec9;letter-spacing:.7px;font-size:10px; }
.game-hud strong { font:700 17px ui-monospace,monospace; }
.game-hud span { border:0;background:#ffffff0c;padding:8px 10px; }
.stage-caption { color:#f5edda;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 2px 12px; }
.stage-caption strong { font-size:16px; }
.stage-caption span { font-size:11px;color:#c6d3ce;text-align:right; }
.game-screen { width:100%;max-width:none;border:0;border-radius:7px; }
.game-screen canvas { image-rendering:auto; }
.game-overlay { background:#283c4655;backdrop-filter:blur(3px);padding:16px;overflow-y:auto; }
.game-card { background:var(--trip-paper);border:1px solid #c5baa4;border-radius:10px;box-shadow:0 12px 30px #18232c55;width:100%;max-width:400px;padding:22px;color:var(--trip-ink); }
.game-card h2 { font-size:28px; }
.game-card p { font-size:14px; }
.game-card .eyebrow { font-size:10px;color:#85715c;letter-spacing:1.4px; }
.van-portrait { width:100%;height:auto;display:block;margin:-4px auto 4px; }
.game-card>.primary { background:#354e55;width:100%;font-size:14px; }
.game-card>small { font-size:11px;line-height:1.4; }
.burger-brief { display:flex;text-align:left;align-items:center;gap:10px;padding:10px;background:#eee3c9;border-radius:7px;font-size:12px;line-height:1.5; }
.burger-brief img { flex:none;width:42px;height:42px; }
.game-feedback { min-height:42px;display:flex;align-items:center;color:#f2e5bf;font-size:12px;line-height:1.4;padding:7px 3px; }
.game-controls { max-width:none;margin-top:0; }
.game-controls button { min-height:54px;background:#ffffff14; }
.trip-guide { background:#fbf8f1;border:1px solid #ddd6c7;border-radius:12px;padding:24px; }
.trip-guide h2 { font:26px/1.15 Georgia,serif;margin:0 0 22px;color:#354952; }
.object-guide { display:grid;gap:10px; }
.object-guide>div { display:flex;align-items:center;gap:12px; }
.object-guide img { width:42px;height:42px;flex:none; }
.object-guide strong { display:block;font-size:13px;color:#334952; }
.object-guide small { display:block;font-size:12px;color:#7d756b;margin-top:3px; }
.trip-garage { border-top:1px solid #ddd6c7;margin-top:22px;padding-top:10px; }
.trip-garage img { width:100%; }
.trip-garage h3 { font:24px Georgia,serif;margin:0; }
.trip-garage p { font-size:12px;color:#7d756b;line-height:1.6; }
.repair-van { width:180px;max-width:80%;display:block;margin:0 auto; }
.t4-easter { width:84px; }
@media(max-width:760px) {
  .roadtrip-layout { grid-template-columns:1fr;gap:18px; }
  .t4-game { max-width:500px; }
  .game-heading h1 { font-size:48px; }
  .game-route li { padding:9px 3px;display:flex;flex-direction:column;gap:4px; }
  .game-route b { font-size:10px; }
  .game-route li>span { font-size:21px; }
  .game-route small { font-size:9px; }
  .game-route { margin-bottom:15px; }
  .game-card { padding:15px; }
  .game-card h2 { font-size:23px;margin-bottom:8px; }
  .game-card p { font-size:12px;margin:8px 0; }
  .game-card .eyebrow { font-size:9px; }
  .game-card .primary { padding:10px;font-size:12px;min-height:42px; }
  .van-portrait { max-width:240px; }
  .game-overlay { padding:10px; }
  .game-hud small { font-size:9px; }
  .game-hud strong { font-size:15px; }
  .game-hud span { padding:7px; }
  .stage-caption { flex-wrap:wrap; }
  .stage-caption strong { font-size:14px; }
  .stage-caption span { font-size:10px; }
  .burger-brief { padding:6px;font-size:11px;gap:6px; }
  .burger-brief img { width:33px;height:33px; }
  .object-guide { grid-template-columns:1fr 1fr;gap:14px 10px; }
  .object-guide>div { gap:7px; }
  .object-guide img { width:36px;height:36px; }
  .object-guide strong { font-size:12px; }
  .object-guide small { font-size:10px; }
  .trip-guide { padding:20px; }
  .trip-garage { display:none; }
}
@media(max-width:360px) { .game-hud small { letter-spacing:0;font-size:8px; }.van-portrait { max-width:170px; }.game-card>small { font-size:9px; }.game-card h2 { font-size:21px; }.game-card .eyebrow { margin:2px 0; }.game-overlay { padding:7px; } }

.t4-label { white-space: nowrap; }
.game-heading > div { min-width: 0; }
.game-heading h1 { font-size: clamp(32px, 5vw, 60px); overflow-wrap: normal; }
