/* add all special styles used for displaying the rules */
/* .rules: used for all elements loading rules (rules at main site, rules ingame, popup with rules extract
   #rules: div with complete rules used at main site
   #rulesPage: ingame rules page display
   #panelRules: ingame rules sidepanel display
   #popup.rules: popup with rules extract only */


/* add special fonts if wanted */

/* add styles for headers h1-h5 if needed*/

/* cover picture only in main rules */
#rules .cover {    width: 60%;    margin-left: 20%;}
#panelRules .cover {    display: none;}

.rules .content ul {list-style-type: none;}

/* flex style for responsive display */
.rules .flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5em; }
@media (max-width: 768px) {
    .rules .flex.mobile { flex-direction: column; /* columns below each other */  }
}
#panelRules .flex.mobile { flex-direction: column; }
.rules .flex .column {    flex: 1; }
.rules .flex .column.wide {    flex: 2; }


/* example variable flex structure putting flexboxes half their wide on wide screen full rules
.rules  .flex.appendix .flexbox { flex: 2 2 23%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.appendix .flexbox img { height:5em; float: left; margin-right: 1em; }
@media (max-width: 1024px) {
    .rules .flex.appendix .flexbox { flex: 2 2 48%; }
}
#panelRules .flex.appendix .flexbox { flex: 2 2 48%; }
*/


/* Examples */
.rules .example { font-style: italic; } /* put your example style here */
#panelRules .example { display: none; } /* examples should not be shown in sidebar */

#panelRules .noSidebar, #sidebarPanel #rules .noSidebar { display: none; }

/* ==========================================================================
   MAORI - Karibisches / Südsee Regelheft Stylesheet
   ========================================================================== */

:root {
  --m-sea-deep: #062f3a;
  --m-sea-lagoon: #0b596d;
  --m-sea-aqua: #148a96;
  --m-sea-cyan: #22b8a4;
  --m-sand-light: #fffdf9;
  --m-sand-base: #f9f5ea;
  --m-sand-dark: #f0e6d2;
  --m-sand-border: #e2d2b4;
  --m-palm-green: #235838;
  --m-gold: #d99e28;
  --m-gold-light: #fef3c7;
  --m-coral: #b93828;
  --m-coral-light: #fee2e2;
  --m-text-main: #18333c;
  --m-text-muted: #536e76;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--m-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Südsee-Wasserfarben Hintergrund für Card-Body unterhalb der weißen Maori-Überschrift */
.card-body.maori2-rules-ocean {
  background: radial-gradient(circle at 50% -5%, #2ad0bc 0%, #17a0aa 25%, #0e6c80 55%, #053b49 85%, #03252f 100%) !important;
  background-attachment: fixed !important;
}

.card-body.maori2-rules-ocean h5 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-body.maori2-rules-ocean .btn-outline-secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(4px);
}

.card-body.maori2-rules-ocean .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
}

/* Südsee-Wasserfarben Rand links und rechts des Regelhefts */
.mRulesOceanBg {
  background: radial-gradient(circle at 50% -5%, #2ad0bc 0%, #17a0aa 25%, #0e6c80 55%, #053b49 85%, #03252f 100%);
  background-attachment: fixed;
  border-radius: 18px;
  padding: clamp(14px, 2.5vw, 28px) clamp(8px, 2vw, 20px);
  box-sizing: border-box;
}

.card-body.maori2-rules-ocean #rulesHtml .mRulesOceanBg {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#panelRules .mRulesOceanBg {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Im Ingame-Sidepanel (#panelRules) weggelassene Bereiche:
   Spielerzahl, Dauer, Alter, Autor, Spielidee, Spielmaterial, Spielvorbereitung */
#panelRules .mRulesMetaBar,
#panelRules .mSidepanelOmit,
#panelRules h2#section-0,
#panelRules h2#section-0 + .mIntroCard,
#panelRules h2#section-1,
#panelRules h2#section-1 + .mMaterialList,
#panelRules h2#section-2,
#panelRules .mSetupStep,
#panelRules nav a[href="#section-0"],
#panelRules nav a[href="#section-1"],
#panelRules nav a[href="#section-2"] {
  display: none !important;
}

