:root {
  --bg: #120f0d;
  --paper: #fff3d8;
  --ink: #211b15;
  --muted: #7b7167;
  --gold: #e7b650;
  --orange: #f08d2f;
  --green: #23483a;
  --red: #c7432d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 0 86px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 141, 47, 0.34), transparent 28%),
    linear-gradient(180deg, #171310, #2a1d16 46%, #10100f);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.m-top {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: #fff6df;
  background: rgba(16, 16, 15, 0.82);
  backdrop-filter: blur(14px);
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.m-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 12px;
}

.m-admin {
  padding: 8px 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  background: var(--gold);
  border-radius: 999px;
}

.m-top-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

main {
  width: min(100% - 24px, 520px);
  margin: 0 auto;
}

.m-hero {
  padding: 34px 0 22px;
  color: #fff6df;
}

.m-kicker,
.m-title p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.m-hero h1,
.m-title h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 11vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.m-hero p {
  color: rgba(255, 246, 223, 0.72);
  line-height: 1.75;
}

.m-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.m-actions a,
.m-form button,
.m-package-list a,
.m-playmates a,
.m-pay-actions a,
.m-service-list button {
  border: 0;
  color: var(--ink);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 999px;
}

.m-actions a,
.m-pay-actions a {
  padding: 13px 14px;
  text-align: center;
}

.m-section {
  margin: 0 0 14px;
  padding: 22px;
  background: var(--paper);
  border-radius: 26px;
}

.m-dark {
  color: #fff6df;
  background:
    radial-gradient(circle at 90% 0%, rgba(231, 182, 80, 0.3), transparent 28%),
    linear-gradient(135deg, #43201c, var(--green));
}

.m-dark .m-title h2 {
  color: #fff6df;
}

.m-service-list,
.m-package-list,
.m-playmates {
  display: grid;
  gap: 10px;
}

.m-service-list button {
  display: grid;
  gap: 4px;
  padding: 15px;
  text-align: left;
  border-radius: 18px;
}

.m-service-list span {
  color: rgba(33, 27, 21, 0.72);
  font-weight: 500;
}

.m-playmates article,
.m-package-list article {
  padding: 16px;
  border: 1px solid rgba(33, 27, 21, 0.12);
  background: rgba(255, 255, 255, 0.46);
  border-radius: 20px;
}

.m-playmates article {
  border-color: rgba(255, 246, 223, 0.14);
  background: rgba(255, 246, 223, 0.08);
}

.m-playmates div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.m-playmates div span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 14px;
}

.m-playmates b,
.m-package-list b {
  display: block;
  margin: 10px 0 6px;
  font-size: 20px;
}

.m-playmates p,
.m-package-list p {
  margin: 0 0 10px;
  color: rgba(255, 246, 223, 0.72);
  line-height: 1.65;
}

.m-package-list p {
  color: var(--muted);
}

.m-playmates em,
.m-package-list strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

.m-playmates a,
.m-package-list a {
  display: inline-block;
  padding: 10px 13px;
}

.m-form {
  display: grid;
  gap: 10px;
}

.m-form h3 {
  margin: 0;
}

.m-form input,
.m-form textarea,
.m-form select {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  border: 1px solid rgba(33, 27, 21, 0.12);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  outline: none;
}

.m-form button {
  padding: 14px;
  cursor: pointer;
}

.m-form output {
  display: none;
  padding: 13px;
  white-space: pre-wrap;
  color: var(--muted);
  background: rgba(35, 72, 58, 0.08);
  border-radius: 16px;
}

.m-form output.show {
  display: block;
}

.m-pay-actions {
  display: grid;
  gap: 10px;
}

.m-pay-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.m-join-form + .m-join-form {
  margin-top: 14px;
}

.m-bottom {
  position: fixed;
  z-index: 30;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 9px;
  background: rgba(16, 16, 15, 0.84);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.m-bottom a {
  padding: 10px 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  background: var(--gold);
  border-radius: 999px;
}

.m-footer {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px 12px 24px;
  color: rgba(255, 246, 223, 0.62);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

/* Premium mobile visual upgrade */
:root {
  --bg: #050505;
  --paper: #f7ead0;
  --ink: #20170f;
  --muted: #887a6b;
  --gold: #f2c66d;
  --orange: #d98736;
  --green: #183a31;
  --red: #9e3528;
}

body {
  background:
    linear-gradient(120deg, rgba(255, 244, 220, 0.04) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 18% 0%, rgba(242, 198, 109, 0.34), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(216, 135, 54, 0.24), transparent 28%),
    linear-gradient(180deg, #050505 0%, #18110d 42%, #070706 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 244, 220, 0.08), transparent 36%);
}

.m-top {
  border-bottom: 1px solid rgba(242, 198, 109, 0.14);
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.9), rgba(38, 30, 20, 0.72));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
}

.m-brand span,
.m-admin,
.m-actions a,
.m-form button,
.m-package-list a,
.m-playmates a,
.m-pay-actions a,
.m-service-list button,
.m-bottom a {
  background: linear-gradient(135deg, #fff0bf 0%, #f2c66d 42%, #c7792e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 12px 26px rgba(199, 121, 46, 0.24);
}

.m-hero {
  position: relative;
  padding-top: 42px;
}

.m-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  top: 24px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border: 1px solid rgba(242, 198, 109, 0.16);
  background: radial-gradient(circle, rgba(242, 198, 109, 0.16), transparent 64%);
  border-radius: 50%;
}

.m-hero h1 {
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.5);
}

.m-section {
  border: 1px solid rgba(255, 244, 220, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, 0.96), rgba(239, 220, 184, 0.9));
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.34);
}

