/* 준환 OS 2004 — 오락실 (PC-room game launcher) and 연못 합치기 (iframe window). Task 7. */

/* =================================================================
   Arcade: a night-time PC-room launcher in the arcade icon's colours
   (purple cabinet, yellow marquee, pink and cyan buttons).
   ================================================================= */
.arc {
  --arc-bg-1: #1d1550;
  --arc-bg-2: #110c33;
  --arc-ink: #f7f4ff;
  --arc-ink-2: #d9d1ff;
  --arc-ink-3: #b3a9ec;
  --arc-line: rgba(155, 107, 255, 0.4);
  --arc-yellow: #ffd23f;
  --arc-pink: #ff6fa5;
  --arc-cyan: #38d9f5;
  --arc-purple: #9b6bff;
  --arc-led-ink: #ffcf4a;

  container: arc / inline-size;
  display: grid;
  /* fixed column: the marquee track is max-content wide and must not widen the window */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  background: var(--arc-bg-2);
  color: var(--arc-ink);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- header: brand + LED marquee ---------- */
.arc-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 11px;
  background:
    var(--gloss-soft),
    linear-gradient(180deg, #3b2a92 0%, #261a6a 55%, #1c1352 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.arc-top::after {
  /* neon strip, like the title bar's mint line */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--arc-pink), var(--arc-purple) 45%, var(--arc-cyan));
  box-shadow: 0 0 10px rgba(155, 107, 255, 0.7);
}
.arc-brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.arc-logo {
  width: 44px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(255, 111, 165, 0.55)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.4));
}
.arc-brand-text { min-width: 0; }
.arc-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--arc-yellow);
  white-space: nowrap;
  text-shadow: 0 2px 0 #c2185b, 0 3px 0 #7a0f3a, 0 0 14px rgba(255, 111, 165, 0.6);
}
.arc-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--arc-ink-2);
  white-space: nowrap;
}

.arc-led {
  position: relative;
  flex: 1;
  min-width: 0;
  contain: inline-size;
  height: 40px;
  overflow: hidden;
  border: 2px solid #0a0820;
  border-radius: 10px;
  background: #0b0716;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.16);
}
.arc-led::after {
  /* dot-matrix mask: holes over the glowing text */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(11, 7, 22, 0) 0.8px, rgba(11, 7, 22, 0.62) 1.15px);
  background-size: 2.5px 2.5px;
  pointer-events: none;
}
.arc-led-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: arc-marquee var(--arc-led-dur, 30s) linear 3; /* 3 laps, then it rests (the text is doubled, so the end matches the start) */
  will-change: transform;
}
.arc-led-text {
  flex: none;
  padding: 0 56px 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--arc-led-ink);
  text-shadow: 0 0 6px rgba(255, 190, 60, 0.9), 0 0 14px rgba(255, 140, 30, 0.55);
}
.arc-led:hover .arc-led-track,
.arc:focus-within .arc-led-track { animation-play-state: paused; }
@keyframes arc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- floor: sidebar + main ---------- */
.arc-floor {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
}

.arc-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 14px 12px;
  border-right: 1px solid var(--arc-line);
  background:
    radial-gradient(140% 60% at 0% 0%, rgba(155, 107, 255, 0.22), rgba(155, 107, 255, 0) 60%),
    linear-gradient(180deg, #221a5a, #150f3e);
}
.arc-side-title {
  padding: 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--arc-ink-3);
}
.arc-tabs { display: grid; gap: 7px; }
.arc-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px 6px 13px;
  border: 1px solid var(--arc-line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  color: var(--arc-ink);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.arc-tab:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)); border-color: rgba(196, 168, 255, 0.7); }
.arc-tab[aria-pressed="true"] {
  border-color: #cdb6ff;
  background: var(--gloss-soft), linear-gradient(180deg, #8657f2, #5229c4);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 14px rgba(155, 107, 255, 0.55);
}
.arc-tab-label { min-width: 0; white-space: nowrap; }
.arc-tab-count {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: #04161e;
  color: #8ff3ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(143, 243, 255, 0.55);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* house rules: a paper notice taped to the wall */
.arc-rules {
  position: relative;
  margin: 10px 4px 2px;
  padding: 13px 12px 11px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fffbe8, #fff0b3);
  color: #3a2e08;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.2deg);
}
.arc-rules::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 58px;
  height: 16px;
  margin-left: -29px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transform: rotate(2deg);
}
.arc-rules-title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: #b0124f;
}
.arc-rules-list { display: grid; gap: 5px; list-style: none; }
.arc-rules-list li { position: relative; padding-left: 12px; }
.arc-rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #b0124f;
}
.arc-rules--foot { display: none; }