/* ==========================================================================
   Yucata Framework Container (nur auf der eigenständigen Regelseite geladen)
   ========================================================================== */
#rulesHtml,
.rules {
  background: transparent !important;
}

.rules.maori-rules,
.maori-rules {
  max-width: 920px;
  margin: clamp(16px, 3vw, 32px) auto;
  padding: clamp(18px, 4vw, 40px);
  background: #fff9e9 !important;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 64px rgba(2, 28, 38, 0.42), 0 4px 16px rgba(0, 0, 0, 0.15);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--m-text-main);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* 1. HEADER BANNER MIT SCHWIMMENDEN FISCHEN */
.maori-rules .mRulesHeader {
  position: relative;
  min-height: 235px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #062f3a 0%, #0a4f5f 35%, #0f7685 70%, #159c8d 100%);
  border: 1.5px solid rgba(82, 183, 181, 0.4);
  box-shadow: 0 12px 36px rgba(6, 47, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  box-sizing: border-box;
}

.maori-rules .mRulesOcean {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.maori-rules .mRulesFishSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Zentrierte Titel & Slogan Typografie */
.maori-rules .mRulesHeaderContent {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
}

.rules.maori-rules .mRulesTitle,
#panelRules .rules.maori-rules .mRulesTitle,
#rulesContainer .mRulesTitle,
.maori-rules .mRulesTitle {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(4, 25, 30, 0.8), 0 0 32px rgba(82, 220, 205, 0.45);
}

.maori-rules .mRulesSubtitle {
  margin: 4px auto 0;
  font-size: 16px;
  font-weight: 600;
  color: #bbf0e7;
  letter-spacing: 0.8px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 20, 28, 0.7);
}

/* Animierte 3-Plättchen-Insel im Header */
.maori-rules .mIslandStage {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.maori-rules .mIslandWaterGlow {
  position: absolute;
  width: 220px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(165, 243, 252, 0.35) 0%, rgba(34, 211, 238, 0.15) 45%, transparent 70%);
  border-radius: 50%;
  bottom: -10px;
  filter: blur(6px);
  animation: mWaterPulse 8s ease-in-out infinite;
}

.maori-rules .mIslandCluster {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 8px 16px rgba(2, 35, 42, 0.55));
  animation: mIslandBob 4s ease-in-out infinite alternate;
  position: relative;
}

.maori-rules .mTileWrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 -1px;
}

.maori-rules .mTileImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.maori-rules .mTile1 { animation: mBuildTile1 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite -5s; }
.maori-rules .mTile2 { animation: mBuildTile2 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite -5s; }
.maori-rules .mTile3 { animation: mBuildTile3 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite -5s; }


@keyframes mBuildTile1 {
  0%, 5% { opacity: 0; transform: translateY(-40px) scale(1.15) rotate(-4deg); }
  14%, 86% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  92%, 100% { opacity: 0; transform: scale(0.95); }
}
@keyframes mBuildTile2 {
  0%, 18% { opacity: 0; transform: translateY(-40px) scale(1.15) rotate(3deg); }
  27%, 86% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  92%, 100% { opacity: 0; transform: scale(0.95); }
}
@keyframes mBuildTile3 {
  0%, 32% { opacity: 0; transform: translateY(-40px) scale(1.15) rotate(-3deg); }
  41%, 86% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  92%, 100% { opacity: 0; transform: scale(0.95); }
}
@keyframes mIslandBob {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}
@keyframes mWaterPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.55; }
}

/* Flossenbewegungen */
.maori-rules .mTail1 { transform-origin: 22px 30px; animation: mTailWig1 0.55s ease-in-out infinite alternate; }
.maori-rules .mTail2 { transform-origin: 22px 30px; animation: mTailWig2 0.75s ease-in-out infinite alternate; }
.maori-rules .mTail3 { transform-origin: 22px 30px; animation: mTailWig3 0.65s ease-in-out infinite alternate; }
@keyframes mTailWig1 { 0% { transform: rotate(-14deg); } 100% { transform: rotate(14deg); } }
@keyframes mTailWig2 { 0% { transform: rotate(-12deg); } 100% { transform: rotate(12deg); } }
@keyframes mTailWig3 { 0% { transform: rotate(-16deg); } 100% { transform: rotate(16deg); } }

