/* My Mind Is Ok — Activities Centre v1.5.0 · aurora glass */
.mact-root { --ink: #fff7ee; --dim: rgba(255, 247, 236, 0.68); --faint: rgba(255, 247, 236, 0.45); --glass: rgba(255, 255, 255, 0.06); --glass2: rgba(255, 255, 255, 0.1); --line: rgba(255, 255, 255, 0.12); --mint: #8be0bd; --gold: #f6bd49; --gold2: #ffe8b0; --orange: #ff9d64; --felt-a: #12463f; --felt-b: #0a2320; --felt-c: #071614; --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; --serif: 'Newsreader', Georgia, serif; display: block; font-family: var(--sans); color: var(--ink); }
.mact-root * { box-sizing: border-box; }
.mact-root a { color: var(--gold); text-decoration: none; }
.mact-root a:hover { color: var(--gold2); text-decoration: underline; }
.mact-root button { font-family: inherit; }
.mact-root :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ---------- Membership access ---------- */
.mact-access { max-width: 720px; margin: 2rem auto; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 28px; background: radial-gradient(120% 150% at 80% 0%, #12463f 0%, #0a2320 58%, #071614 100%); box-shadow: 0 26px 70px rgba(7, 22, 20, 0.35); text-align: center; }
.mact-access h2 { margin: 0 0 0.65rem; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); }
.mact-access p { max-width: 36rem; margin: 0 auto 1.25rem; color: var(--dim); line-height: 1.6; }

/* ---------- Aurora shells ---------- */
.mact-hub, .mact-room { position: relative; overflow: clip; max-width: 1120px; margin: 0 auto 2.5rem; padding: clamp(1.4rem, 3.5vw, 2.6rem); border-radius: 34px; border: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(120% 130% at 78% 0%, var(--felt-a) 0%, var(--felt-b) 55%, var(--felt-c) 100%); box-shadow: 0 34px 90px rgba(7, 22, 20, 0.38); }
.mact-hub::before, .mact-room::before { content: ""; position: absolute; top: -24%; left: -10%; width: 24rem; height: 24rem; border-radius: 50%; background: radial-gradient(circle, rgba(139, 224, 189, 0.18), transparent 70%); filter: blur(10px); pointer-events: none; animation: mact-float 11s ease-in-out infinite; }
.mact-hub::after, .mact-room::after { content: ""; position: absolute; right: -12%; bottom: -30%; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, rgba(246, 189, 73, 0.1), transparent 70%); filter: blur(12px); pointer-events: none; }
.mact-hub > *, .mact-room > * { position: relative; z-index: 1; }
@keyframes mact-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(2.5rem, 1.5rem, 0); } }

/* ---------- Hub ---------- */
.mact-eyebrow { margin: 0 0 0.7rem; color: var(--gold); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.mact-title { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.01em; }
.mact-title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--mint); }
.mact-sub { margin: 0 0 2rem; max-width: 44rem; color: var(--dim); font-size: 1.05rem; line-height: 1.6; }
.mact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1rem; }
.mact-card { position: relative; display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem 1.4rem 1.35rem; color: var(--ink); background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); border-radius: 24px; text-align: left; cursor: pointer; backdrop-filter: blur(6px); transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease; }
.mact-card:hover { transform: translateY(-4px); border-color: rgba(246, 189, 73, 0.45); background: linear-gradient(165deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)); box-shadow: 0 22px 44px rgba(7, 22, 20, 0.45), 0 0 0 1px rgba(246, 189, 73, 0.12) inset; }
.mact-card:active { transform: translateY(-1px); }
.mact-card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--tint-ink, var(--mint)); border: 1px solid var(--line); background: var(--tint, rgba(255, 255, 255, 0.07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.mact-card-icon svg { width: 28px; height: 28px; }
.mact-card h3 { margin: 0; font-size: 1.22rem; font-weight: 800; }
.mact-card p { margin: 0; color: var(--dim); font-size: 0.94rem; line-height: 1.55; }
.mact-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.4rem; }
.mact-chip { display: inline-flex; align-items: center; min-height: 1.7rem; padding: 0 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.05); }
.mact-chip.live { color: #0a2320; border-color: transparent; background: linear-gradient(135deg, var(--mint), #5fc39a); font-weight: 800; }
.mact-card-go { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--faint); transition: transform 260ms ease, color 260ms ease; }
.mact-card:hover .mact-card-go { transform: translateX(3px); color: var(--gold); }