/* ---------- main area ---------- */
.arc-main {
  container: arcmain / inline-size;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background:
    radial-gradient(70% 45% at 100% 0%, rgba(56, 217, 245, 0.14), rgba(56, 217, 245, 0) 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(255, 111, 165, 0.13), rgba(255, 111, 165, 0) 70%),
    linear-gradient(rgba(155, 107, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(155, 107, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--arc-bg-1), var(--arc-bg-2));
  background-attachment: local;
}

/* ---------- today's pick ---------- */
.arc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 190px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 63, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 111, 165, 0.35), rgba(255, 111, 165, 0) 55%),
    linear-gradient(120deg, #3a2496 0%, #4b2cb0 45%, #1f5f9e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 210, 63, 0.12);
}
.arc-hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 18px 8px 18px 20px;
}
.arc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill);
  background: var(--arc-yellow);
  color: #2a1a00;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 0 #b98a00;
}
.arc-hero-kicker .arc-glyph { width: 13px; height: 13px; color: #d9530f; }
.arc-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 3px 0 #2e1680, 0 0 18px rgba(56, 217, 245, 0.45);
}
.arc-hero-line {
  max-width: 46ch;
  font-size: 13.5px;
  color: var(--arc-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arc-hero-chips:empty { display: none; }
.arc-hero .arc-actions { margin-top: 4px; width: 100%; max-width: 320px; }
.arc-hero-shot {
  position: relative;
  min-height: 0;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 34%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 34%);
}
.arc-hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 400ms var(--ease-out);
}
.arc-hero-shot:hover img { transform: scale(1.04); }
.arc-hero-shot .arc-sprite { position: absolute; inset: 18% 20%; width: auto; height: 64%; }