@media (prefers-reduced-motion: reduce) {
  .maori-rules .mRulesFishSvg *,
  .maori-rules .mIslandCluster *,
  .maori-rules .mIslandStage * {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* 2. META INFO BAR (UNTERHALB DES HEADERS) */
.maori-rules .mRulesMetaBar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f2faf8;
  border: 1.5px solid #b6e2d8;
  border-radius: 16px;
  padding: 10px 18px;
  margin-bottom: 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}

.maori-rules .mRulesMetaItem {
  display: flex;
  align-items: center;
  gap: 10px;
}

.maori-rules .mRulesMetaIcon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.maori-rules .mRulesMetaText {
  display: flex;
  flex-direction: column;
}

.maori-rules .mRulesMetaLabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--m-text-muted);
  line-height: 1.2;
}

.maori-rules .mRulesMetaVal {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--m-text-main);
  line-height: 1.2;
}

.maori-rules .mRulesMetaDivider {
  width: 1px;
  height: 28px;
  background: #e2d2b4;
}

/* 3. NAVIGATION */
.maori-rules nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  background: rgba(20, 138, 150, 0.06);
  border: 1.5px solid #cfe2dc;
  border-radius: 18px;
  padding: 12px 14px;
}

html body .rules.maori-rules nav a,
html body .rules.maori-rules nav a[href],
.maori-rules nav a {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid #b8ddd4;
  border-radius: 20px;
  background: #ffffff;
  color: #0b5969;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

html body .rules.maori-rules nav a:hover,
html body .rules.maori-rules nav a[href]:hover,
.maori-rules nav a:hover {
  background: #0d5c75;
  border-color: #0d5c75;
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(13, 92, 117, 0.25);
}

/* 4. HEADINGS */
.rules.maori-rules h2,
#panelRules .rules.maori-rules h2,
#rulesContainer h2,
.maori-rules h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.45em;
  font-weight: 800;
  color: #08495a;
  border-left: 5px solid #178a94;
  border-bottom: 1.5px solid #dcece8;
  background: linear-gradient(90deg, rgba(23, 138, 148, 0.08) 0%, transparent 65%);
  padding: 8px 14px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  margin-top: 2.4em;
  margin-bottom: 0.9em;
  scroll-margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules.maori-rules h3,
#panelRules .rules.maori-rules h3,
#rulesContainer h3,
.maori-rules h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #0e5b65;
  background: rgba(23, 138, 148, 0.06);
  border-left: 4px solid #d99e28;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

/* 5. EDITORIAL SECTIONS & CARDS */
.maori-rules .mIntroCard {
  background: linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
  border: 1.5px solid #b6e2d8;
  border-radius: 18px;
  padding: 20px 24px;
  margin: 16px 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.maori-rules .mIntroText {
  font-size: 16px;
  line-height: 1.75;
  color: #1e3a42;
  margin: 0 0 14px 0;
}

.maori-rules .mPillarsRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dcd0b8;
}

.maori-rules .mPillarBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dcd0b8;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0e5c6a;
}

/* Lists & Material (Section 1) */
.maori-rules ul,
.maori-rules ol {
  margin: 14px 0 20px 24px;
  padding: 0;
  line-height: 1.75;
}

.maori-rules li {
  margin: 10px 0;
  line-height: 1.75;
}

.maori-rules ul.mMaterialList {
  list-style-type: square;
  margin: 16px 0 26px 26px;
  padding: 0;
}

.maori-rules ul.mMaterialList > li {
  margin: 18px 0;
  line-height: 1.75;
}

.maori-rules .mTilesRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 10px 0;
}

/* Setup steps (Section 2) */
.maori-rules .mSetupStep {
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  gap: 14px;
  margin: 14px 0;
  background: #ffffff;
  border: 1px solid #e5dbcb;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.maori-rules .mStepNum {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0d5c75, #178a94);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13,92,117,0.3);
}

.maori-rules .mStepBody {
  flex: 1;
}

.maori-rules .mStepTitle {
  font-weight: 700;
  font-size: 17px;
  color: #183e48;
  margin-bottom: 4px;
}