/* ---------- Room ---------- */
.mact-room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.mact-room-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.mact-room-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }

/* ---------- Controls ---------- */
.mact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.7rem; padding: 0 1.2rem; border: 1px solid rgba(255, 247, 236, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 0.92rem; font-weight: 800; cursor: pointer; backdrop-filter: blur(4px); transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease; }
.mact-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.14); box-shadow: 0 10px 22px rgba(7, 22, 20, 0.35); }
.mact-btn.orange { border-color: transparent; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #06201d; box-shadow: 0 14px 34px rgba(246, 189, 73, 0.32); }
.mact-btn.orange:hover { box-shadow: 0 18px 40px rgba(246, 189, 73, 0.42); }
.mact-btn.ghost { background: transparent; border-color: rgba(255, 247, 236, 0.22); color: var(--dim); }
.mact-btn.ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); box-shadow: none; }
.mact-btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.mact-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(4px); }
.mact-seg button { min-height: 2.15rem; padding: 0 0.85rem; border: none; border-radius: 999px; background: transparent; color: var(--dim); font-size: 0.84rem; font-weight: 800; cursor: pointer; transition: color 200ms ease; }
.mact-seg button:hover { color: var(--ink); }
.mact-seg button.on { background: #f7f1ea; color: #20201f; }
.mact-select { min-height: 2.7rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-family: inherit; font-size: 0.92rem; font-weight: 700; }
.mact-range { accent-color: var(--gold); }
.mact-note { color: var(--dim); font-size: 0.88rem; }
.mact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mact-sep { width: 1px; height: 1.8rem; background: var(--line); }

/* ---------- Overlay ---------- */
.mact-overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 1rem; background: rgba(7, 22, 20, 0.55); backdrop-filter: blur(4px); border-radius: inherit; }
.mact-overlay-card { max-width: 24rem; padding: 1.7rem 1.8rem; color: var(--ink); background: linear-gradient(165deg, rgba(24, 66, 58, 0.92), rgba(10, 35, 32, 0.96)); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; box-shadow: 0 30px 70px rgba(7, 22, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); text-align: center; }
.mact-overlay-card h3 { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 800; }
.mact-overlay-card p { margin: 0 0 1.2rem; color: var(--dim); line-height: 1.55; }
.mact-overlay-card .mact-row { justify-content: center; }

/* ---------- Jigsaw ---------- */
.mact-jz { display: grid; gap: 0.9rem; }
.mact-jz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.mact-jz-progress { flex: 1 1 10rem; height: 0.55rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.mact-jz-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold2), var(--gold)); box-shadow: 0 0 12px rgba(246, 189, 73, 0.5); transition: width 400ms ease; }
.mact-jz-boardwrap { position: relative; overflow: auto; max-height: 66vh; border: 1px solid var(--line); border-radius: 20px; background: rgba(4, 14, 12, 0.55); box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mact-jz-board { position: relative; margin: 24px; }
.mact-jz-board .mact-jz-ghost { position: absolute; inset: 0; opacity: 0.16; pointer-events: none; border-radius: 4px; }
.mact-jz-grid { position: absolute; inset: 0; pointer-events: none; }
.mact-jz-piece { position: absolute; cursor: grab; touch-action: none; }
.mact-jz-piece.locked { cursor: default; }
.mact-jz-piece.dragging { cursor: grabbing; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); z-index: 20; }
.mact-jz-tray { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.5rem; overflow-x: auto; padding: 0.75rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); backdrop-filter: blur(6px); min-height: 100px; scrollbar-width: thin; scrollbar-color: rgba(255, 247, 236, 0.3) transparent; }
.mact-jz-tray .mact-jz-piece { position: relative; flex: 0 0 auto; transition: transform 180ms ease; }
.mact-jz-tray .mact-jz-piece:hover { transform: translateY(-4px) scale(1.05); }
.mact-jz-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.7rem; }
.mact-jz-scene { position: relative; overflow: hidden; padding: 0; border: 2px solid rgba(255, 255, 255, 0.14); border-radius: 18px; cursor: pointer; background: none; box-shadow: 0 12px 28px rgba(7, 22, 20, 0.4); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.mact-jz-scene img { display: block; width: 100%; height: 118px; object-fit: cover; }
.mact-jz-scene span { position: absolute; left: 0.6rem; bottom: 0.55rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(7, 22, 20, 0.72); backdrop-filter: blur(4px); color: var(--ink); font-size: 0.76rem; font-weight: 800; }
.mact-jz-scene:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(7, 22, 20, 0.55); }
.mact-jz-scene.on { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 189, 73, 0.2), 0 16px 34px rgba(7, 22, 20, 0.5); }

