@font-face { font-family: RuralBungee; src: url(fonts/bungee.ttf); font-display:swap; }
@font-face { font-family: RuralBarlow; src: url(fonts/barlow.ttf); font-display:swap; }
.ar-portal { margin:0; background:#0b1822; color:#edf4e7; font:16px/1.5 system-ui,sans-serif; }
.ar-portal .cm-games-layout { display:flex; min-height:100dvh; }
#ar-portal { flex:1; min-width:0; position:relative; background:radial-gradient(ellipse at 25% 38%,#164338,transparent 52%),#0b1822; }
#ar-portal *, #ar-portal { box-sizing:border-box; }
#ar-portal [hidden] { display:none!important; }
.ar-portal .cm-ai-home-header { display:flex; align-items:center; gap:15px; min-height:77px; padding:16px 24px; position:sticky; top:0; z-index:12; background:#09131d; border-bottom:1px solid #ffffff12; }
.ar-portal.admin-bar .cm-ai-home-header { top:var(--wp-admin--admin-bar--height,32px); }
.ar-portal .cm-ai-home-menu { flex:none; width:42px; height:42px; padding:0; border:1px solid #ffffff24; border-radius:12px; background:#ffffff0c; color:white; font-size:22px; cursor:pointer; }
.ar-portal .mm-header-logo { width:118px; height:40px; object-fit:contain; }
.ar-portal .cm-ai-home-brand { min-width:0; display:flex; flex-direction:column; line-height:1.2; gap:3px; }
.ar-portal .cm-ai-home-brand small { color:#96abbf; font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.ar-portal .cm-ai-home-brand strong { color:#8ce4dc; font-size:17px; }
.ar-portal .mm-portal-link { margin-left:auto; color:#aadfd8; text-decoration:none; font-size:14px; }
#ar-fallback-links { position:absolute; top:100%; left:8px; display:grid; gap:8px; padding:12px 24px; background:#10232e; border-radius:0 0 8px 8px; }
#ar-fallback-links a { color:#d7eee6; }
.ar-welcome .cm-rural-box { width:300px; max-width:100%; }
.ar-enter { display:inline-block; text-decoration:none; text-align:center; }
#ar-summary { margin:14px 0; }
#ar-portal a:focus-visible,#ar-portal button:focus-visible { outline:3px solid #ffde82; outline-offset:3px; }
#ar-retry { display:inline-block; font:16px/1.3 RuralBungee,system-ui; background:#ffcd71; color:#38271f; padding:12px 20px; border:2px solid #e7ac54; border-radius:6px; }
.ar-loader a { color:#e9dfba; }
.ar-playing { overflow:hidden; }
.ar-playing .cm-games-layout { height:100dvh; min-height:0; }
.ar-playing.admin-bar .cm-games-layout { height:calc(100dvh - var(--wp-admin--admin-bar--height,32px)); }
.ar-playing #ar-portal { display:flex; flex-direction:column; min-height:0; }
.ar-playing .cm-ai-home-header { position:relative; top:auto; flex:none; }
.ar-playing .cm-ai-home-header, .ar-stage iframe { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.ar-stage { flex:1; position:relative; min-height:0; isolation:isolate; }
#ar-frame,.ar-loader { position:absolute; inset:0; width:100%; height:100%; border:0; }
#ar-frame { display:block; background:#122e30; }
.ar-loader { z-index:5; display:grid; place-items:center; padding: max(12px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom)); overflow:auto; background:linear-gradient(#092725c2,#0a2829e8),url(map.webp) center/cover; }
.ar-loader-card { text-align:center; color:#fff1c9; width:min(340px,100%); }
.ar-wordmark { width:auto; max-width:85%; height:min(17vh,118px); object-fit:contain; }
.ar-trail { position:relative; height:55px; border-bottom:3px dashed #e4bd76; margin:6px 12px 14px; }
.ar-trail b { position:absolute; right:0; bottom:0; color:#ffcc69; }
.ar-trail span { position:absolute; bottom:0; left:0; width:40px; height:48px; background:url(enfermera.webp) center bottom / contain no-repeat; animation:ar-route 2.6s ease-in-out infinite alternate; }
@keyframes ar-route { to { left:calc(100% - 55px); transform:translateY(-4px); } }
.ar-loader h1 { font:clamp(19px,4vw,27px)/1.2 RuralBungee,system-ui; margin:8px 0; color:#ffe7a2; }
.ar-loader p { margin:6px 0; }
.ar-loader progress { width:100%; accent-color:#ffcd73; display:block; margin:12px auto; height:10px; }
.ar-loader a { display:block; font-size:15px; margin:6px; }
@media (max-width:900px) { .ar-welcome .cm-rural-box { width:225px; } }
@media (max-width:650px) {
	.ar-portal .cm-ai-home-header { min-height:60px; flex-wrap:nowrap; gap:8px; padding:8px 10px; }
	.ar-portal .mm-header-logo { display:none; }
	.ar-portal .cm-ai-home-brand small { font-size:9px; }
	.ar-portal .cm-ai-home-brand strong { font-size:14px; }
	.ar-portal .mm-portal-link, #ar-rate { font-size:12px; }
	#ar-rate { padding:8px; }
	.ar-welcome .cm-rural-box { width:190px; }
}
@media (max-height:450px) and (orientation:landscape) {
	.ar-playing .cm-ai-home-header { min-height:42px; padding:3px 12px; gap:9px; }
	.ar-playing .cm-ai-home-menu { width:36px; height:36px; }
	.ar-playing .mm-header-logo { height:30px; }
	.ar-playing .cm-ai-home-brand small { display:none; }
}
@media (prefers-reduced-motion:reduce) { .ar-trail span { animation:none; left:45%; } }