/* Turn Sequence Flow (Section 4) */
.maori-rules .mTurnStepsRow {
  gap: 14px;
  margin: 16px 0 20px;
}

.maori-rules .mTurnStepCard {
  font-size: 16px;
  line-height: 1.7;
  background: #ffffff;
  border: 1.5px solid #dce8e4;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.maori-rules .mTurnStepCard.must {
  border-left: 5px solid #0d5c75;
}

.maori-rules .mTurnStepCard.can {
  border-left: 5px solid #22b8a4;
}

.maori-rules .mTurnStepBadge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.maori-rules .mTurnStepCard.must .mTurnStepBadge {
  background: #e2f0f4;
  color: #0b4e64;
}

.maori-rules .mTurnStepCard.can .mTurnStepBadge {
  background: #e6f7f3;
  color: #0f766e;
}

.maori-rules .mTurnStepTitle {
  font-weight: 800;
  font-size: 17px;
  color: #183e48;
  margin-bottom: 4px;
}

/* Example Box */
.maori-rules .mExampleBox,
.rules.maori-rules .mExampleBox.example {
  background: #fbf6ec;
  border-left: 4px solid #d99e28;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.rules.maori-rules .deviation,
.maori-rules .deviation {
  color: inherit;
}

.maori-rules .mExampleTitle {
  font-weight: 800;
  font-size: 17px;
  color: #854d0e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Action Cards in Section 6 */
.maori-rules .mActionCard {
  font-size: 16px;
  line-height: 1.7;
  background: #ffffff;
  border: 1.5px solid #dfd8cb;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.maori-rules .mActionCardHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border-bottom: 1.5px solid #eee7db;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.maori-rules .mActionBadge {
  background: linear-gradient(135deg, #0d5c75, #178a94);
  color: white;
  font-weight: 800;
  font-size: 13.5px;
  padding: 2px 10px;
  border-radius: 12px;
}

.maori-rules .mActionTitle {
  font-weight: 800;
  font-size: 17px;
  color: #173d47;
}

/* Warning & Callout Alert Box (Section 7) */
.maori-rules .mAlertBox {
  font-size: 16px;
  line-height: 1.7;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.maori-rules .mAlertTitle {
  font-weight: 800;
  font-size: 17px;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Scoring rules list */
.maori-rules .mScoringPointsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
  margin: 14px 0 20px;
}

.maori-rules .mScoringPointItem {
  background: #ffffff;
  border: 1.5px solid #e1d8c8;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.maori-rules .mScoreIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.15));
}

.maori-rules .mInlineShell {
  height: 18px;
  max-width: 26px;
  width: auto;
  object-fit: contain;
  vertical-align: -3px;
  margin: 0 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.maori-rules .mInlineShip {
  height: 20px;
  max-width: 30px;
  width: auto;
  object-fit: contain;
  vertical-align: -3px;
  margin: 0 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.maori-rules .mPointLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #243c44;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 0;
}

.maori-rules .mPointBadge {
  font-weight: 800;
  font-size: 14.5px;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.maori-rules .mPointBadge.pos { background: #e6f7f3; color: #0f766e; }
.maori-rules .mPointBadge.neg { background: #fee2e2; color: #b91c1c; }

/* Images styling */
.maori-rules img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.maori-rules img[src*="/card"] {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
  margin: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  background: #ffffff;
}

.maori-rules img[src*="/card"]:hover {
  transform: scale(1.18) translateY(-3px);
  z-index: 10;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  border-color: #178a94;
}

.maori-rules img[src*="/board"] {
  width: min(46%, 320px);
  margin: 8px;
  border-radius: 12px;
  border: 2px solid #dfcfb8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maori-rules img[src*="/shell"],
.maori-rules img[src*="/ship"] {
  max-width: 44px;
  max-height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  vertical-align: middle;
  margin: 1px 3px;
}

/* Tables general */
.maori-rules table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  max-width: 100%;
  font-size: 16px;
  background: #f7fbf9;
  border: 1.5px solid #cfe1db;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.maori-rules td,
.maori-rules th {
  padding: 8px 12px;
  border-bottom: 1px solid #dcece8;
  vertical-align: middle;
}

.maori-rules tr:last-child td { border-bottom: none; }

.maori-rules table.mTileTable {
  background: #eef6f3;
  padding: 6px 8px;
  border-spacing: 4px;
  border: 1.5px solid #bcdbd2;
  width: 100%;
  max-width: 400px;
  margin: 12px auto;
}

.maori-rules table.mTileTable td {
  border-bottom: none;
  padding: 3px 2px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.maori-rules table.mTileTable img[src*="/card"] {
  width: min(50px, 100%);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
}

.maori-rules table.mTileTable img[src*="/ship"] {
  max-width: 44px;
  max-height: 32px;
  display: block;
  margin: 0 auto;
}

/* Muschel-Gebühr-Badge wie im Spiel */
.maori-rules .mFeeBadge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.maori-rules .mFeeBadge .mFeeShell {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
}

.maori-rules .mFeeBadge .mFeeNum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #0b2e3c;
  text-shadow: 0 0 2px #fff, 0 0 1px #fff;
  line-height: 1;
  pointer-events: none;
}

.maori-rules .mFeeFree {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #0f766e;
  line-height: 1.1;
  white-space: nowrap;
}

.maori-rules .mFeeFree small {
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  opacity: 0.9;
  white-space: nowrap;
}

#panelRules table.mTileTable {
  border-spacing: 2px;
  padding: 4px 2px;
  max-width: 100%;
}

#panelRules table.mTileTable img[src*="/card"] {
  width: min(44px, 100%);
}

#panelRules table.mTileTable img[src*="/ship"] {
  max-width: 38px;
  max-height: 28px;
}

#panelRules .mFeeBadge {
  width: 28px;
  height: 22px;
}

#panelRules .mFeeBadge .mFeeNum {
  font-size: 12px;
}

#panelRules .mFeeFree {
  font-size: 12px;
}

#panelRules .mFeeFree small {
  font-size: 10px;
}

#panelRules .mScoringPointsList {
  max-width: 100%;
  gap: 6px;
}

#panelRules .mScoringPointItem {
  padding: 6px 8px;
  gap: 8px;
}