/* ---------- Chess ---------- */
.mact-ch { display: grid; grid-template-columns: minmax(280px, 620px) minmax(220px, 1fr); gap: 1.3rem; align-items: start; }
.mact-ch-board { display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; max-width: 620px; aspect-ratio: 1; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 24px 60px rgba(7, 22, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2); user-select: none; }
.mact-ch-sq { position: relative; display: grid; place-items: center; border: none; padding: 0; font-size: clamp(24px, 5.2vw, 46px); line-height: 1; cursor: pointer; }
.mact-ch-sq.light { background: linear-gradient(180deg, #f5ecdd, #eee1cc); }
.mact-ch-sq.dark { background: linear-gradient(180deg, #376553, #2e5747); }
.mact-ch-sq.last { box-shadow: inset 0 0 0 100vmax rgba(246, 189, 73, 0.28); }
.mact-ch-sq.sel { box-shadow: inset 0 0 0 3px var(--gold); }
.mact-ch-sq.can::after { content: ""; width: 22%; height: 22%; border-radius: 50%; background: rgba(246, 189, 73, 0.6); box-shadow: 0 0 10px rgba(246, 189, 73, 0.55); }
.mact-ch-sq.cap::after { content: ""; position: absolute; inset: 6%; border: 3px solid rgba(246, 189, 73, 0.7); border-radius: 50%; }
.mact-ch-sq .wp { color: #fdf6ec; text-shadow: 0 1px 0 #6d5335, 0 2px 6px rgba(7, 22, 20, 0.6); }
.mact-ch-sq .bp { color: #1d1a17; text-shadow: 0 1px 2px rgba(255, 247, 236, 0.28); }
.mact-ch-side { display: grid; gap: 0.9rem; }
.mact-ch-status { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); backdrop-filter: blur(6px); font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.mact-ch-status small { display: block; margin-top: 0.3rem; color: var(--dim); font-size: 0.85rem; font-weight: 600; line-height: 1.5; }
.mact-ch-cap { min-height: 1.6rem; font-size: 1.3rem; letter-spacing: 0.08em; color: var(--ink); text-shadow: 0 1px 3px rgba(7, 22, 20, 0.5); }
.mact-ch-cap span { display: block; color: var(--faint); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) { .mact-ch { grid-template-columns: 1fr; } }

/* ---------- Calm Cards ---------- */
.mact-cd { position: relative; }
.mact-cd-bots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.1rem; }
.mact-cd-bot { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem 0.45rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); backdrop-filter: blur(4px); transition: box-shadow 300ms ease, background 300ms ease; }
.mact-cd-bot.turn { background: rgba(246, 189, 73, 0.13); box-shadow: 0 0 0 2px rgba(246, 189, 73, 0.55), 0 0 22px rgba(246, 189, 73, 0.25); }
.mact-cd-bot b { font-size: 0.92rem; }
.mact-cd-bot i { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-style: normal; font-weight: 900; color: #06201d; background: linear-gradient(135deg, var(--mint), #5fc39a); }
.mact-cd-bot small { color: var(--dim); font-weight: 700; }
.mact-cd-table { display: flex; align-items: center; justify-content: center; gap: 1.7rem; min-height: 11.5rem; }
.mact-card-face { position: relative; display: grid; place-items: center; width: 88px; height: 126px; border-radius: 14px; color: #fff; box-shadow: 0 12px 26px rgba(4, 14, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mact-card-face .num { font-size: 2.6rem; font-weight: 900; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }
.mact-card-face .pip { position: absolute; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.02em; opacity: 0.9; }
.mact-card-face .pip.tl { top: 7px; left: 9px; }
.mact-card-face .pip.br { right: 9px; bottom: 7px; transform: rotate(180deg); }
.mact-card-back { display: grid; place-items: center; width: 88px; height: 126px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: radial-gradient(circle at 50% 38%, #1a5a4d, #0d2e28 75%); box-shadow: 0 12px 26px rgba(4, 14, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); cursor: pointer; transition: transform 200ms ease, box-shadow 200ms ease; }
.mact-card-back:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(4, 14, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.mact-card-back::after { content: ""; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(246, 189, 73, 0.7); box-shadow: inset 0 0 0 6px rgba(255, 247, 236, 0.08), 0 0 18px rgba(246, 189, 73, 0.25); }
.mact-cd-log { min-height: 1.4rem; margin: 1rem 0 0.6rem; text-align: center; color: var(--dim); font-size: 0.95rem; }
.mact-cd-hand { display: flex; justify-content: center; padding: 0.4rem 0 0.6rem; min-height: 9.6rem; }
.mact-cd-hand .mact-cardbtn { border: none; padding: 0; background: none; margin-left: -34px; cursor: pointer; transition: transform 220ms ease, filter 220ms ease; }
.mact-cd-hand .mact-cardbtn:first-child { margin-left: 0; }
.mact-cd-hand .mact-cardbtn.ok:hover { transform: translateY(-14px) !important; }
.mact-cd-hand .mact-cardbtn.no { filter: saturate(0.3) brightness(0.55); cursor: default; }
.mact-cd-hand .mact-cardbtn.ok .mact-card-face { box-shadow: 0 12px 26px rgba(4, 14, 12, 0.55), 0 0 0 2px rgba(246, 189, 73, 0.6), 0 0 18px rgba(246, 189, 73, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.mact-suit-leaf { background: linear-gradient(160deg, #4c8a67, #2f6247) !important; }
.mact-suit-wave { background: linear-gradient(160deg, #58869f, #33586e) !important; }
.mact-suit-sun { background: linear-gradient(160deg, #e2a23b, #b97b22) !important; }
.mact-suit-cloud { background: linear-gradient(160deg, #8d84a4, #5f5876) !important; }
.mact-suit-wild { background: conic-gradient(from 200deg, #4c8a67, #58869f, #8d84a4, #e2a23b, #4c8a67) !important; }

/* ---------- Painting ---------- */
.mact-pt { display: grid; gap: 0.85rem; }
.mact-pt-template-panel { overflow: hidden; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 24px; background: radial-gradient(90% 150% at 90% 0%, rgba(139, 224, 189, 0.14), transparent 54%), linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 46px rgba(4, 14, 12, 0.24); }
.mact-pt-template-head { display: flex; justify-content: space-between; gap: 1.2rem; align-items: end; margin-bottom: 1rem; }
.mact-pt-template-head h3 { margin: 0; color: var(--ink); font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.mact-pt-template-head p:not(.mact-eyebrow) { max-width: 48rem; margin: 0.35rem 0 0; color: var(--dim); font-size: 0.88rem; line-height: 1.55; }
.mact-pt-template-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 142px; gap: 0.7rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.8rem; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 247, 236, 0.3) transparent; }
.mact-pt-template { overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 16px; color: var(--ink); background: rgba(255, 255, 255, 0.06); text-align: left; cursor: pointer; scroll-snap-align: start; box-shadow: 0 10px 26px rgba(4, 14, 12, 0.2); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.mact-pt-template:hover { transform: translateY(-3px); border-color: rgba(246, 189, 73, 0.45); box-shadow: 0 16px 34px rgba(4, 14, 12, 0.34); }
.mact-pt-template.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 189, 73, 0.2), 0 16px 34px rgba(4, 14, 12, 0.34); }
.mact-pt-template canvas { display: block; width: 100%; aspect-ratio: 180 / 112; background: #fbf6ee; }
.mact-pt-template > span { display: flex; min-height: 3.2rem; align-items: center; gap: 0.45rem; padding: 0.55rem 0.65rem; }
.mact-pt-template > span b { font-size: 1rem; }
.mact-pt-template > span strong { font-size: 0.75rem; line-height: 1.25; }
.mact-pt-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 0.85rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 16px 42px rgba(4, 14, 12, 0.2); }
.mact-pt-control-group { display: grid; gap: 0.55rem; align-content: start; padding: 0.72rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px; background: rgba(4, 14, 12, 0.16); }
.mact-pt-control-label { color: var(--dim); font-size: 0.71rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.mact-pt-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.mact-pt-tools button { display: grid; min-height: 3.9rem; place-items: center; gap: 0.15rem; padding: 0.35rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; color: var(--dim); background: rgba(255, 255, 255, 0.055); cursor: pointer; }
.mact-pt-tools button span { font-size: 1.2rem; line-height: 1; }
.mact-pt-tools button b { font-size: 0.68rem; line-height: 1.1; }
.mact-pt-tools button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.mact-pt-tools button.on { border-color: transparent; color: #06201d; background: linear-gradient(135deg, var(--mint), #5fc39a); box-shadow: 0 9px 22px rgba(4, 14, 12, 0.25); }
.mact-pt-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.mact-pt-sizes button { display: grid; min-height: 2.7rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.mact-pt-sizes button span { display: block; width: var(--dot); height: var(--dot); max-width: 20px; max-height: 20px; border-radius: 50%; background: rgba(255, 247, 236, 0.74); }
.mact-pt-sizes button.on { border-color: var(--gold); background: rgba(246, 189, 73, 0.14); box-shadow: 0 0 0 2px rgba(246, 189, 73, 0.12); }
.mact-pt-size-range { width: 100%; }
.mact-pt-colour-group, .mact-pt-finish-group { grid-column: 1 / -1; }
.mact-pt-swatches { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mact-pt-swatch { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; box-shadow: 0 3px 8px rgba(4, 14, 12, 0.4); transition: transform 160ms ease; }
.mact-pt-swatch:hover { transform: scale(1.14); }
.mact-pt-swatch.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 189, 73, 0.3), 0 3px 8px rgba(4, 14, 12, 0.4); }
.mact-pt-colour-custom { width: 2rem; height: 2rem; overflow: hidden; padding: 0; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: transparent; cursor: pointer; }
.mact-pt-colour-custom::-webkit-color-swatch-wrapper { padding: 0; }
.mact-pt-colour-custom::-webkit-color-swatch { border: 0; border-radius: 50%; }
.mact-pt-finish-group > .mact-row { justify-content: space-between; }
.mact-pt-frame { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; background: #fbf6ee; box-shadow: 0 22px 50px rgba(7, 22, 20, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mact-pt-frame canvas { display: block; width: 100%; }
.mact-pt-paint { position: relative; z-index: 1; touch-action: none; cursor: crosshair; }
.mact-pt-outline { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.mact-save-status { margin: -0.35rem 0 0; min-height: 1.35rem; }
@media (max-width: 720px) {
  .mact-pt-template-head { align-items: start; flex-direction: column; }
  .mact-pt-bar { grid-template-columns: 1fr; }
  .mact-pt-colour-group, .mact-pt-finish-group { grid-column: auto; }
  .mact-pt-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mact-pt-finish-group > .mact-row { align-items: stretch; }
  .mact-pt-finish-group .mact-btn { flex: 1 1 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mact-root *, .mact-root *::before, .mact-root *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Guidance layer (v1.3.0) ---------- */
.mact-jz-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0.95rem; align-items: start; }
.mact-jz-main { display: grid; gap: 0.9rem; min-width: 0; }
.mact-jz-side { display: grid; gap: 0.9rem; align-content: start; }
.mact-ref { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); box-shadow: 0 16px 36px rgba(7, 22, 20, 0.4); }
.mact-ref img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mact-ref-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.65rem 0.85rem; }
.mact-ref-cap b { font-size: 0.95rem; }
.mact-ref-cap span { color: var(--faint); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.mact-next { display: grid; gap: 0.6rem; padding: 0.95rem; border: 1px solid rgba(246, 189, 73, 0.35); border-radius: 18px; background: linear-gradient(165deg, rgba(246, 189, 73, 0.12), rgba(246, 189, 73, 0.03)); }
.mact-next-title { margin: 0; color: var(--gold); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.mact-next-thumb { display: grid; place-items: center; min-height: 96px; border-radius: 12px; background: rgba(4, 14, 12, 0.4); }
.mact-next .mact-btn { justify-self: start; }
@media (max-width: 900px) { .mact-jz-layout { grid-template-columns: 1fr; } .mact-jz-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Premium wordplay collection */
.mact-wp { display: grid; gap: 1rem; }
.mact-wp-intro { padding: clamp(1.15rem, 3vw, 1.8rem); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: radial-gradient(100% 180% at 95% 0, rgba(139,224,189,.13), transparent 56%), linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 46px rgba(4,14,12,.22); }
.mact-wp-intro h3 { margin: 0; color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.mact-wp-intro > p:last-child { max-width: 56rem; margin: .55rem 0 0; color: var(--dim); line-height: 1.65; }
.mact-wp-levels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.mact-wp-level { min-height: 5.5rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.055); text-align: left; cursor: pointer; transition: transform 170ms ease, border-color 170ms ease, background 170ms ease; }
.mact-wp-level:hover { transform: translateY(-2px); border-color: rgba(246,189,73,.45); }
.mact-wp-level.on { border-color: var(--gold); background: linear-gradient(145deg,rgba(246,189,73,.16),rgba(255,255,255,.06)); box-shadow: 0 0 0 3px rgba(246,189,73,.12); }
.mact-wp-level strong,.mact-wp-level small { display: block; }
.mact-wp-level strong { font: 850 .9rem Inter,system-ui; }
.mact-wp-level small { margin-top: .3rem; color: var(--dim); font: 650 .74rem/1.35 Inter,system-ui; }
.mact-wp-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--mint); font-weight: 750; line-height: 1.5; }
.mact-wp-side,.mact-cw-clues { padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.mact-wp-end { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
.mact-wp-end .mact-wp-status { margin: 0 0 0 .3rem; }

.mact-ws-layout { display: grid; grid-template-columns: minmax(300px,720px) minmax(210px,1fr); gap: 1rem; align-items: start; }
.mact-ws-board { display: grid; grid-template-columns: repeat(var(--ws-size),1fr); overflow: hidden; padding: clamp(.35rem,1vw,.65rem); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: linear-gradient(145deg,#fffaf1,#eef8f3); box-shadow: 0 24px 70px rgba(4,14,12,.32), inset 0 1px 0 #fff; aspect-ratio: 1; }
.mact-ws-cell { display: grid; min-width: 0; place-items: center; border: 0; border-radius: 7px; color: #17342e; background: transparent; font: 850 clamp(.52rem,1.4vw,1rem)/1 Inter,system-ui; cursor: pointer; transition: background 130ms ease, transform 130ms ease; }
.mact-ws-cell:hover,.mact-ws-cell.start { color: #102720; background: #ffd889; transform: scale(1.06); }
.mact-ws-cell.found { color: #0a352c; background: #9be2c4; box-shadow: inset 0 0 0 1px rgba(15,108,99,.16); }
.mact-ws-word { display: block; margin: .35rem 0; padding: .45rem .6rem; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.06); font: 800 .78rem Inter,system-ui; letter-spacing: .08em; }
.mact-ws-word.found { color: #0d372d; background: #9be2c4; text-decoration: line-through; }
.mact-wp-side .mact-btn { width: 100%; margin-top: .75rem; }

.mact-wg-list,.mact-bt-list { display: grid; gap: .7rem; }
.mact-wg-card,.mact-bt-card { position: relative; display: grid; grid-template-columns: 3rem minmax(120px,.55fr) minmax(300px,1.45fr) minmax(110px,.5fr); gap: .8rem; align-items: center; padding: .9rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg,rgba(255,255,255,.085),rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.mact-wg-card.correct,.mact-bt-card.correct { border-color: rgba(139,224,189,.48); background: linear-gradient(150deg,rgba(139,224,189,.15),rgba(255,255,255,.035)); }
.mact-wg-card.try,.mact-bt-card.try { animation: mact-wp-nudge 400ms ease; }
@keyframes mact-wp-nudge { 25%{transform:translateX(-4px)} 70%{transform:translateX(4px)} }
.mact-wg-number { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: var(--gold); background: rgba(255,255,255,.055); font: 900 .72rem Inter,system-ui; }
.mact-wg-scramble { color: var(--ink); font-size: clamp(1rem,2.3vw,1.35rem); letter-spacing: .16em; }
.mact-wg-actions { display: flex; gap: .45rem; align-items: center; }
.mact-wg-input,.mact-bt-input { width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 11px; padding: .65rem .75rem; color: #15342e; background: #fffaf3; font: 750 .86rem Inter,system-ui; outline: none; }
.mact-wg-input:focus,.mact-bt-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,189,73,.15); }
.mact-wg-feedback { color: var(--dim); font-size: .78rem; line-height: 1.4; }

.mact-cw-layout { display: grid; grid-template-columns: minmax(320px,720px) minmax(250px,1fr); gap: 1rem; align-items: start; }
.mact-cw-board { display: grid; grid-template-columns: repeat(var(--cw-cols),1fr); gap: 2px; padding: .65rem; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: #183c35; box-shadow: 0 24px 70px rgba(4,14,12,.34); aspect-ratio: 1; }
.mact-cw-cell { position: relative; display: grid; min-width: 0; place-items: stretch; background: #fffaf1; }
.mact-cw-cell small { position: absolute; z-index: 1; top: 1px; left: 2px; color: #52635e; font: 700 clamp(.32rem,.65vw,.52rem) Inter,system-ui; pointer-events: none; }
.mact-cw-cell input { width: 100%; min-width: 0; height: 100%; border: 0; padding: .15rem; color: #17342e; background: transparent; text-align: center; text-transform: uppercase; font: 900 clamp(.68rem,1.5vw,1.15rem) Inter,system-ui; outline: none; }
.mact-cw-cell input:focus { background: #ffe4a9; }
.mact-cw-cell input.right { background: #b8ead3; }
.mact-cw-cell input.wrong { background: #ffd3c7; }
.mact-cw-void { background: transparent; }
.mact-cw-clues { max-height: 720px; overflow: auto; }
.mact-cw-clues h4 { margin: .8rem 0 .45rem; color: var(--gold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.mact-cw-clues h4:first-child { margin-top: 0; }
.mact-cw-clues p { margin: .35rem 0; padding: .45rem .55rem; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.05); font-size: .79rem; line-height: 1.45; }
.mact-cw-clues p b { color: var(--mint); }
.mact-cw-clues p small { color: var(--dim); }

.mact-bt-card { grid-template-columns: 3rem minmax(210px,1fr) minmax(330px,1.2fr); }
.mact-bt-card h4 { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.5; }
.mact-bt-feedback { grid-column: 3; margin: -.25rem 0 0; color: var(--dim); font-size: .78rem; line-height: 1.45; }

@media (max-width: 900px) {
  .mact-ws-layout,.mact-cw-layout { grid-template-columns: 1fr; }
  .mact-wp-side { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: .35rem; }
  .mact-wp-side .mact-eyebrow,.mact-wp-side .mact-btn,.mact-wp-side .mact-wp-status { grid-column: 1/-1; }
  .mact-wg-card { grid-template-columns: 2.7rem minmax(110px,.55fr) minmax(240px,1.45fr); }
  .mact-wg-feedback { grid-column: 3; }
  .mact-bt-card { grid-template-columns: 2.7rem 1fr; }
  .mact-bt-card .mact-wg-actions,.mact-bt-feedback { grid-column: 2; }
}
@media (max-width: 620px) {
  .mact-wp-levels { grid-template-columns: 1fr; }
  .mact-wp-level { min-height: auto; }
  .mact-ws-board { border-radius: 17px; }
  .mact-wg-card,.mact-bt-card { grid-template-columns: 2.5rem 1fr; }
  .mact-wg-card .mact-wg-actions,.mact-wg-feedback,.mact-bt-card .mact-wg-actions,.mact-bt-feedback { grid-column: 1/-1; }
  .mact-wg-actions { flex-wrap: wrap; }
  .mact-wg-actions input { flex: 1 1 100%; }
  .mact-cw-board { padding: .35rem; gap: 1px; border-radius: 15px; }
  .mact-cw-cell small { display: none; }
}
.mact-hintcell { position: absolute; z-index: 15; border: 3px dashed var(--gold); border-radius: 8px; pointer-events: none; animation: mact-ringpulse 1.1s ease-in-out infinite; }
.mact-jz-piece.hintpiece { animation: mact-bob 0.9s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(246, 189, 73, 0.8)); }
@keyframes mact-ringpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 189, 73, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(246, 189, 73, 0); } }
@keyframes mact-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mact-ch-sq.hint { box-shadow: inset 0 0 0 3px var(--gold); animation: mact-ringpulse 1.1s ease-in-out infinite; }
.mact-cd-hand .mact-cardbtn.suggest { position: relative; z-index: 4; }
.mact-cd-hand .mact-cardbtn.suggest::before { content: "try this one"; position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0.15rem 0.6rem; border-radius: 999px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #06201d; font-size: 0.7rem; font-weight: 900; z-index: 5; }
.mact-cd-hand .mact-cardbtn.suggest .mact-card-face { animation: mact-ringpulse 1.4s ease-in-out infinite; }
.mact-card-back.pulse { animation: mact-ringpulse 1.4s ease-in-out infinite; }
.mact-pt-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; border: 1px dashed rgba(246, 189, 73, 0.4); border-radius: 16px; color: var(--dim); font-size: 0.92rem; }
.mact-pt-prompt b { color: var(--gold); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.mact-pt-prompt .mact-btn { margin-left: auto; min-height: 2.2rem; }