.m-dark {
  border-color: rgba(242, 198, 109, 0.26);
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 198, 109, 0.3), transparent 28%),
    linear-gradient(135deg, #4a2419 0%, #17382f 64%, #0a1512 100%);
}

.m-service-list button,
.m-playmates article,
.m-package-list article,
.m-form input,
.m-form textarea,
.m-form select {
  border-color: rgba(32, 23, 15, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 34px rgba(83, 55, 25, 0.08);
}

.m-playmates article {
  border-color: rgba(255, 244, 220, 0.16);
  background: linear-gradient(145deg, rgba(255, 244, 220, 0.13), rgba(255, 244, 220, 0.04));
}

.m-playmates div span {
  background: linear-gradient(135deg, #fff6d5, #f2c66d 48%, #b56a28);
}

.m-form input:focus,
.m-form textarea:focus,
.m-form select:focus {
  border-color: rgba(199, 121, 46, 0.5);
  box-shadow: 0 0 0 4px rgba(242, 198, 109, 0.14);
}

.m-bottom {
  border: 1px solid rgba(242, 198, 109, 0.2);
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.9), rgba(43, 32, 21, 0.82));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.m-reviews {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.m-reviews article {
  padding: 14px;
  border: 1px solid rgba(32, 23, 15, 0.1);
  background: rgba(255, 255, 255, 0.46);
  border-radius: 18px;
}

.m-reviews strong {
  color: var(--orange);
}

.m-reviews p {
  color: var(--muted);
  line-height: 1.65;
}

.m-playmates img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  margin: 10px 0;
  border-radius: 16px;
}

.m-customer {
  position: fixed;
  z-index: 34;
  right: 12px;
  bottom: 76px;
}

.m-customer button {
  padding: 12px 15px;
  color: var(--ink);
  font-weight: 900;
  border: 0;
  background: linear-gradient(135deg, #fff0bf 0%, #f2c66d 42%, #c7792e 100%);
  border-radius: 999px;
}

#mCustomerPanel {
  display: none;
  width: min(300px, calc(100vw - 24px));
  margin-bottom: 8px;
  padding: 16px;
  color: #fff6df;
  border: 1px solid rgba(242, 198, 109, 0.22);
  background: linear-gradient(135deg, rgba(8, 8, 7, 0.94), rgba(43, 32, 21, 0.88));
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

#mCustomerPanel.show {
  display: block;
}

#mCustomerPanel p {
  margin: 8px 0;
  color: rgba(255, 246, 223, 0.76);
}

#mCustomerPanel img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

/* Mobile interaction polish */
@keyframes mRiseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mHalo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-8px, 10px, 0) scale(1.05);
  }
}

.m-hero,
.m-section,
.m-bottom {
  animation: mRiseIn 460ms ease both;
}

.m-section:nth-of-type(2n) {
  animation-delay: 60ms;
}

.m-section:nth-of-type(3n) {
  animation-delay: 110ms;
}

.m-hero::after {
  animation: mHalo 7s ease-in-out infinite;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.m-actions a,
.m-form button,
.m-package-list a,
.m-playmates a,
.m-pay-actions a,
.m-service-list button,
.m-bottom a,
.m-admin {
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.m-actions a:active,
.m-form button:active,
.m-package-list a:active,
.m-playmates a:active,
.m-pay-actions a:active,
.m-service-list button:active,
.m-bottom a:active,
.m-admin:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

.m-service-list button:hover,
.m-package-list article:hover,
.m-playmates article:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 2026-06-02 refined H5 visual layer */
:root {
  --m-cyan: #54d6c4;
  --m-cream: #fff2d4;
  --m-copper: #c87534;
}

body {
  background:
    linear-gradient(115deg, rgba(255, 242, 212, 0.045) 0 1px, transparent 1px 36px),
    radial-gradient(circle at 16% 4%, rgba(84, 214, 196, 0.16), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(246, 199, 106, 0.2), transparent 30%),
    linear-gradient(180deg, #030404 0%, #121411 42%, #090706 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    url("../assets/gaming-setup-neon.jpg") center top / cover no-repeat;
  opacity: 0.14;
}

.m-top,
.m-bottom,
#mCustomerPanel {
  border: 1px solid rgba(255, 226, 166, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 8, 8, 0.92), rgba(26, 20, 13, 0.78)),
    radial-gradient(circle at 92% 0%, rgba(246, 199, 106, 0.14), transparent 36%);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.m-hero {
  isolation: isolate;
  overflow: hidden;
}

.m-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -74px;
  top: 118px;
  width: 210px;
  height: 260px;
  border: 1px solid rgba(255, 242, 212, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.06), rgba(5, 7, 6, 0.72)),
    url("../assets/controller-neon.jpg") center / cover no-repeat;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
  opacity: 0.48;
  transform: rotate(4deg);
}

