@import url('./tokens.css');
* { box-sizing: border-box; }
body { margin: 0; color: var(--tu-ink); font-family: var(--tu-font-body); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
 outline: 3px solid #1648a4; outline-offset: 4px;
}
.tu-button {
 display: inline-flex; align-items: center; justify-content: center; gap: 10px;
 min-height: 56px; padding: 12px 22px; border: 3px solid var(--tu-ink); border-radius: 18px;
 background: linear-gradient(#b7ee6f, #6fca47 35%, #58b340);
 color: var(--tu-ink); box-shadow: 0 5px 0 #347c37, inset 0 2px 0 #e4ffc4;
 font-weight: 800; font-size: 18px; text-decoration: none;
 transition: transform 100ms ease, filter 100ms ease;
}
.tu-button img { width: 26px; height: 26px; }
.tu-button.blue { background: linear-gradient(#b3e7ff, #65baf1 40%, #3a94da); box-shadow: 0 5px 0 #2869a6, inset 0 2px 0 #effbff; }
.tu-button.yellow { background: linear-gradient(#fff4b2, #ffda52 35%, #f4bc3b); box-shadow: 0 5px 0 #b18435, inset 0 2px 0 #fff8d2; }
.tu-button.cream { background: linear-gradient(#fffef5, #fff5d8 45%, #efddb5); box-shadow: 0 5px 0 #b9a77e, inset 0 2px 0 #fff; }
@media (hover: hover) { .tu-button:hover { filter: brightness(1.05); transform: translateY(-1px); } }
.tu-button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tu-ink); }
.tu-button:disabled { background: #d6dee5; box-shadow: 0 5px 0 #9caebd; border-color: #71849a; color: #586b7b; transform: none; filter: none; }
.tu-panel { background: var(--tu-paper); border: 3px solid var(--tu-ink); border-radius: 25px; padding: 24px; box-shadow: var(--tu-shadow), inset 0 0 0 5px #fffdf5; }
.tu-input { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #7898b5; border-radius: 13px; background: #fff; color: var(--tu-ink); font-size: 16px; }
.tu-icon-button { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 10px; border: 2px solid var(--tu-ink); border-radius: 15px; background: var(--tu-paper); color: var(--tu-ink); box-shadow: 0 3px 0 #b9a77e; }
.tu-icon-button img { width: 24px; height: 24px; }
.tu-label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.tu-caption { color: var(--tu-muted); line-height: 1.5; font-size: 14px; }
.tu-tag { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 2px solid var(--tu-ink); background: var(--tu-paper); border-radius: 999px; font-size: 12px; font-weight: 800; }
.tu-tag img { width: 17px; height: 17px; }
/* Scope touch restrictions to active play surfaces, never to launcher forms. */
.tu-play-surface { position: relative; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.tu-game-touch-region { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tu-control { border: 0; background: transparent; min-width: var(--tu-hit-min); min-height: var(--tu-hit-min); padding: 0; touch-action: none; }
.tu-control img { width: 100%; height: 100%; display: block; pointer-events: none; }
.tu-control:active { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