/* ---------- game grid ---------- */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 14px;
  list-style: none;
}
.arc-card { min-width: 0; }
.arc-card-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--arc-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #2b2170 0%, #1f1757 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid), box-shadow var(--t-mid);
}
.arc-card:hover .arc-card-in {
  transform: translateY(-2px);
  border-color: rgba(56, 217, 245, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 22px rgba(0, 0, 0, 0.35), 0 0 18px rgba(56, 217, 245, 0.3);
}
.arc-card:focus-within .arc-card-in { border-color: rgba(56, 217, 245, 0.85); }
.arc-card.is-ping .arc-card-in { animation: arc-ping 1.4s var(--ease-out); }
@keyframes arc-ping {
  0%, 60% { border-color: var(--arc-yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.55), 0 0 26px rgba(255, 210, 63, 0.5); }
}

/* the CRT screen */
.arc-screen {
  container: arcscreen / inline-size;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid #0a0820;
  border-radius: 9px;
  background: #05081a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.arc-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(130% 90% at 25% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.11) 2px 3px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.arc-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 400ms var(--ease-out);
}
.arc-card:hover .arc-shot { transform: scale(1.05); }

/* pixel-art title screen for games with no screenshot */
.arc-art {
  --a1: #5229c4;
  --a2: #160b3d;
  --a3: #9b6bff;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 6% 8% 5%;
  background:
    radial-gradient(70% 60% at 50% 42%, color-mix(in srgb, var(--a3) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--a1), var(--a2));
  text-align: center;
}
.arc-art--balloon { --a1: #1474c4; --a2: #08224f; --a3: #38c7f5; }
.arc-art--sword { --a1: #1d8058; --a2: #082a25; --a3: #6fe3a8; }
.arc-art--glove { --a1: #b8304a; --a2: #34091f; --a3: #ff7b8c; }
.arc-art--crosshair { --a1: #1f4f43; --a2: #050f12; --a3: #46e08a; }
.arc-art--trophy { --a1: #6a3ed2; --a2: #1a0c48; --a3: #ffd23f; }
.arc-art--rocket { --a1: #263b8a; --a2: #060a22; --a3: #ff8a2b; }
.arc-art--fish { --a1: #0f86ae; --a2: #062642; --a3: #7fe0ff; }
.arc-art-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 9% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 24% 70%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 81% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 92% 64%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.3px 1.3px at 64% 10%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.1px 1.1px at 40% 88%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 13% 46%, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.85;
}
.arc-sprite {
  position: relative;
  width: 27cqi;
  height: auto;
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
  animation: arc-bob 1.2s steps(2, jump-none) 4;
}
@keyframes arc-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-4%); }
}
.arc-art-title {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(12px, 7.4cqi, 24px);
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 12px var(--a3);
}
.arc-art-coin {
  position: relative;
  font-size: clamp(10px, 4.4cqi, 12px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--arc-yellow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  animation: arc-blink 1.2s steps(1, end) 4;
}
@keyframes arc-blink { 50% { opacity: 0; } }

/* stickers on the screen */
.arc-status,
.arc-new {
  position: absolute;
  z-index: 3;
  top: 7px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.arc-status {
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 20, 48, 0.86);
  color: #fff;
}
.arc-status--live { background: #c9211f; border-color: #ff8e8c; box-shadow: 0 0 10px rgba(224, 49, 47, 0.6); letter-spacing: 0.08em; }
.arc-status--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: arc-blink 1.4s steps(1, end) 3;
}
.arc-status--in-progress { background: #b14708; border-color: #ffab70; }
.arc-status--prototype { background: #4a24b5; border-color: #b9a0ff; }
.arc-status--shipped { background: #17783f; border-color: #8fe0b0; }
.arc-new {
  right: 7px;
  background: var(--arc-yellow);
  color: #2a1a00;
  box-shadow: 0 2px 0 #b98a00;
  transform: rotate(5deg);
}

/* text */
.arc-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 0 2px;
}
.arc-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.arc-line {
  font-size: 13px;
  color: var(--arc-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arc-badges { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; }
.arc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}
.arc-badge .arc-glyph { width: 12px; height: 12px; }
.arc-badge--fan { border-color: rgba(255, 111, 165, 0.6); background: rgba(255, 111, 165, 0.16); color: #ffc6dc; }
.arc-badge--phone { border-color: rgba(56, 217, 245, 0.55); background: rgba(56, 217, 245, 0.14); color: #b0f1ff; }
.arc-badge--here { border-color: rgba(70, 224, 138, 0.6); background: rgba(70, 224, 138, 0.16); color: #c0f8d8; }
.arc-tip {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  color: var(--arc-ink-3);
}
.arc-tip::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.45em;
  border: 4px solid transparent;
  border-left: 5px solid var(--arc-cyan);
}
.arc-tip--nobuild::before { border-left-color: var(--arc-ink-3); }

/* buttons */
.arc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.arc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: filter var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.arc-btn:active { transform: translateY(2px); }
.arc-btn--play {
  flex: 1 1 auto;
  border-color: #b77900;
  background: var(--gloss), linear-gradient(180deg, #ffe680, #ffb703);
  color: #251600;
  box-shadow: inset 0 1px 0 #fff8cc, 0 3px 0 #a36800, 0 6px 12px rgba(0, 0, 0, 0.3);
}
.arc-btn--play:hover { filter: brightness(1.06) saturate(1.1); }
.arc-btn--play:active { box-shadow: inset 0 1px 0 #fff8cc, 0 1px 0 #a36800; }
.arc-btn--look {
  flex: 1 1 auto;
  border-color: #cdb6ff;
  background: var(--gloss-soft), linear-gradient(180deg, #7c4ef0, #4a22b8);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #2a1278, 0 6px 12px rgba(0, 0, 0, 0.3);
}
.arc-btn--look:hover { filter: brightness(1.1); }
.arc-btn--look:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 #2a1278; }
.arc-btn--ghost {
  border-color: rgba(205, 182, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  color: #f2eeff;
}
.arc-btn--ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: #cdb6ff; }
.arc-glyph { width: 14px; height: 14px; flex: none; }
.arc-glyph--out { width: 13px; height: 13px; opacity: 0.75; }

.arc-empty {
  padding: 48px 16px;
  color: var(--arc-ink-2);
  font-weight: 700;
  text-align: center;
}

/* ---------- PC-room status bar ---------- */
.arc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, var(--c-bar-1), var(--c-bar-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.arc-meters { display: flex; gap: 8px; min-width: 0; }
.arc-meter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 7px;
  background: #04161e;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  white-space: nowrap;
}
.arc-meter-key { color: #b9c9db; font-weight: 700; }
.arc-meter-val {
  color: #8ff3ff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(143, 243, 255, 0.5);
}
.arc-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #ffa3b8;
  border-radius: 8px;
  background: var(--gloss-soft), linear-gradient(180deg, #d93a61, #a11c3d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 0 #6e0f28;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.arc-counter:hover { filter: brightness(1.1); }
.arc-counter:active { transform: translateY(1px); }

/* ---------- narrow window or phone ---------- */
@container arc (max-width: 680px) {
  .arc-top { gap: 10px; padding: 8px 10px 9px; }
  .arc-logo { width: 34px; height: 34px; }
  .arc-name { font-size: 19px; }
  .arc-sub { font-size: 11px; margin-top: 2px; }
  .arc-led { height: 32px; border-radius: 8px; }
  .arc-led-text { font-size: 16px; padding-right: 40px; }

  .arc-floor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .arc-side {
    flex-direction: row;
    overflow: auto hidden;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--arc-line);
    scrollbar-width: none;
  }
  .arc-side::-webkit-scrollbar { display: none; }
  .arc-side-title, .arc-side .arc-rules { display: none; }
  .arc-tabs { display: flex; gap: 6px; }
  .arc-tab { flex: none; min-height: 36px; padding: 4px 6px 4px 12px; border-radius: var(--r-pill); font-size: 13px; }
  .arc-tab-count { border-radius: var(--r-pill); }
  .arc-rules--foot { display: block; margin: 22px 6px 6px; transform: rotate(-0.6deg); }
  .arc-main { padding: 12px; }
  .arc-meter--fee { display: none; }
}
@container arc (max-width: 420px) {
  .arc-sub { display: none; }
  .arc-name { font-size: 18px; }
  .arc:lang(en) .arc-name { font-size: 16px; }
  .arc-bar { padding: 6px 10px; gap: 8px; }
  .arc-meters { gap: 6px; }
  .arc-meter { padding: 3px 7px; gap: 5px; }
}

@container arcmain (max-width: 560px) {
  .arc-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 14px; }
  .arc-hero-shot {
    order: -1;
    aspect-ratio: 2 / 1;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0) 100%);
  }
  .arc-hero-text { margin-top: -26px; padding: 0 14px 14px; }
  .arc-hero-title { font-size: 26px; }
  .arc-hero .arc-actions { max-width: none; }

  .arc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .arc-card-in {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-areas: "screen info" "actions actions";
    gap: 10px 12px;
  }
  .arc-screen { grid-area: screen; align-self: start; aspect-ratio: 4 / 3; border-radius: 8px; }
  .arc-info { grid-area: info; gap: 5px; padding: 0; }
  .arc-actions { grid-area: actions; }
  .arc-title { font-size: 15px; }
  .arc-line { font-size: 12.5px; }
  .arc-status, .arc-new { top: 4px; padding: 0 5px; font-size: 10px; }
  .arc-status { left: 4px; }
  .arc-new { right: 4px; }
}

/* small screens drop the title and coin text, the sprite carries it */
@container arcscreen (max-width: 150px) {
  .arc-art { gap: 0; padding: 12% 10% 8%; }
  .arc-sprite { width: 46cqi; }
  .arc-art-title, .arc-art-coin { display: none; }
}

/* =================================================================
   Pond Merge: the puzzle in an iframe, with a slim toolbar.
   ================================================================= */
.pond {
  container: pond / inline-size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #e9efe7;
}
.pond-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid #b9d1c7;
  background: var(--gloss), linear-gradient(180deg, #f6fcf8, #d9ede2);
  color: #1d2a25;
}
.pond-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.pond-hint-icon { width: 22px; height: 22px; flex: none; }
.pond-hint-text { display: flex; flex-wrap: wrap; column-gap: 8px; min-width: 0; }
.pond-note { color: #44574f; font-weight: 400; }
.pond-actions { display: flex; gap: 6px; flex: none; }
.pond-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid #8db3a3;
  border-radius: 8px;
  background: var(--gloss), linear-gradient(180deg, #ffffff, #d4eadf);
  color: #174a3b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh-inset), 0 1px 2px rgba(12, 54, 40, 0.14);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.pond-btn:hover { filter: brightness(1.04) saturate(1.15); }
.pond-btn:active { transform: translateY(1px); }
.pond-glyph {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pond-stage { position: relative; min-height: 0; }
.pond-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9efe7;
}
.pond-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: #e9efe7;
  color: #1f6552;
  font-size: 14px;
  font-weight: 700;
}
.pond-ripple { position: relative; width: 64px; height: 64px; }
.pond-ripple i {
  position: absolute;
  inset: 0;
  border: 2px solid #23735f;
  border-radius: 50%;
  opacity: 0;
  animation: pond-ripple 1.8s ease-out infinite;
}
.pond-ripple i:nth-child(2) { animation-delay: 0.6s; }
.pond-ripple i:nth-child(3) { animation-delay: 1.2s; }
@keyframes pond-ripple {
  from { opacity: 0.9; transform: scale(0.2); }
  to { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pond-ripple i { opacity: 0.5; transform: scale(0.6); }
  .pond-ripple i:nth-child(2) { transform: scale(0.85); opacity: 0.3; }
  .pond-ripple i:nth-child(3) { display: none; }
}

@container pond (max-width: 520px) {
  .pond-bar { padding: 5px 6px 5px 10px; gap: 8px; }
  .pond-hint { font-size: 12px; }
  .pond-hint-icon { width: 20px; height: 20px; }
  .pond-btn { min-width: 36px; min-height: 34px; padding: 4px 9px; justify-content: center; }
  .pond-btn span { display: none; }
  .pond-glyph { width: 16px; height: 16px; }
}