.m-section {
  border: 1px solid rgba(255, 242, 212, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 244, 222, 0.96), rgba(236, 216, 177, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(246, 199, 106, 0.16), transparent 32%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.m-dark {
  border-color: rgba(255, 242, 212, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 8, 8, 0.18), rgba(6, 8, 8, 0.68)),
    radial-gradient(circle at 80% 0%, rgba(246, 199, 106, 0.28), transparent 34%),
    linear-gradient(135deg, #311815 0%, #0f332f 64%, #080b0a 100%);
}

.m-playmates article,
.m-package-list article,
.m-reviews article {
  border: 1px solid rgba(32, 23, 15, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 246, 226, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 42px rgba(66, 42, 18, 0.1);
}

.m-dark .m-playmates article {
  border-color: rgba(255, 242, 212, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 242, 212, 0.13), rgba(255, 242, 212, 0.04)),
    radial-gradient(circle at 20% 8%, rgba(84, 214, 196, 0.18), transparent 38%);
}

:is(
  .m-admin,
  .m-actions a,
  .m-form button,
  .m-package-list a,
  .m-playmates a,
  .m-pay-actions a,
  .m-service-list button,
  .m-bottom a,
  .m-customer button
) {
  position: relative;
  overflow: hidden;
  color: #15110b;
  border: 1px solid rgba(255, 248, 224, 0.42);
  background:
    linear-gradient(135deg, #fff7d8 0%, var(--gold) 36%, var(--m-copper) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(145, 79, 25, 0.14),
    0 14px 34px rgba(199, 121, 46, 0.3);
}

:is(
  .m-admin,
  .m-actions a,
  .m-form button,
  .m-package-list a,
  .m-playmates a,
  .m-pay-actions a,
  .m-service-list button,
  .m-bottom a,
  .m-customer button
)::before {
  content: "";
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.46), transparent);
  opacity: 0.56;
}

.m-form input,
.m-form textarea,
.m-form select {
  border: 1px solid rgba(32, 23, 15, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 229, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 10px 26px rgba(66, 42, 18, 0.06);
}

.m-form input:focus,
.m-form textarea:focus,
.m-form select:focus {
  border-color: rgba(84, 214, 196, 0.42);
  box-shadow: 0 0 0 4px rgba(84, 214, 196, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 2026-06-02 mobile layout refinement */
body {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.m-top {
  padding: 10px 12px;
}

.m-brand span {
  width: 32px;
  height: 32px;
}

.m-admin {
  padding: 8px 10px;
  font-size: 12px;
}

main {
  width: min(100% - 18px, 560px);
}

.m-hero {
  min-height: 330px;
  padding: 30px 4px 18px;
}

.m-hero h1 {
  max-width: 330px;
  font-size: clamp(36px, 12vw, 58px);
}

.m-hero p {
  max-width: 330px;
  margin-bottom: 0;
}

.m-actions {
  max-width: 330px;
}

.m-section {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 22px;
}

.m-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.m-title p,
.m-title h2 {
  margin-bottom: 0;
}

.m-title h2 {
  font-size: clamp(28px, 8vw, 42px);
}

.m-service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-service-list button {
  min-height: 88px;
  padding: 14px;
  align-content: space-between;
}

.m-service-list button b {
  font-size: 17px;
}

.m-service-list button span {
  font-size: 12px;
  line-height: 1.45;
}

.m-playmates {
  display: flex;
  gap: 12px;
  margin: 0 -18px;
  padding: 0 18px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.m-playmates article {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

.m-playmates article > div {
  margin-bottom: 8px;
}

.m-playmates b,
.m-package-list b {
  margin-top: 6px;
}

.m-playmates p {
  min-height: 52px;
}

.m-playmates a + a {
  margin-left: 6px;
}

.m-package-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-package-list article {
  display: grid;
  align-content: space-between;
  min-height: 185px;
  padding: 14px;
}

.m-package-list strong {
  font-size: 24px;
}

.m-package-list p {
  font-size: 13px;
}

.m-form {
  gap: 9px;
}

.m-form input,
.m-form textarea,
.m-form select {
  padding: 13px 14px;
  border-radius: 14px;
}

.m-form button {
  min-height: 48px;
}

.m-pay-actions {
  grid-template-columns: 1fr 1fr;
}

.m-pay-actions p {
  grid-column: 1 / -1;
}

.m-reviews {
  display: flex;
  gap: 10px;
  margin: 0 -18px 12px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.m-reviews article {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

.m-bottom {
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
}

.m-bottom a {
  padding: 10px 4px;
  font-size: 12px;
}

.m-customer {
  right: 10px;
  bottom: calc(76px + env(safe-area-inset-bottom));
}

@media (max-width: 380px) {
  .m-service-list,
  .m-package-list,
  .m-actions,
  .m-pay-actions {
    grid-template-columns: 1fr;
  }

  .m-playmates article,
  .m-reviews article {
    flex-basis: 90%;
  }
}