#panelRules .mPointLabel {
  font-size: 13.5px;
  gap: 8px;
}

#panelRules .mPointBadge {
  font-size: 12.5px;
  padding: 2px 6px;
}

/* Scoring scorecard table */
.maori-rules h2[id="section-11"] + table,
.maori-rules table.mScoringTable {
  width: 100%;
  max-width: 460px;
  border-collapse: separate;
  border: 1.5px solid #dfd1b8;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.maori-rules h2[id="section-11"] + table tr:nth-child(even),
.maori-rules table.mScoringTable tr:nth-child(even) {
  background: rgba(23, 138, 148, 0.035);
}

.maori-rules h2[id="section-11"] + table td:nth-child(2),
.maori-rules table.mScoringTable td:nth-child(2) {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f766e;
}

.maori-rules h2[id="section-11"] + table tr:nth-last-child(2) td:nth-child(2),
.maori-rules table.mScoringTable tr.mScoringNeg td:nth-child(2) {
  color: #b91c1c;
}

.maori-rules h2[id="section-11"] + table tr:last-child,
.maori-rules table.mScoringTable tr:last-child {
  background: #fdf3dc;
  border-top: 2px solid #d99e28;
  font-weight: 800;
  font-size: 1.05em;
  color: #2c1d0a;
}

.maori-rules h2[id="section-11"] + table tr:last-child td:nth-child(2),
.maori-rules table.mScoringTable tr:last-child td:nth-child(2) {
  color: #854d0e;
}

@media (max-width: 600px) {
  .rules.maori-rules,
  .maori-rules {
    font-size: 14.5px;
    padding: 14px;
    border-radius: 16px;
  }
  .maori-rules .mRulesHeader {
    min-height: 200px;
    padding: 16px 12px;
  }
  .maori-rules .mRulesTitle {
    font-size: 36px;
  }
  .maori-rules .mRulesMetaBar {
    padding: 10px 12px;
    gap: 8px;
  }
  .maori-rules .mRulesMetaDivider {
    display: none;
  }
}
